darknet-docker
darknet-docker copied to clipboard
can you please explain the detailed stepsof how to run it?
These are the steps i have followed, im doing the setup on teslav100 ubantu 20.04 machine
- docker pull daisukekobayashi/darknet:darknet_yolo_v4_pre-gpu
- sudo docker run -it -d daisukekobayashi/darknet
- docker exec -it da4112e1cf7b4d54aec7ca5c178abbb7284b3e69105ddb65248fbbcf5774abc5 bash
- now im inside root directory of docker
- $ git clone https://github.com/AlexeyAB/darknet.git $ cd darknet/build/darknet/x64 $ curl -L -O https://pjreddie.com/media/files/yolov3.weights
6.docker run --runtime=nvidia --rm -v $PWD:/workspace -w /workspace daisukekobayashi/darknet darknet_yolo_v4_pre-gpu
darknet detector test data/coco.data yolov3.cfg yolov3.weights -i 0 -thresh 0.25 dog.jpg -ext_output
(unable to run it) Im facing issues with this command. not able to do anything
your help is really appriciate. Thanks in advance
I guess you are confusing you are inside container or not. There are two ways to run darknet command.
One is going into docker container through interactive bash shell and running darknet command as follows.
$ git clone https://github.com/AlexeyAB/darknet.git
$ cd darknet/build/darknet/x64
$ curl -L -O https://pjreddie.com/media/files/yolov3.weights
$ sudo docker run --runtime=nvidia -it --rm -v $PWD:/workspace -w /workspace daisukekobayashi/darknet:darknet_yolo_v4_pre-gpu /bin/bash
# now you are inside docker
$ darknet detector test data/coco.data yolov3.cfg yolov3.weights -i 0 -thresh 0.25 dog.jpg -ext_output
The other is running darknet command directly as follows.
$ git clone https://github.com/AlexeyAB/darknet.git
$ cd darknet/build/darknet/x64
$ curl -L -O https://pjreddie.com/media/files/yolov3.weights
$ sudo docker run --runtime=nvidia --rm -v $PWD:/workspace -w /workspace daisukekobayashi/darknet:darknet_yolo_v4_pre-gpu \
darknet detector test data/coco.data yolov3.cfg yolov3.weights -i 0 -thresh 0.25 dog.jpg -ext_output