-
Notifications
You must be signed in to change notification settings - Fork 448
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
RuntimeError: unexpected keys in state_dict when loading RIFE model #383
Comments
那 torch.load('{}/flownet.pkl'.format(path)).keys() 会得到什么? |
Keys in the loaded state_dict: |
我不理解,看起来模型参数和 pkl 中是一致的 #PyTorch模型加载错误解决方法# 来自跃问分享 https://yuewen.cn/share/179863116760768512?utm_source=share&utm_content=web_linkcopy&version=2 |
好的非常感谢,问题出在没有正确将模型参数导入推理中,已解决。 |
在推理时,报错显示 权重加载时参数丢失。
使用以下代码加载模型:
The text was updated successfully, but these errors were encountered: