如果把.pt训练的模型转换成.torchscript #6775
yaomoshen520
started this conversation in
Docs
Replies: 1 comment
-
|
@yaomoshen520 您好!将 from ultralytics import YOLO
# 加载您的预训练模型
model = YOLO('path/to/your/model.pt')
# 导出模型为 TorchScript 格式
model.export(format='torchscript')在执行 更多关于导出模型的信息,您可以参考我们的文档中的 Export 部分。希望这能帮助到您! 😊🚀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
如果把.pt训练的模型转换成.torchscript.查看了文档好像没看到
Beta Was this translation helpful? Give feedback.
All reactions