Open josephrocca opened 3 years ago
Notice the "module" in "module.encoder.1.weight" and notice how it's not in the model you're trying to load it to. That "module" prefix just means the model that was used to create those weights was using nn.DataParallel. Either go to comment the if statement in Guided_Upsample/models.py line around 77 or just map the weights yourself.
Notice the "module" in "module.encoder.1.weight" and notice how it's not in the model you're trying to load it to. That "module" prefix just means the model that was used to create those weights was using nn.DataParallel. Either go to comment the if statement in Guided_Upsample/models.py line around 77 or just map the weights yourself.
Thanks a lot for your comment, after I removed the if statement on line 71, the error went away.
I'm been playing around trying to create a minimal Google Colab demo for this repository, but am running into some error messages that you can see here:
As you can see, the ImageNet inference command (same as in README) throws an error like this:
I haven't dug into the other (FFHQ) error yet - it says something about transparency, which may be a mistake on my part with preparing the input image and mask (image, mask).
Thanks for your work on this repo and publicly releasing the code and pre-trained models! Can't wait to try it out.