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 不小心不正规的开发公司导致不给我们y码,
  • ¥15 我的代码无法在vc++中运行呀,错误很多
  • ¥50 求一个win系统下运行的可自动抓取arm64架构deb安装包和其依赖包的软件。
  • ¥60 fail to initialize keyboard hotkeys through kernel.0000000000
  • ¥30 ppOCRLabel导出识别结果失败
  • ¥15 Centos7 / PETGEM
  • ¥15 csmar数据进行spss描述性统计分析
  • ¥15 各位请问平行检验趋势图这样要怎么调整?说标准差差异太大了
  • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