4 Commits
Author SHA1 Message Date
luni 25c108fe83 get error 2023-01-27 14:08:39 +00:00
luni 970aeaf5b9 calculate error 2023-01-26 19:23:37 +00:00
luni bda4582c3c run evaluation 2023-01-26 16:20:39 +00:00
luni 0bc5633b6c retraining original abl_all_post 2023-01-25 22:30:46 +00:00
7 changed files with 16 additions and 45 deletions
+4 -1
View File
@@ -1,5 +1,8 @@
nohup python cvae.py --name="lhunor_abl_all_post_r7" > nohup/post/abl_all_post_r7.out 2>&1 &
nohup python evaluate_ae.py --name lhunor_abl_all_post_r7_70k > nohup/evaluate/abl_all_post_r7_70k.out 2>&1 &
nohup python calculate_error.py --name error_abl_all_post_r7_70k > nohup/error/abl_all_post_r7_70k.out 2>&1 &
one final convolutional layer for smoothing, on the final coordinates
nohup python calculate_error.py --name error_al_all_150k > nohup/error/post_al_all_150k.out 2>&1 &
skirts!!!!
pyramid next week
+1 -1
View File
@@ -59,7 +59,7 @@ if __name__ == '__main__':
folder = config['test_dir']
checkpoint_name = config['name']
iteration = ''
iteration = '70000'
F = np.load("custom_utils/smpl_faces" + skirt_modifier + ".npy").astype(np.int32)
garment_type_table = np.load('custom_data/garment_type_table_test.npy', allow_pickle=True).item()
+2 -2
View File
@@ -19,8 +19,8 @@ config['only_curvatures'] = False
ablation_count = [config['use_skinning'], config['remove_global_orientation'], config['use_curvature'], config['use_extra_losses'], config['use_offsets']].count(False)
assert ablation_count == 1 or ablation_count == 0
config['gpu'] = '4'
config['name'] = 'al_all_post'
config['gpu'] = '0'
config['name'] = 'abl_all_post_r7'
config['notes'] = ''
config['avg_garment_path'] = 'custom_data/train_no_shape_avg_uv.npy' #custom_data/train_no_shape_avg_uv.npy # train_no_shape_avg_uv train_no_shape_one_hot_avg_uv
+2 -2
View File
@@ -73,7 +73,7 @@ def kl_loss(mean, logvar):
# 3d loss on posed !!!!!!!!!!!!
# @tf.function
@tf.function
def train_step(batch):
with tf.GradientTape() as tape:
@@ -476,7 +476,7 @@ def test():
if __name__ == '__main__':
# init_wandb()
init_wandb()
parser = argparse.ArgumentParser(description='')
parser.add_argument('--name', type=str)
args = vars(parser.parse_args())
+2 -34
View File
@@ -2,41 +2,9 @@ FROM tensorflow/tensorflow:2.9.0-gpu
RUN apt-get update
RUN apt-get upgrade -y
# Add the current user to the image
ARG USER_NAME=lhunor
ARG USER_ID=11017
ARG GROUP_NAME=guest
ARG GROUP_ID=11000
# Update the system and install required packages
RUN apt-get update && apt-get upgrade -y && apt-get install -y sudo git
# Create a new group with the same GID as the host
RUN groupadd --gid $GROUP_ID $GROUP_NAME
# Create a new user with the same UID and GID as the host
RUN useradd --uid $USER_ID --gid $GROUP_ID --shell /bin/bash --create-home $USER_NAME
# don't require password with sudo, for convenience
# not the safest thing to do, but hopefully okay inside the container
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
# Add the new user to the sudo group
RUN usermod -aG sudo $USER_NAME
# Set the default user to the new user
USER $USER_NAME
WORKDIR //home-net
RUN apt-get install git ffmpeg libsm6 libxext6 libopenexr-dev zip unzip htop nano -y
RUN pip install numpy matplotlib opencv-python wandb OpenEXR tensorflow-graphics scipy plotly pandas tensorboardX opencv-python cmapy
# defining the volumes that will be mounted
VOLUME [ "/data-net" ]
VOLUME [ "/data-local" ]
VOLUME [ "/home-net" ]
# Start the container with a bash shell
CMD ["/bin/bash"]
WORKDIR /home/workspace/data
# RUN wandb login
+1 -1
View File
@@ -102,7 +102,7 @@ if __name__ == '__main__':
ids = [id.split('_')[0] for id in ids]
ids = set(ids)
iteration = ''
iteration = '70000'
load_model(model, 'checkpoints/post/' + checkpoint_name, iteration=iteration)
# load_model(model, 'checkpoints/' + 'abl_all_120k')
+4 -4
View File
@@ -7,10 +7,10 @@ if __name__ == '__main__':
garment_type_table = np.load('custom_data/garment_type_table_test.npy', allow_pickle=True).item()
folder = '/home/workspace/data/results/errors'
checkpoint_name = 'abl_2_pyr_32_64_128_256_512'
checkpoint_name_skirt = 'abl_2_pyr_32_64_128_256_512_skirt'
iteration = '50000'
iteration_skirt : str = '50000'
checkpoint_name = 'abl_all_post_r7'
checkpoint_name_skirt = ''
iteration = '70000'
iteration_skirt : str = ''
# checkpoint_name = 'abl_skin'
# checkpoint_name_skirt = checkpoint_name + '_skirt'