Open fanbyprinciple opened 2 years ago
I had the same problem.Could you solve this problem.
I solved it by making the following changes to core/checkpoint.py: in line 48. module.module.load_state_dict(module_dict[name]) -> module.module.load_state_dict(module_dict[name], False)
if your using google colab, add these lines to your notebook before running any main.py commands !cp /content/stargan-v2/core/checkpoint.py /content/stargan-v2/core/checkpoint_orig.py !sed -i 's|module.module.load_state_dict(module_dict[name])|module.module.load_state_dict(module_dict[name], False)|g' /content/stargan-v2/core/checkpoint.py
I solved it by making the following changes to core/checkpoint.py: in line 48. module.module.load_state_dict(module_dict[name]) -> module.module.load_state_dict(module_dict[name], False)