Closed apollo01gaming closed 3 years ago
The traceback is a bit misleading here, it's not breaking on get_bends, but on the generate() function (which get_bends is an argument to). Looking a bit further down, the real error is happening in load_state_dict() because the checkpoint you're trying to restore from doesn't have certain keys.
Are you trying to load a 512px network?
In that case you'll need to add G_res=512
to generate() if you're running from colab or specify --G_res 512
in command line.
One thing to note is that the default get_bends() function in the colab notebook only works for 1024px networks, so if you add G_res=512 you'll need to comment out get_bends=get_bends
.
Hello, thank you for your reply. You are absolutely right. I was using 512px pkl. ill try it with my 1024 network.
I believe this closes this issue. Thank you.
Hello, thank you for creating this repo.
I'm pulling my hair over this error. please help.
Thank you very much
RuntimeError Traceback (most recent call last)