Skip to content

Commit 5379871

Browse files
authored
Merge pull request #7 from PINTO0309/ubuntu2004_tf2.5.0-rc0_torch1.8.1_openvino2021.3.394
ubuntu2004_tf2.5.0-rc0_torch1.8.1_openvino2021.3.394
2 parents e3ffd75 + 9a4f97c commit 5379871

File tree

2 files changed

+17
-18
lines changed

2 files changed

+17
-18
lines changed

Dockerfile

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.04
1+
FROM nvidia/cuda:11.2.2-cudnn8-devel-ubuntu20.04
22

33
ENV DEBIAN_FRONTEND=noninteractive
44
ARG OSVER=ubuntu1804
5-
ARG TENSORFLOWVER=2.4.1
6-
ARG TENSORRTVER=cuda11.0-trt7.1.3.4-ga-20200617
5+
ARG TENSORFLOWVER=2.5.0rc0
6+
ARG TENSORRTVER=cuda11.1-trt7.2.3.4-ga-20210226
77
ARG OPENVINOVER=2021.3.394
88
ARG OPENVINOROOTDIR=/opt/intel/openvino_2021
99
# PyTorch==1.8.1+cu110
@@ -32,7 +32,7 @@ RUN apt-get update && apt-get install -y \
3232
libva-wayland2 libva-glx2 intel-media-va-driver \
3333
libva-dev libmfx-dev libdrm-dev xorg xorg-dev \
3434
openbox libx11-dev libgl1-mesa-glx libgl1-mesa-dev \
35-
libtbb2 libtbb-dev clinfo \
35+
libtbb2 libtbb-dev clinfo since apt-utils \
3636
&& apt clean \
3737
&& rm -rf /var/lib/apt/lists/*
3838

@@ -58,10 +58,10 @@ RUN pip3 install --upgrade pip \
5858
&& rm -rf /var/lib/apt/lists/*
5959

6060
# Install custom tflite_runtime, flatc, edgetpu-compiler
61-
RUN gdown --id 1BDUSgDqdLz1AAdz-TdJCLs85cex4f3S2 \
62-
&& chmod +x tflite_runtime-${TENSORFLOWVER}-py3-none-any.whl \
63-
&& pip install tflite_runtime-${TENSORFLOWVER}-py3-none-any.whl \
64-
&& rm tflite_runtime-${TENSORFLOWVER}-py3-none-any.whl \
61+
RUN gdown --id 1iHvLv3pN9WEA-LkokXA_LthhmjgZc0Xh \
62+
&& chmod +x tflite_runtime-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \
63+
&& pip install tflite_runtime-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \
64+
&& rm tflite_runtime-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \
6565
&& gdown --id 1yOJ_F3IYAo2SlThyRNDoXuxADuM3XdGz \
6666
&& tar -zxvf flatc.tar.gz \
6767
&& chmod +x flatc \
@@ -71,7 +71,6 @@ RUN gdown --id 1BDUSgDqdLz1AAdz-TdJCLs85cex4f3S2 \
7171
&& echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | tee /etc/apt/sources.list.d/coral-edgetpu.list \
7272
&& apt-get update \
7373
&& apt-get install edgetpu-compiler \
74-
&& pip cache purge \
7574
&& apt clean \
7675
&& rm -rf /var/lib/apt/lists/*
7776

@@ -98,9 +97,9 @@ RUN gdown --id 1GfpkEn_rnfYEYY_QzTTM2oiaCPlfbvex \
9897
&& rm -rf /var/lib/apt/lists/*
9998

10099
# Install TensorRT additional package
101-
RUN gdown --id 1gsAOLzTxUTMV4vKXKay5z9rutjlmP2BM \
100+
RUN gdown --id 1nZ8RQU12Zv6JA4726we1Sf3Trcbyt0-W \
102101
&& dpkg -i nv-tensorrt-repo-${OSVER}-${TENSORRTVER}_1-1_amd64.deb \
103-
&& apt-key add /var/nv-tensorrt-repo-${TENSORRTVER}/7fa2af80.pub \
102+
&& apt-key add /var/nv-tensorrt-repo-${OSVER}-${TENSORRTVER}/7fa2af80.pub \
104103
&& apt-get update \
105104
&& apt-get install uff-converter-tf graphsurgeon-tf \
106105
&& rm nv-tensorrt-repo-${OSVER}-${TENSORRTVER}_1-1_amd64.deb \
@@ -122,7 +121,7 @@ RUN gdown --id 1L257ptjP1EnQCDEHwarrDCZw23n4S8rJ \
122121
&& rm -rf /var/lib/apt/lists/*
123122

124123
# Install Custom TensorFlow (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
125-
RUN gdown --id 1P7MPF_05QUcb_jMkLazy8LxGUpNB9V-b \
124+
RUN gdown --id 1r6lubjqU4ApafzZRExYJNXtfDeG0fQoQ \
126125
&& mv tensorflow-${TENSORFLOWVER}-cp38-cp38-linux_x86_64.whl tensorflow-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \
127126
&& pip install --force-reinstall tensorflow-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \
128127
&& rm tensorflow-${TENSORFLOWVER}-cp38-none-linux_x86_64.whl \

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010

1111
## 2. Model optimization environment to be built
1212
1. Ubuntu 20.04 x86_64
13-
2. CUDA 11.0
14-
3. cuDNN 8.0
15-
4. TensorFlow v2.4.1 (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
16-
5. tflite_runtime v2.4.1 (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
13+
2. CUDA 11.2
14+
3. cuDNN 8.1
15+
4. TensorFlow v2.5.0-rc0 (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
16+
5. tflite_runtime v2.5.0-rc0 (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
1717
6. edgetpu-compiler
1818
7. flatc 1.12.0
19-
8. TensorRT cuda11.0-trt7.1.3.4-ga-20200617
19+
8. TensorRT cuda11.1-trt7.2.3.4-ga-20210226
2020
9. PyTorch 1.8.1+cu110
2121
10. TorchVision 0.9.1+cu110
2222
11. TorchAudio 0.8.1
@@ -51,7 +51,7 @@ $ xhost +local: && \
5151
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
5252
-e DISPLAY=$DISPLAY \
5353
--privileged \
54-
pinto0309/mtomo:ubuntu2004_tf2.4.1_torch1.8.1_openvino2021.3.394
54+
pinto0309/mtomo:ubuntu2004_tf2.5.0-rc0_torch1.8.1_openvino2021.3.394
5555
```
5656

5757
### 3-2. Docker Build

0 commit comments

Comments
 (0)