Comments (9)
Can you send the output log when you try to run YOLOv4? Are you generating a new engine from model in CUDA 10.1?
from deepstream-yolo.
The file is exist and path are correct.
Thanks!
from deepstream-yolo.
Hi, you need to compile nvdsinfer_custom_impl_Yolo for CUDA 10.1 to generate a new libnvdsinfer_custom_impl_Yolo.so
Do make with this command
CUDA_VER=10.1 make -C nvdsinfer_custom_impl_Yolo
You need to generate model.engine for yor CUDA and TensorRT version too.
from deepstream-yolo.
Thank you for checking. I tried to generate .so for 10.1, bit didn't work
nano@nano:/opt/nvidia/deepstream/deepstream-5.0/sources/yolo$ CUDA_VER=10.1 make -C nvdsinfer_custom_impl_Yolo
make: Entering directory '/opt/nvidia/deepstream/deepstream-5.0/sources/yolo/nvdsinfer_custom_impl_Yolo'
g++ -o libnvdsinfer_custom_impl_Yolo.so nvdsinfer_yolo_engine.o nvdsparsebbox_Yolo.o yoloPlugins.o layers/convolutional_layer.o layers/dropout_layer.o layers/shortcut_layer.o layers/route_layer.o layers/upsample_layer.o layers/maxpool_layer.o layers/activation_layer.o utils.o yolo.o yoloForward.o -shared -Wl,--start-group -lnvinfer_plugin -lnvinfer -lnvparsers -L/usr/local/cuda-10.1/lib64 -lcudart -lcublas -lstdc++fs -Wl,--end-group
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
Makefile:67: recipe for target 'libnvdsinfer_custom_impl_Yolo.so' failed
make: *** [libnvdsinfer_custom_impl_Yolo.so] Error 1
make: Leaving directory '/opt/nvidia/deepstream/deepstream-5.0/sources/yolo/nvdsinfer_custom_impl_Yolo'
nano@nano:/opt/nvidia/deepstream/deepstream-5.0/sources/yolo$
from deepstream-yolo.
Add file cuda.conf
to the directory /etc/ld.so.conf.d/
, with the contents
/usr/local/cuda/lib
Then you run sudo ldconfig
.
from deepstream-yolo.
nano@nano:/etc/ld.so.conf.d$ sudo vi cuda.conf
[sudo] password for nano:
nano@nano:/etc/ld.so.conf.d$ sudo ldconfig
nano@nano:/etc/ld.so.conf.d$
cuda.conf:
/usr/local/cuda/lib
nano@nano:/opt/nvidia/deepstream/deepstream-5.0/sources/yolo$ CUDA_VER=10.1 make -C nvdsinfer_custom_impl_Yolomake: Entering directory '/opt/nvidia/deepstream/deepstream-5.0/sources/yolo/nvdsinfer_custom_impl_Yolo'
g++ -o libnvdsinfer_custom_impl_Yolo.so nvdsinfer_yolo_engine.o nvdsparsebbox_Yolo.o yoloPlugins.o layers/convolutional_layer.o layers/dropout_layer.o layers/shortcut_layer.o layers/route_layer.o layers/upsample_layer.o layers/maxpool_layer.o layers/activation_layer.o utils.o yolo.o yoloForward.o -shared -Wl,--start-group -lnvinfer_plugin -lnvinfer -lnvparsers -L/usr/local/cuda-10.1/lib64 -lcudart -lcublas -lstdc++fs -Wl,--end-group
/usr/bin/ld: cannot find -lcudart
collect2: error: ld returned 1 exit status
Makefile:67: recipe for target 'libnvdsinfer_custom_impl_Yolo.so' failed
make: *** [libnvdsinfer_custom_impl_Yolo.so] Error 1
make: Leaving directory '/opt/nvidia/deepstream/deepstream-5.0/sources/yolo/nvdsinfer_custom_impl_Yolo'
from deepstream-yolo.
I think you have a problem with your CUDA installation, try to reinstall CUDA
from deepstream-yolo.
Thanks!
Summary:
I have Cuda 10.2 on my Nano and able run your yoloV4 solution on it including Deepstream docker.
The AWS VM has Cuda 10.1 and Deepstream DSK is not installed there, so I couldn't run your solution at docker.
Tried your cuda.conf solution on my Nano to generate .so file for Cuda 10.1 and it didn't work.
Do you think that I have Cuda installation problem on Jetson Nano (Cuda 10.2) or AWS (Cuda 10.1)?
from deepstream-yolo.
You can't generate .so lib for CUDA 10.1 in Nano, because it uses CUDA 10.2. I don't know how AWS VM works, but you need to install CUDA 10.1/10.2 (if not installed yet) and install DeepStream SDK (local/docker) to run the model, compiling .so lib and model engine directly into AWS based in installed CUDA version.
from deepstream-yolo.
Related Issues (20)
- PTQ is too bad,QAT is future!So ,any idea for QAT support?
- Low frame rate YOLOv8, calibration int8 HOT 1
- Tensorrt is not able to parse onnx model
- RT-DETR PyTorch - ShapeInferenceError: Cannot export with --simplify for earlier versions of deepstream 6.0 HOT 16
- Support for deepstream 6.4 HOT 6
- ERROR from primary_gie: Failed to create NvDsInferContext instance HOT 5
- Parser make error: utils.h:36:10: fatal error: NvInfer.h: No such file or directory HOT 1
- Video Artifacts During Streaming with DeepStream
- Can I directly use the trt file exported by yolov7 as deepstream inference?
- Could not find Custom Engine Creation Function 'NvDsInferYoloCudaEngineGe' HOT 3
- NVDSINFER_CONFIG_FAILED when using 2+ video sources simultaneously HOT 5
- Discrepancies in Object Detection Results between Ultralytics and DeepStream at Yolov8
- Deepstream 6.4 does not work with YOLOv5 on Jetson in Docker
- failed to create NvDsinferContext instance, NvDsinfer Error: NVDSINFER_CONFIG_FAILED HOT 3
- How to use Python API to runtime multiple RTSP streams? HOT 1
- Model Export HOT 1
- Backend has maxBatchSize 1 whereas 2 has been requested, model_b2_gpu0_fp32.engine failed to match config params
- change config model from yolov5l to yolov8m
- yolov9 support ? HOT 7
- Sending Bounding Box info through UDP connection HOT 1
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 deepstream-yolo.