Skip to content
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

Train own dataset, load cINN model.'state_dict' is error #8

Open
bjz0926 opened this issue Sep 12, 2023 · 0 comments
Open

Train own dataset, load cINN model.'state_dict' is error #8

bjz0926 opened this issue Sep 12, 2023 · 0 comments

Comments

@bjz0926
Copy link

bjz0926 commented Sep 12, 2023

mod stage2_cINN/main.py file,
if PFVD < best_PFVD:
torch.save(save_dict, save_path + '/checkpoint_best_val.pth')


if PFVD < best_PFVD:
torch.save(network.state_dict(), save_path + '/checkpoint_best_val.pth')

by python -W ignore -m stage2_cINN.main -gpu <gpu_id> -cf stage2_cINN/configs/ I get the checkpoint_best_val.pth. I change its name to cINN.pth, but error. Please tell the main.py that is right or error.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant