栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

No matching distribution found for onnxruntime-gpu

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

No matching distribution found for onnxruntime-gpu

我尝试在Xavier NX上训练模型, 利用Pytorch训练yolo v5s, 训练完毕之后, 将模型转化成TensorRT的推理引擎的时候, 需要安装onnxruntime-gpu

在Jetpack 5.0 DP上安装onnxruntime-gpu时, 出现了错误:

pip3 install onnxruntime-gpu

ERROR: Could not find a version that satisfies the requirement onnxruntime-gpu (from versions: none)
ERROR: No matching distribution found for onnxruntime-gpu

其实就是目前公开源中的版本不支持Jetson平台, 可以直接访问

Jetson Zoo - eLinux.org

下载对应的版本

 然后重新使用pip3来安装就好:

pip3 install onnxruntime_gpu-1.11.0-cp38-cp38-linux_aarch64.whl

Processing ./onnxruntime_gpu-1.11.0-cp38-cp38-linux_aarch64.whl
Collecting flatbuffers
  Downloading flatbuffers-2.0-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: numpy>=1.22.3 in /home/hekun/.local/lib/python3.8/site-packages (from onnxruntime-gpu==1.11.0) (1.22.4)
Requirement already satisfied: protobuf in /home/hekun/.local/lib/python3.8/site-packages (from onnxruntime-gpu==1.11.0) (4.21.0)
Installing collected packages: flatbuffers, onnxruntime-gpu
Successfully installed flatbuffers-2.0 onnxruntime-gpu-1.11.0

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/932549.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号