stable-diffusion-webui-pixelization icon indicating copy to clipboard operation
stable-diffusion-webui-pixelization copied to clipboard

Error(s) in loading state_dict

Open WorldofDepth opened this issue 2 years ago • 3 comments

Any idea why I get this error? I've downloaded the three checkpoint models, and should be fine on RAM… Thank you for any help.

RuntimeError: Error(s) in loading state_dict for DataParallel: Missing key(s) in state_dict: "module.PBEnc.vgg.0.weight", "module.PBEnc.vgg.0.bias" [continues to list many files]

WorldofDepth avatar Apr 26 '23 02:04 WorldofDepth

image

This should fix

            self.G_A_net = torch.nn.DataParallel(self.G_A_net)
            self.alias_net = torch.nn.DataParallel(self.alias_net)

Azq2 avatar Jul 24 '23 17:07 Azq2

Thank you. Where / which file should that be inserted into?

WorldofDepth avatar Jul 24 '23 19:07 WorldofDepth

https://github.com/AUTOMATIC1111/stable-diffusion-webui-pixelization/blob/master/scripts/postprocessing_pixelization.py#L126

Azq2 avatar Jul 24 '23 19:07 Azq2