Azure / IntelligentEdgeHOL

The IntelligentEdgeHOL walks through the process of deploying an Azure IoT Edge module to an Nvidia Jetson Nano device to allow for detection of objects in YouTube videos, RTSP streams, or an attached web cam
MIT License
39 stars 7 forks source link

Could not run docker image for cuda #1

Closed payalgaikwad42 closed 5 years ago

payalgaikwad42 commented 5 years ago

Hi, I have an darknet application which I want to containerize, It has cuda dependencies so I was looking for some cuda docker image which I can use as a base image while writing the Dockerfile. I came across this repository.

I pulled the docker image toolboc/jetson-nano-l4t-cuda-cudnn-opencv on Xavier and ran It. Then did the following steps manually inside the docker container of the image:

RUN apt update && apt install -y libcanberra-gtk-module && \
    rm -rf /var/lib/apt/lists/* 

#GET Darknet sources
WORKDIR /usr/local/src
RUN git clone https://github.com/AlexeyAB/darknet.git && \
    cd darknet && \
    sed -i 's/GPU=0/GPU=1/g' Makefile && \
    sed -i 's/CUDNN=0/CUDNN=1/g' Makefile && \
    sed -i 's/CUDNN_HALF=0/CUDNN_HALF=1/g' Makefile && \
    sed -i 's/OPENCV=0/OPENCV=1/g' Makefile && \
    sed -i 's/LIBSO=0/LIBSO=1/g' Makefile && \
    sed -i '/arch=compute_53/s/^#.//g' Makefile && \
    make

But I am facing following issues: Screenshot from 2019-10-11 12-06-05 Screenshot from 2019-10-11 12-12-01

payalgaikwad42 commented 5 years ago

Flashed the xavier again with jetpack 4.2.2. And ran it. It worked.