Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keep getting mismatch conv_first weight warning help #806

Open
xalteropsx opened this issue May 27, 2024 · 0 comments
Open

keep getting mismatch conv_first weight warning help #806

xalteropsx opened this issue May 27, 2024 · 0 comments

Comments

@xalteropsx
Copy link

xalteropsx commented May 27, 2024

    model2.load_weights(f"weights/RealESRNet_x4plus.pth", download=True)
  File "Z:\software\python11\Lib\site-packages\py_real_esrgan\model.py", line 53, in load_weights
    self.model.load_state_dict(loadnet, strict=True)
  File "Z:\software\python11\Lib\site-packages\torch\nn\modules\module.py", line 2191, in load_state_dict
    raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
RuntimeError: Error(s) in loading state_dict for RRDBNet:
        size mismatch for conv_first.weight: copying a param with shape torch.Size([64, 12, 3, 3]) from checkpoint, the shape in current model is torch.Size([64, 3, 3, 3]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant