Coder Social home page Coder Social logo

Comments (9)

marcoslucianops avatar marcoslucianops commented on May 14, 2024

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.

mtduman avatar mtduman commented on May 14, 2024

debug1.txt

The file is exist and path are correct.

Thanks!

from deepstream-yolo.

marcoslucianops avatar marcoslucianops commented on May 14, 2024

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.

mtduman avatar mtduman commented on May 14, 2024

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.

marcoslucianops avatar marcoslucianops commented on May 14, 2024

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.

mtduman avatar mtduman commented on May 14, 2024

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.

marcoslucianops avatar marcoslucianops commented on May 14, 2024

I think you have a problem with your CUDA installation, try to reinstall CUDA

from deepstream-yolo.

mtduman avatar mtduman commented on May 14, 2024

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.

marcoslucianops avatar marcoslucianops commented on May 14, 2024

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)

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.