摘自 docjerhub官方网站:https://registry.hub.docker.com/r/daisukekobayashi/darknet
Releases
For example when you want to use YOLOv4 pre-release gpu image, you can pull image as follows.
$ docker pull daisukekobayashi/darknet:darknet_yolo_v4_pre-gpu
Running docker container
$ docker run --runtime=nvidia --rm -v $PWD:/workspace -w /workspace \
daisukekobayashi/darknet:gpu darknet ...
You need to specify nvidia runtime when you use Darknet gpu container.
$ git clone https://github.com/AlexeyAB/darknet.git
$ cd darknet/build/darknet/x64
$ curl -L -O https://pjreddie.com/media/files/yolov3.weights
$ docker run --runtime=nvidia --rm -v $PWD:/workspace -w /workspace daisukekobayashi/darknet:gpu \
darknet detector test data/coco.data yolov3.cfg yolov3.weights -i 0 -thresh 0.25 dog.jpg -ext_output
This is example to test yolov3 using Darknet gpu container.
$ docker run --rm -it daisukekobayashi/darknet:cpu bash -c 'echo "$SOURCE_BRANCH" && echo "$SOURCE_COMMIT"'
Check darknet version.