Container sets up and installs the latest AlexyAB/Darknet repository with OpenCV running on CPU.
271
Raw ubuntu image with OpenCV and the latest AlexeyAB/darknet installed. Also includes yolov4-tiny weights and a horse testing video (takes a little while to find objects).
Install docker
run: docker pull pullmyleg/darknet
run: docker run -p 8070:8070 -p 8090:8090 --name darknet_pullmyleg -it pullmyleg/darknet
Within the container run: $ ./darknet detector demo cfg/coco.data cfg/yolov4-tiny.cfg yolov4-tiny.weights horse.mp4 -json_port 8070 -mjpeg_port 8090 -ext_output -dont_show
Open: http://localhost:8070/ on your local machine and see the detection output. Open http://localhost:8090/ to see the video stream.
For more information on commands that can be run within this container see: https://github.com/AlexeyAB/darknet#how-to-use-on-the-command-line
This option allows you to install more requirements and to modify the Makefile, e.g. use CUDA and GPU.
Install docker
Save dockerfile as dockerfile on local machine
Navigate to this location in powershell, cmd, terminal etc.
run: docker build -t darknet .
run: to the fridge for a beer (openCV is slow)
Run: docker run -p 8070:8070 -p 8090:8090 --name darknet -it darknet
Within the container run: $ ./darknet detector demo cfg/coco.data cfg/yolov4-tiny.cfg yolov4-tiny.weights horse.mp4 -json_port 8070 -mjpeg_port 8090 -ext_output -dont_show
Open: http://localhost:8070/ on your local machine and see the detection output. Open http://localhost:8090/ to see the video stream.
For more information on commands that can be run within this container see: https://github.com/AlexeyAB/darknet#how-to-use-on-the-command-line
Content type
Image
Digest
Size
414.7 MB
Last updated
over 5 years ago
docker pull pullmyleg/darknet