Comments (9)
trt模型是用本工程中的代码转的,请问有人知道是什么原因吗?困扰了我好久
from vehicle-cv-adas.
Check whether your tensorRT version is compatible with the cuda version.
from vehicle-cv-adas.
from vehicle-cv-adas.
我也是运行了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.
这是我的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.
Vehicle-CV-ADAS/ObjectDetector/utils.py
Line 130 in 5852d16
Vehicle-CV-ADAS/ObjectDetector/utils.py
Line 195 in 5852d16
Try commenting out the three lines above.
from vehicle-cv-adas.
我注释了,最后我得到这个结果,我确保我已经安装了,tensorrt
from vehicle-cv-adas.
Related Issues (20)
- pycuda._driver issue HOT 1
- Errors while running!! HOT 7
- Documentation Requirement
- video demo
- 您好,小白请教一下,这个文件是需要自己建立的吗? HOT 1
- convertPytorchToONNX.py
- python demo.py HOT 1
- python demo.py HOT 4
- Whether there is a train and test code HOT 2
- qt.qpa.xcb: could not connect to display :.0 HOT 1
- errors in the bird's-eye view and the road detection model not working properly
- An error occurred when demo.py was running HOT 1
- 大佬,运行demo.py报错,你之前遇到过吗 HOT 6
- convertPytorchToONNX.py HOT 3
- accuracy of calcDistance(self, boxes) function HOT 4
- Use GPU HOT 1
- Data testing HOT 3
- 请问图像输入分辨率有要求吗,yolov8m的图像输入是否需要跟车道先检测一致呢 HOT 1
- File "F:\Yolop\Vehicle-CV-ADAS\TrafficLaneDetector\ultrafastLaneDetector\ultrafastLaneDetectorV2.py", line 426, in process_output return np.array(list(lanes_points.values())), list(lanes_detected.values()) ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part. HOT 5
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 vehicle-cv-adas.