You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to pretrain generator network, use command python main.py --name pretrain_gn --mode pretrain_gn --ae_checkpoint_path runs/train_ae/vae_099.pth --num_processes=1
But I got this .
Traceback (most recent call last):
File "main.py", line 55, in<module>
pretrain_gn(args, config)
File "/run_code/fit2form-master/train.py", line 697, in pretrain_gn
setup_pretrain(args, config)
File "/run_code/fit2form-master/utils.py", line 388, in setup_pretrain
net = setup_network(args, hyperparameters)
File "/run_code/fit2form-master/utils.py", line 304, in setup_network
checkpoint_dict={"ae_checkpoint_path": args.ae_checkpoint_path}
File "/run_code/fit2form-master/learning/gripperDesigner.py", line 122, in __init__
self.load_ae_checkpoint(checkpoint_dict["ae_checkpoint_path"])
File "/run_code/fit2form-master/learning/gripperDesigner.py", line 167, in load_ae_checkpoint
optimizers = checkpoint['optimizers']
KeyError: 'optimizers'
The text was updated successfully, but these errors were encountered:
Hi @Bailey-24,
Can you print checkpoint.keys() before line 167. Seems like the model is loaded via checkpoint, but the checkpoint dict does not have optimizers saved for some reason (looking into it but seems like the optimizer is saved with key vae_optimizer)
Hi @Bailey-24,
I have updated the code addressing your findings. Please pull and follow the instructions in the updated readme.
I would advise creating a small subset of ShapeNetCore.v2 for quickly testing the code. While doing so, please make sure that you have at least one category from the train_categories.txt and val_categories.txt files.
I want to pretrain generator network, use command
python main.py --name pretrain_gn --mode pretrain_gn --ae_checkpoint_path runs/train_ae/vae_099.pth --num_processes=1
But I got this .
The text was updated successfully, but these errors were encountered: