GithubHelp home page GithubHelp logo

Comments (2)

Linaom1214 avatar Linaom1214 commented on June 11, 2024 1

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.

VbsmRobotic avatar VbsmRobotic commented on June 11, 2024

Thank you for your advice; I've addressed the issue.

from tensorrt-for-yolo-series.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.