forked from blakeblackshear/frigate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade to python3.8 and switch from plasma store to shared_memory
- Loading branch information
1 parent
b063099
commit ec4d048
Showing
7 changed files
with
130 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM ubuntu:18.04 | ||
FROM ubuntu:20.04 | ||
LABEL maintainer "[email protected]" | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
@@ -11,38 +11,37 @@ RUN apt -qq update && apt -qq install --no-install-recommends -y \ | |
# libcap-dev \ | ||
&& add-apt-repository ppa:deadsnakes/ppa -y \ | ||
&& apt -qq install --no-install-recommends -y \ | ||
python3.7 \ | ||
python3.7-dev \ | ||
python3.8 \ | ||
python3.8-dev \ | ||
python3-pip \ | ||
ffmpeg \ | ||
# VAAPI drivers for Intel hardware accel | ||
libva-drm2 libva2 i965-va-driver vainfo \ | ||
&& python3.7 -m pip install -U pip \ | ||
&& python3.7 -m pip install -U wheel setuptools \ | ||
&& python3.7 -m pip install -U \ | ||
&& python3.8 -m pip install -U pip \ | ||
&& python3.8 -m pip install -U wheel setuptools \ | ||
&& python3.8 -m pip install -U \ | ||
opencv-python-headless \ | ||
# python-prctl \ | ||
numpy \ | ||
imutils \ | ||
scipy \ | ||
psutil \ | ||
&& python3.7 -m pip install -U \ | ||
&& python3.8 -m pip install -U \ | ||
Flask \ | ||
paho-mqtt \ | ||
PyYAML \ | ||
matplotlib \ | ||
pyarrow \ | ||
click \ | ||
&& echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" > /etc/apt/sources.list.d/coral-edgetpu.list \ | ||
&& wget -q -O - https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - \ | ||
&& apt -qq update \ | ||
&& echo "libedgetpu1-max libedgetpu/accepted-eula boolean true" | debconf-set-selections \ | ||
&& apt -qq install --no-install-recommends -y \ | ||
libedgetpu1-max \ | ||
## Tensorflow lite (python 3.7 only) | ||
&& wget -q https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl \ | ||
&& python3.7 -m pip install tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl \ | ||
&& rm tflite_runtime-2.1.0.post1-cp37-cp37m-linux_x86_64.whl \ | ||
## Tensorflow lite | ||
&& wget -q https://dl.google.com/coral/python/tflite_runtime-2.1.0.post1-cp38-cp38-linux_x86_64.whl \ | ||
&& python3.8 -m pip install tflite_runtime-2.1.0.post1-cp38-cp38-linux_x86_64.whl \ | ||
&& rm tflite_runtime-2.1.0.post1-cp38-cp38-linux_x86_64.whl \ | ||
&& rm -rf /var/lib/apt/lists/* \ | ||
&& (apt-get autoremove -y; apt-get autoclean -y) | ||
|
||
|
@@ -60,4 +59,4 @@ COPY detect_objects.py . | |
COPY benchmark.py . | ||
COPY process_clip.py . | ||
|
||
CMD ["python3.7", "-u", "detect_objects.py"] | ||
CMD ["python3.8", "-u", "detect_objects.py"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.