Open ialex2004 opened 3 years ago
I got a similar issue yesterday.
in my case, just insert below lines ahead of net.load_state_dict(weights)
of load_network
function of util.py
import torch.nn as nn
net = nn.DataParallel(net)
please refer this issue hope it works.
oh but I changed it to net.load_state_dict(weights, strict=False)
. so I am not sure my result is correct. sorry.
It's the problem related to the setting of hyperparameters. To stay tune with the pretrained model, we should set options/config_hifacegan.py
:
netG='lipspade'
#ngf = 64 # set to 48 for Titan X 12GB card
ngf=48
Same as issue #26 .
Hello, I tried to load the pretrained checkpoints and faced a prblem of weights mismatch, code:
error: ` Network [HiFaceGANGenerator] was created. Total number of parameters: 130.6 million. To see the architecture, do print(network).
RuntimeError Traceback (most recent call last)