当前位置:网站首页>ImportError: cannot import name ‘get_all_providers‘ from ‘onnxruntime.capi._pybind_state‘
ImportError: cannot import name ‘get_all_providers‘ from ‘onnxruntime.capi._pybind_state‘
2022-04-22 21:01:00 【人类高质量算法工程师】
报错如下:
Traceback (most recent call last):
File "test.py", line 7, in <module>
from utils.utils_inference import InterfaceOnnx, InterfaceTorch
File "F:\F_code\insightface_ir_train\utils\utils_inference.py", line 8, in <module>
import onnxruntime
File "D:\anaconda\envs\env_name\lib\site-packages\onnxruntime\__init__.py", line 12, in <module>
from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, RunOptions, SessionOptions, set_default_logger_severity, NodeArg,
ModelMetadata, GraphOptimizationLevel, ExecutionMode
ImportError: cannot import name 'get_all_providers' from 'onnxruntime.capi._pybind_state' (D:\anaconda\envs\env_name\lib\site-packages\onnxruntime\capi\_pybind_state.py)
不是onnxruntime-gpu版本过高的问题,版本是1.1.0,原因在于对应的torch为1.9,cuda版本要为10.2
版权声明
本文为[人类高质量算法工程师]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_35037684/article/details/124337760
边栏推荐
- Can you really use MySQL explain?
- 容联云携手中国信通院,开启办公即时通信软件系列标准研制
- [noip2012] borrow classroom
- nodejs笔记3
- Nodejs notes 4
- Mastering the tips of these references will help you get twice the result with half the effort~
- Leetcode学习计划之动态规划入门day1,2(共4题)
- Lizard book learning Day1 - overview of machine learning
- L1-046 divide singles
- Minio基本使用与原理
猜你喜欢

Nodejs notes 5

The interviewer would rather have my younger brother who has just graduated and worked for one year than me who has worked for five years, with an annual salary of 25W

Selenium_Webdriver视频自动化脚本分享

二、线性回归

Win10 installation neo4j

2、 Linear regression

博途PLC用户自定义数据类型

Error running ‘JeecgSystemApplication‘: Command line is too long. Shorten command line for JeecgSyst

软件测试知识点 | Jmeter实现接口关联小结

Design and analysis of MySQL high availability architecture
随机推荐
Huawei machine test question -- hj72 100 money to buy 100 chickens
Beyond compare enforces the use of binary transfer to ensure that the files are the same
MySQL主从复制之GTID复制
nodejs笔记4
88 r user portrait linear regression logical regression comprehensive practice 1
Implementation of simple FreeRTOS task blocking delay based on gd32f1x0 manual programming
期货在网上直接开户,是否安全呢?
Leetcode Hot 100
Comparison between Chinese and American programmers: do you agree
buuctf-[Flask]SSTI
紫光国微:正积极拓展模拟芯片品类,部分产品已实现批量销售
TC 结构管理器 - 打包 解包
nodejs笔记2
(1) UART subsystem learning plan
Programming utilities, there is always one you use
CDH6. 3.2 enable Kerberos authentication
Use constant member functions for constant types (design a date class and time)
第一章 虚拟现实技术概论
转载:程序员的发展方向
编程实用工具,总有一个你用的上