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

保存模型在新的环境中使用 #498

Open
YT-Chow opened this issue May 30, 2024 · 1 comment
Open

保存模型在新的环境中使用 #498

YT-Chow opened this issue May 30, 2024 · 1 comment

Comments

@YT-Chow
Copy link

YT-Chow commented May 30, 2024

我使用unet的网络结构和训练脚本完成训练了之后,在一个新的环境(新项目的脚本)中使用load方法读取,会有一些网络结构定义的module未加载的问题,当我网络结构定义的脚本放在新的项目中后,这个报错就没有了。这样使用会过于依赖源代码了。

@bayueyaoshao
Copy link

你加载的是pt文件吧,pt文件只带权重信息不带网络结构的,可以转成ONNX就不需要依赖网络结构了

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

2 participants