-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to save the model of each stage #21
Comments
Hi, I removed the command for the checkpoints to save space. torch.save(b1_model, ckp_name)
torch.save(b2_model, ckp_name_b2) after these lines: class-incremental-learning/adaptive-aggregation-networks/trainer/trainer.py Lines 165 to 166 in 28f0bf6
|
@yaoyao-liu After saving the models at each stage, how could we measure the accuracy for such stage by loading the models from the checkpoints. For instance in training on cifar100 for 5 phases, could we load "iter_9_b1.pth" and "iter_9_b2.pth" (e.g., using --resume) without training to measure the accuracy of the last phase? I have tested the code and it does not seem to be trivial. If I directly load "iter_9_b1.pth", "iter_9_b2.pth" and test them using
then the accuracy would be roung 2%. Is this because |
Hi @ZHUANGHP, Thanks for your interest in our work. If you need to run the test without training, we can create the test code following this: If you have further questions, please feel free to email me. Have a nice day! Best, |
hello, i want to save the model to do the T-SNE, how to save the model of each stage?
i found you had set the ckpt but don't set the torch.save() to save the model.
The text was updated successfully, but these errors were encountered: