TensorRT报错的一百种姿势 | 【❤️TensorRT抱错砖家❤️】

2023-12-21 22:38

本文主要是介绍TensorRT报错的一百种姿势 | 【❤️TensorRT抱错砖家❤️】,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

本博文致力于收集❤️打怪升级过程中❤️遇到的一百种 tensorRT 环境报错


这里的一些报错处理,有的可能没有一步到位


但是,在初次遇到时,必然是当时视角下,最高效排bug的一种方式

文章目录

    • ❤️ ModuleNotFoundError: No module named 'tensorrt'
    • 💙 AttributeError: ‘tensorrt.tensorrt.Builder‘ object has no attribute ‘max_workspace_size‘
    • 💛 ImportError: libcublas.so.11: cannot open shared object file: No such file or directory
    • 💜 OSError: libcublas.so.11: cannot open shared object file: No such file or directory
    • ❤️ error while loading shared libraries: libnvinfer.so.8: cannot open shared object file: No such file or directory
    • 💙 onnx模型转TensorRT【 Segmentation fault (core dumped)】
    • 💛 fatal error: NvInfer.h: No such file or directory
    • 💜 libcudnn.so.7: cannot open shared object file: No such file or directory
    • 👋👋 文末专栏详解【一起Get更多内核芝士】
    • 🚀🚀 TensorRT 实战入门教程【建议收藏】
    • ❤️ 当生成器和判别器趋于平衡,那便是爱情 💜

1-0


❤️ ModuleNotFoundError: No module named ‘tensorrt’


通常就是当前环境没有安装 tensorRt


NVIDIA TensorRT安装包下载分享 | 拿走不谢 |【❤️TensorRT安装❤️】

Traceback (most recent call last):File "yolov5_trt.py", line 15, in <module>import tensorrt as trt
ModuleNotFoundError: No module named 'tensorrt'

解决方法【python 安装 tensorrt】

 pip install --user --upgrade nvidia-tensorrt

💙 AttributeError: ‘tensorrt.tensorrt.Builder‘ object has no attribute ‘max_workspace_size‘


  • AttributeError: ‘tensorrt.tensorrt.Builder‘ object has no attribute ‘max_workspace_size‘ 【转tensorRT】

💛 ImportError: libcublas.so.11: cannot open shared object file: No such file or directory


  • ImportError: libcublas.so.11: cannot open shared object file: No such file |【成功解决import tensorRT报错】

💜 OSError: libcublas.so.11: cannot open shared object file: No such file or directory


  • OSError: libcublas.so.11: cannot open shared object file: No such file or directory【import onnx报错】

❤️ error while loading shared libraries: libnvinfer.so.8: cannot open shared object file: No such file or directory


  • error while loading shared libraries: libnvinfer.so.8 |【TensorRT 依赖解决】

💙 onnx模型转TensorRT【 Segmentation fault (core dumped)】


  • onnx模型转TensorRT 报错 - Segmentation fault (core dumped) | Your ONNX model has been generated…【最新总结】

💛 fatal error: NvInfer.h: No such file or directory


  • fatal error: NvInfer.h: No such file or directory | TensorRT 报错处理 | 【成功解决】

💜 libcudnn.so.7: cannot open shared object file: No such file or directory


  • libmyelin.so.1 | libcudnn.so.7: cannot open shared object file: No such file or directory | 报错处理方法

👋👋 文末专栏详解【一起Get更多内核芝士】


  • 🎄如果感觉文章看完了不过瘾,还想更进一步,那么可以来我的其他 专栏 看一下哦~
  • ❤️ 图像风格转换 —— 代码环境搭建 实战教程【关注即可阅】!
  • 💜 图像修复-代码环境搭建-知识总结 实战教程 【据说还行】
  • 💙 超分重建-代码环境搭建-知识总结 解秘如何让白月光更清晰【脱单神器】
  • 💛 YOLO专栏,只有实战,不讲道理 图像分类【建议收藏】!
  • ❤️ 趣学深度学习 —— 各种有趣 实战教程【深度学习体验大师】!

🚀🚀 TensorRT 实战入门教程【建议收藏】


经典博文【不亏系列】

  • ❤️ YOLOX (pytorch)模型 转 ❤️ tensorRT ❤️之运行推理【YOLOX 实战四】

