About train_diff_mode
zxt-triumph opened this issue · 2 comments
zxt-triumph commented
File "/home/dell/ZXT/Code/DiffusionModels/DDM2/model/model.py", line 71, in init
self.load_network()
File "/home/dell/ZXT/Code/DiffusionModels/DDM2/model/model.py", line 224, in load_network
self.optG.load_state_dict(opt['optimizer'])
File "/home/dell/anaconda3/envs/pytorch/lib/python3.10/site-packages/torch/optim/optimizer.py", line 171, in load_state_dict
raise ValueError("loaded state dict contains a parameter group "
ValueError: loaded state dict contains a parameter group that doesn't match the size of optimizer's group
I encountered the above problems when I run ./run_stage3.sh, how can I solve it?
tiangexiang commented
zxt-triumph commented
Thank you for your reply,! This problem has been solved under your prompt.