Skip to content

Commit

Permalink
Allow ubuntu_install_darknet.sh to work in both 18.04 and 16.04 (apac…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramana Radhakrishnan authored and trevor-m committed Jun 18, 2020
1 parent dd93c4f commit a8a9e6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docker/install/ubuntu_install_darknet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@ set -o pipefail

#install the necessary dependancies, cffi, opencv
wget -q 'https://github.com/siju-samuel/darknet/blob/master/lib/libdarknet.so?raw=true' -O libdarknet.so
pip2 install opencv-python cffi
debian_version=`cat /etc/debian_version`
if [ "$debian_version" == "stretch/sid" ]; then
pip2 install opencv-python cffi
fi
pip3 install opencv-python cffi

0 comments on commit a8a9e6f

Please sign in to comment.