I know there are several posts with this error but my problem is a bit different. It doesn't look like the network I'm trying to import has a different architecture than the one I currently have. I think that the names of the first layer (initial) differ.
RuntimeError: Error(s) in loading state_dict for Generator:
Missing key(s) in state_dict: "initial.0.weight", "initial.0.bias".
Unexpected key(s) in state_dict: "initial.weight", "initial.bias".
Initial is defined like so:
self.initial = nn.Sequential(
nn.Linear(...),
...,
)
I would rename self.initial
into self.initial.0
if it was possible but it is not.
I must be missing something but I'm a bit confused as to what I am missing.