jcjimenez / darknet-docker Goto Github PK
View Code? Open in Web Editor NEWCollection of Dockerfiles for running darknet/YOLO
Collection of Dockerfiles for running darknet/YOLO
Hello,
Thanks for sharing your work on docker + jetson + darknet...
I'm trying to run darknet with OpenCV but I'm failing, here is what I did try:
Run your prebuild image with opencv:
./darknet-docker run --rm -it jcjimenez/darknet-docker:jetson-tx2-opencv-3.4.1
It gives me this error Demo needs OpenCV for webcam images.
when I try to use something that needs opencv (like running on mp4):
./darknet detector test cfg/voc.data cfg/tiny-yolo-voc.cfg yolov2-tiny-voc.weights video.mp4
Seems darknet wasn't compiled with OPENCV=1
Build my own image:
RUN apt-get -y autoremove && apt-get -y autoclean
RUN rm -rf /var/cache/apt
RUN apt-get update
RUN apt-get install -y \
libglew-dev \
libtiff5-dev \
zlib1g-dev \
libjpeg-dev \
libpng12-dev \
libjasper-dev \
libavcodec-dev \
libavformat-dev \
libavutil-dev \
libpostproc-dev \
libswscale-dev \
libeigen3-dev \
libtbb-dev \
libgtk2.0-dev \
libgstreamer1.0-0 \
libwayland-client0 \
libwayland-egl1-mesa \
libwayland-cursor0 \
cmake \
pkg-config
RUN apt-get install -y python-dev python-numpy python-py python-pytest -y
RUN apt-get install -y libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
RUN apt-get install -y ffmpeg
# The opencv-3.4.1.install.tgz was created by running the script in
#
# https://github.com/jcjimenez/buildOpenCVTX2
#
# and then running something like:
#
# tar cfz opencv-3.4.1.install.tgz -T install_.txt
COPY opencv-3.4.1.tgz /
COPY darknet /darknet
WORKDIR /darknet
But then, when I try to run darknet in the docker container I get this error:
./darknet: error while loading shared libraries: libopencv_highgui.so.3.3: cannot open shared object file: No such file or directory
It seems that opencv isn't correctly installed in the docker container.. I'm investigating further but if you have any idea
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.