以下属于目标检测-模型部署 – 专栏【按需查阅】

  • 💜 yolov4 模型转化 | Darknet2TensorRT 完美运行 | 【yolov4 TensorRT 推理】
  • 💜 基于TensorRT 推理框架yolov5 模型转化 | CUDA 11.2 + TensorRT-8 完美运行 | INT8 和 USE_FP16 时间性能对比 | 详细步骤记录
  • 💛 基于TensorRT 推理框架 crnn 模型转化 | 【TensorRT 模型转换】
  • 💛 Getting Started with TensorRTx 之 Run lenet5 |【TensorRT示例】

❤️ 当生成器和判别器趋于平衡,那便是爱情 💜


❤️本博文持续更新❤️ | 你懂我意思吧 ❤️

9-8


这篇关于TensorRT报错的一百种姿势 | 【❤️TensorRT抱错砖家❤️】的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/521725

相关文章

解决Maven项目报错:failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题

《解决Maven项目报错:failedtoexecutegoalorg.apache.maven.plugins:maven-compiler-plugin:3.13.0的问题》这篇文章主要介... 目录Maven项目报错:failed to execute goal org.apache.maven.pl

电脑找不到mfc90u.dll文件怎么办? 系统报错mfc90u.dll丢失修复的5种方案

《电脑找不到mfc90u.dll文件怎么办?系统报错mfc90u.dll丢失修复的5种方案》在我们日常使用电脑的过程中,可能会遇到一些软件或系统错误,其中之一就是mfc90u.dll丢失,那么,mf... 在大部分情况下出现我们运行或安装软件,游戏出现提示丢失某些DLL文件或OCX文件的原因可能是原始安装包

电脑显示mfc100u.dll丢失怎么办?系统报错mfc90u.dll丢失5种修复方案

《电脑显示mfc100u.dll丢失怎么办?系统报错mfc90u.dll丢失5种修复方案》最近有不少兄弟反映,电脑突然弹出“mfc100u.dll已加载,但找不到入口点”的错误提示,导致一些程序无法正... 在计算机使用过程中,我们经常会遇到一些错误提示,其中最常见的就是“找不到指定的模块”或“缺少某个DL

解决IDEA报错:编码GBK的不可映射字符问题

《解决IDEA报错:编码GBK的不可映射字符问题》:本文主要介绍解决IDEA报错:编码GBK的不可映射字符问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录IDEA报错:编码GBK的不可映射字符终端软件问题描述原因分析解决方案方法1:将命令改为方法2:右下jav

MyBatis模糊查询报错:ParserException: not supported.pos 问题解决

《MyBatis模糊查询报错:ParserException:notsupported.pos问题解决》本文主要介绍了MyBatis模糊查询报错:ParserException:notsuppo... 目录问题描述问题根源错误SQL解析逻辑深层原因分析三种解决方案方案一:使用CONCAT函数(推荐)方案二:

Spring Boot中JSON数值溢出问题从报错到优雅解决办法

《SpringBoot中JSON数值溢出问题从报错到优雅解决办法》:本文主要介绍SpringBoot中JSON数值溢出问题从报错到优雅的解决办法,通过修改字段类型为Long、添加全局异常处理和... 目录一、问题背景:为什么我的接口突然报错了?二、为什么会发生这个错误?1. Java 数据类型的“容量”限制

SpringBoot项目中报错The field screenShot exceeds its maximum permitted size of 1048576 bytes.的问题及解决

《SpringBoot项目中报错ThefieldscreenShotexceedsitsmaximumpermittedsizeof1048576bytes.的问题及解决》这篇文章... 目录项目场景问题描述原因分析解决方案总结项目场景javascript提示:项目相关背景:项目场景:基于Spring

解决SpringBoot启动报错:Failed to load property source from location 'classpath:/application.yml'

《解决SpringBoot启动报错:Failedtoloadpropertysourcefromlocationclasspath:/application.yml问题》这篇文章主要介绍... 目录在启动SpringBoot项目时报如下错误原因可能是1.yml中语法错误2.yml文件格式是GBK总结在启动S

idea maven编译报错Java heap space的解决方法

《ideamaven编译报错Javaheapspace的解决方法》这篇文章主要为大家详细介绍了ideamaven编译报错Javaheapspace的相关解决方法,文中的示例代码讲解详细,感兴趣的... 目录1.增加 Maven 编译的堆内存2. 增加 IntelliJ IDEA 的堆内存3. 优化 Mave

如何解决mmcv无法安装或安装之后报错问题

《如何解决mmcv无法安装或安装之后报错问题》:本文主要介绍如何解决mmcv无法安装或安装之后报错问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录mmcv无法安装或安装之后报错问题1.当我们运行YOwww.chinasem.cnLO时遇到2.找到下图所示这里3.