Git Product home page Git Product logo

Comments (9)

1623021453 avatar 1623021453 commented on July 18, 2024

trt模型是用本工程中的代码转的,请问有人知道是什么原因吗?困扰了我好久

from vehicle-cv-adas.

jason-li-831202 avatar jason-li-831202 commented on July 18, 2024

Check whether your tensorRT version is compatible with the cuda version.

from vehicle-cv-adas.

1623021453 avatar 1623021453 commented on July 18, 2024

from vehicle-cv-adas.

SilaLiu avatar SilaLiu commented on July 18, 2024

我也是运行了demo.py报错
~/catkin_ws/src/Vehicle-CV-ADAS$ python3 demo.py
/usr/lib/python3/dist-packages/scipy/init.py:146: UserWarning: A NumPy version >=1.17.3 and <1.25.0 is required for this version of SciPy (detected version 1.26.4
warnings.warn(f"A NumPy version >={np_minversion} and <{np_maxversion}"
Traceback (most recent call last):
File "/home/pixbus/catkin_ws/src/Vehicle-CV-ADAS/ObjectDetector/yoloDetector.py", line 9, in
from utils import ObjectModelType, hex_to_rgb, NMS, Scaler
ModuleNotFoundError: No module named 'utils'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/pixbus/catkin_ws/src/Vehicle-CV-ADAS/demo.py", line 7, in
from taskConditions import TaskConditions, Logger
File "/home/pixbus/catkin_ws/src/Vehicle-CV-ADAS/taskConditions.py", line 5, in
from ObjectDetector.utils import CollisionType
File "/home/pixbus/catkin_ws/src/Vehicle-CV-ADAS/ObjectDetector/init.py", line 1, in
from ObjectDetector.yoloDetector import YoloDetector
File "/home/pixbus/catkin_ws/src/Vehicle-CV-ADAS/ObjectDetector/yoloDetector.py", line 14, in
from .utils import ObjectModelType, hex_to_rgb, NMS, Scaler
File "/home/pixbus/catkin_ws/src/Vehicle-CV-ADAS/ObjectDetector/utils.py", line 4, in
from numba import jit
File "/usr/lib/python3/dist-packages/numba/init.py", line 42, in
from numba.np.ufunc import (vectorize, guvectorize, threading_layer,
File "/usr/lib/python3/dist-packages/numba/np/ufunc/init.py", line 3, in
from numba.np.ufunc.decorators import Vectorize, GUVectorize, vectorize, guvectorize
File "/usr/lib/python3/dist-packages/numba/np/ufunc/decorators.py", line 3, in
from numba.np.ufunc import _internal
SystemError: initialization of _internal failed without raising an exception

from vehicle-cv-adas.

SilaLiu avatar SilaLiu commented on July 18, 2024

这是我的cuda版本:
nvidia-smi
Sat Apr 20 15:21:19 2024
+---------------------------------------------------------------------------------------+
| NVIDIA-SMI 545.23.08 Driver Version: 545.23.08 CUDA Version: 12.3 |
|-----------------------------------------+----------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+======================+======================|
| 0 NVIDIA GeForce RTX 3060 On | 00000000:01:00.0 On | N/A |
| 30% 34C P8 14W / 170W | 131MiB / 12288MiB | 1% Default |
| | | N/A |
+-----------------------------------------+----------------------+----------------------+

+---------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=======================================================================================|
| 0 N/A N/A 1395 G /usr/lib/xorg/Xorg 78MiB |
| 0 N/A N/A 1700 G /usr/bin/gnome-shell 23MiB |
| 0 N/A N/A 10782 G ...seed-version=20240419-130118.436000 18MiB |
+---------------------------------------------------------------------------------------+

from vehicle-cv-adas.

jason-li-831202 avatar jason-li-831202 commented on July 18, 2024

from numba import jit

@jit(nopython=True)

@jit(nopython=True)

Try commenting out the three lines above.

from vehicle-cv-adas.

SilaLiu avatar SilaLiu commented on July 18, 2024

我注释了,最后我得到这个结果,我确保我已经安装了,tensorrt

from vehicle-cv-adas.

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.