Comments (2)
Hi,
I ran the ONNX to TensorRT conversion using the following command:
$ python3 export.py -o yolov7-tiny.onnx -e yolov7-tiny-nms.trt -p fp16
However, I encountered the following issue:
Namespace(calib_batch_size=8, calib_cache='./calibration.cache', calib_input=None, calib_num_images=5000, conf_thres=0.4, end2end=False, engine='yolov7-tiny-nms.trt', iou_thres=0.5, max_det=100, onnx='/home/vahid/aid_ws/GitHub-Vbsm/YOLO/PyTorch-ONNX-TensorRT/yolov7-WingKinYiu/yolov7-tiny.onnx', precision='fp16', v8=False, verbose=False, workspace=1) [12/26/2023-13:37:00] [TRT] [W] Unable to determine GPU memory usage [12/26/2023-13:37:00] [TRT] [W] Unable to determine GPU memory usage [12/26/2023-13:37:00] [TRT] [I] [MemUsageChange] Init CUDA: CPU +0, GPU +0, now: CPU 23, GPU 0 (MiB) [12/26/2023-13:37:00] [TRT] [W] CUDA initialization failure with error: 35. Please check your CUDA installation: http://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html Traceback (most recent call last): File "export.py", line 308, in main(args) File "export.py", line 266, in main builder = EngineBuilder(args.verbose, args.workspace) File "export.py", line 107, in init self.builder = trt.Builder(self.trt_logger) TypeError: pybind11::init(): factory function returned nullptr
Here are the Python environment dependencies:
$ python3 Python 3.6.9 (default, Mar 10 2023, 16:46:00) [GCC 8.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
import torch
print(torch.version)
1.10.1+cu102
import torchvision
print(torchvision.version)
0.11.2+cu102
import onnx
print(onnx.version)
1.8.1
import pycuda
import tensorrt
print(tensorrt.version)
8.6.1
exit()I would appreciate any advice or solutions you can provide to resolve this issue. Thank you.
you can try this branch, https://github.com/Linaom1214/TensorRT-For-YOLO-Series/tree/cuda-python, this error may occur by pycuda, or change the pycuda version.
from tensorrt-for-yolo-series.
Thank you for your advice; I've addressed the issue.
from tensorrt-for-yolo-series.
Related Issues (20)
- En715 Jetson xaiver Nx Yolov7.trt Not detect HOT 2
- yolov7,official,int8,onnx-> trt报错 HOT 3
- c++ endtoend 关于预测的置信度绘制 HOT 4
- memory leak: Destroy function does not work
- Detection duplicates with fp16 on Jetson Nano (TensorRT v8.2.1.8) HOT 2
- Support for windows?
- License? HOT 4
- 关于V8 tensorrt 出现乱框的情况 HOT 33
- yolox 自己训练的模型 trt推理 位置不对 HOT 1
- int8量化的时候,输入是多个,怎么修改呢? calib_shape = [calib_batch_size] + list(inputs[0].shape[1:])不对吧 HOT 4
- 怎么将这个项目与RealSense深度相机结合起来? HOT 3
- yolov9能支持么? HOT 1
- Jetson nano yolov8部署 onnx ->> trt HOT 2
- Is the TRT conversion I used in YOLOV7 not available in YOLOV9?
- Can I use this code for exporting the RTDETR Model
- 有v8obb的部分嘛
- calibration数据集制作 HOT 1
- yolox和yolov7的官方代码似乎已经做了nms onnx推理 HOT 1
- 你好,我导出的yolov5s int8模型进行推理时,没有检测到任何目标,det的shape为【0,6】,请问如何解决
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorrt-for-yolo-series.