marcoslucianops / DeepStream-Yolo

NVIDIA DeepStream SDK 7.0 / 6.4 / 6.3 / 6.2 / 6.1.1 / 6.1 / 6.0.1 / 6.0 / 5.1 implementation for YOLO models
MIT License
1.47k stars 357 forks source link

fatal error: NvCaffeParser.h: No such file or directory~ #315

Open Nuwan1654 opened 1 year ago

Nuwan1654 commented 1 year ago

I am getting the above error when trying to compile, any idea why?

marcoslucianops commented 1 year ago

Are you using docker?

Nuwan1654 commented 1 year ago

yes, I pulled the docker using this command docker pull nvcr.io/nvidia/deepstream:6.2-samples

I am running it on jetson AGX Orin

marcoslucianops commented 1 year ago

Please run the command /opt/nvidia/deepstream/deepstream/user_additional_install.sh to install the dependencies before run the deepstream-app command.

Nuwan1654 commented 1 year ago

I installed the dependencies with the above command, but the error is still there, also it is coming when I try to run CUDA_VER=11.4 make -C nvdsinfer_custom_impl_Yolo command

Hasan-atc commented 1 year ago

Hello, I was having the same problem and I made a make (in the Deepstream Yolo ONNX file) as described in this https://github.com/bharath5673/Deepstream and copied the DeepStream-Yolo file to my deepstream docker file. And when I run CUDA_VER=11.6 make -C nvdsinfer_custom_impl_Yolo again and run it, the problem is gone.

marcoslucianops commented 1 year ago

Please check with the updated files in this repo.

pktiuk commented 4 months ago

This problem may happen after installation of tensorrt in docker (Jetson Orin with Jetpack 6.0)

Reproduction Dockerfile

FROM nvcr.io/nvidia/deepstream:7.0-triton-multiarch

#REMOVING this line fixes compilation
RUN apt install -y tensorrt 

RUN cd /opt/nvidia/deepstream/deepstream/sources && \
git clone https://github.com/marcoslucianops/DeepStream-Yolo.git && \
cd DeepStream-Yolo/nvdsinfer_custom_impl_Yolo && \
export CUDA_VER=$(ls /usr/local | grep cuda- | tail -n 1| sed 's/cuda-//g') && \
echo "🟢 Found CUDA  version: $CUDA_VER (dir /usr/local/`ls /usr/local | grep cuda- | tail -n 1`)" && \
make

I created Issue on Nvidia Forum: https://forums.developer.nvidia.com/t/installation-of-tensorrt-package-removes-file-nvcaffeparser-h/295792

marcoslucianops commented 5 days ago

The TensorRT is already installed on this docker image.