yushimao111 2022-09-08 17:19 采纳率: 100%
浏览 74
已结题

Jetson tx2运行yolov5遇到运行时错误

问题遇到的现象和发生背景

Jeson TX2在刷机后,想运行yolov5模型,在安装了各种库之后,pytorch和torchvision分别是1.8.0和0.9.0,不过运行还是出现版本不对的问题

运行结果及报错内容

RuntimeError: Couldn't load custom C++ ops. This can happen if your PyTorch and torchvision versions are incompatible, or if you had errors while compiling torchvision from source. For further information on the compatible versions, check https://github.com/pytorch/vision#installation for the compatibility matrix. Please check your PyTorch version with torch.version and your torchvision version with torchvision.version and verify if they are compatible, and if not please reinstall torchvision so that it matches your PyTorch install.

img


这是现在的torch和torchvision版本

我的解答思路和尝试过的方法

首次出现这个错误,看网上说是torch和torchvision版本不对应的问题,费好大劲安装好对应版本,同时torchvision是编译过的(网上说用pip下的会有问题)

  • 写回答

1条回答 默认 最新

  • 爱晚乏客游 2022-09-08 17:30
    关注

    ?为什么要去编译?直接官网下载对应版本的whell包到本地安装就行啊。界面在这里,复制对应的包到迅雷下载就行,或者直接点击浏览器下载
    cuxxx开头的是cuda版本,xxx是你的cuda版本号,10.2对应的是cu101,11.0对应的是cu110
    torch=1.8.0对应的 torchvision=0.9.0, torchaudio=0.8.0

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 9月16日
  • 已采纳回答 9月8日
  • 创建了问题 9月8日

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么