Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same

Aster
人工智能领域新星创作者
2022-10-26 09:42:29

输入的是gpu的torch,但是权重weight是cpu的,所以部匹配报错

重新到处模型使用gpu导出:

python export.py --weights runs/train/exp/weights/best.pt --include torchscript --device 0
...全文
64 回复 打赏 收藏 举报
写回复
回复
切换为时间正序
请发表友善的回复…
发表回复
相关推荐
发帖
DeepStream社区

60

社区成员

基于NVIDIA的DeepStream SDK开发技术交流社区。通过DeepStream可从USB/CSI/RTSP相机中获取流数据,用于快速构建具有AI能力的应用程序。
自动驾驶pytorch边缘计算 个人社区 陕西省·西安市
社区管理员
  • 鼾声鼾语
加入社区
帖子事件
创建了帖子
2022-10-26 09:42
社区公告
暂无公告