Skip to content

Commit dcbb482

Browse files
authored
Merge pull request #6 from PINTO0309/ubuntu2004_tf2.4.1_torch1.8.1_openvino2021.3.394
pytorch_v1.8.1+cuda11.0, cuda11+cudnn8
2 parents d98f47c + 6d3d0c5 commit dcbb482

File tree

2 files changed

+47
-32
lines changed

2 files changed

+47
-32
lines changed

Dockerfile

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
FROM ubuntu:20.04
1+
FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu20.04
22

33
ENV DEBIAN_FRONTEND=noninteractive
44
ARG OSVER=ubuntu1804
55
ARG TENSORFLOWVER=2.4.1
66
ARG TENSORRTVER=cuda11.0-trt7.1.3.4-ga-20200617
77
ARG OPENVINOVER=2021.3.394
88
ARG OPENVINOROOTDIR=/opt/intel/openvino_2021
9-
ARG TORCHVER=1.7.1+cu110
10-
ARG TORCHVISIONVER=0.8.2+cu110
11-
ARG TORCHAUDIOVER=0.7.2
9+
# PyTorch==1.8.1+cu110
10+
# TorchVision==0.9.1+cu110
11+
# TorchAudio==0.8.1
12+
ARG TORCHVER=1.8.0a0+56b43f4
13+
ARG TORCHVISIONVER=0.9.0a0+8fb5838
14+
ARG TORCHAUDIOVER=0.8.0a0+e4e171a
1215
ARG wkdir=/home/user
1316

1417
# dash -> bash
@@ -49,10 +52,6 @@ RUN pip3 install --upgrade pip \
4952
&& pip install --upgrade onnx-simplifier \
5053
&& pip install --upgrade gdown \
5154
&& pip install --upgrade PyYAML \
52-
&& pip install torch==${TORCHVER} \
53-
torchvision==${TORCHVISIONVER} \
54-
torchaudio==${TORCHAUDIOVER} \
55-
-f https://download.pytorch.org/whl/torch_stable.html \
5655
&& ldconfig \
5756
&& pip cache purge \
5857
&& apt clean \
@@ -108,6 +107,20 @@ RUN gdown --id 1gsAOLzTxUTMV4vKXKay5z9rutjlmP2BM \
108107
&& apt clean \
109108
&& rm -rf /var/lib/apt/lists/*
110109

110+
# Install Custom PyTorch
111+
RUN gdown --id 1L257ptjP1EnQCDEHwarrDCZw23n4S8rJ \
112+
&& pip install torch-${TORCHVER}-cp38-cp38-linux_x86_64.whl \
113+
&& rm torch-${TORCHVER}-cp38-cp38-linux_x86_64.whl \
114+
&& gdown --id 1B7dsmZYQdiMDWHuEMz-wCMEb-3yz-H9j \
115+
&& pip install torchvision-${TORCHVISIONVER}-cp38-cp38-linux_x86_64.whl \
116+
&& rm torchvision-${TORCHVISIONVER}-cp38-cp38-linux_x86_64.whl \
117+
&& gdown --id 1Y5ZOkRB0dN8fu9J6jrxSbvAm19wnO2v9 \
118+
&& pip install torchaudio-${TORCHAUDIOVER}-cp38-cp38-linux_x86_64.whl \
119+
&& rm torchaudio-${TORCHAUDIOVER}-cp38-cp38-linux_x86_64.whl \
120+
&& pip cache purge \
121+
&& apt clean \
122+
&& rm -rf /var/lib/apt/lists/*
123+
111124
# Install Custom TensorFlow (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
112125
RUN gdown --id 1P7MPF_05QUcb_jMkLazy8LxGUpNB9V-b \
113126
&& mv tensorflow-2.4.1-cp38-cp38-linux_x86_64.whl tensorflow-2.4.1-cp38-none-linux_x86_64.whl \

README.md

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,31 @@
1010

1111
## 2. Model optimization environment to be built
1212
1. Ubuntu 20.04 x86_64
13-
2. TensorFlow v2.4.1 (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
14-
3. tflite_runtime v2.4.1 (MediaPipe Custom OP, FlexDelegate, XNNPACK enabled)
15-
4. edgetpu-compiler
16-
5. flatc 1.12.0
17-
6. TensorRT cuda11.0-trt7.1.3.4-ga-20200617
18-
7. PyTorch 1.7.1+cu110
19-
8. TorchVision 0.8.2+cu110
20-
9. TorchAudio 0.7.2
21-
10. OpenVINO 2021.3.394
22-
11. tensorflowjs
23-
12. coremltools
24-
13. onnx
25-
14. tf2onnx
26-
15. tensorflow-datasets
27-
16. openvino2tensorflow
28-
17. tflite2tensorflow
29-
18. onnxruntime
30-
19. onnx-simplifier
31-
20. MXNet
32-
21. gdown
33-
22. OpenCV 4.5.2-openvino
34-
23. Intel-Media-SDK
35-
24. Intel iHD GPU (iGPU) support
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)
17+
6. edgetpu-compiler
18+
7. flatc 1.12.0
19+
8. TensorRT cuda11.0-trt7.1.3.4-ga-20200617
20+
9. PyTorch 1.8.1+cu110
21+
10. TorchVision 0.9.1+cu110
22+
11. TorchAudio 0.8.1
23+
12. OpenVINO 2021.3.394
24+
13. tensorflowjs
25+
14. coremltools
26+
15. onnx
27+
16. tf2onnx
28+
17. tensorflow-datasets
29+
18. openvino2tensorflow
30+
19. tflite2tensorflow
31+
20. onnxruntime
32+
21. onnx-simplifier
33+
22. MXNet
34+
23. gdown
35+
24. OpenCV 4.5.2-openvino
36+
25. Intel-Media-SDK
37+
26. Intel iHD GPU (iGPU) support
3638

3739
## 3. Usage
3840
### 3-1. Docker Hub
@@ -48,7 +50,7 @@ $ xhost +local: && \
4850
-e XDG_RUNTIME_DIR=$XDG_RUNTIME_DIR \
4951
-e DISPLAY=$DISPLAY \
5052
--privileged \
51-
pinto0309/mtomo:ubuntu2004_tf2.4.1_torch1.7.1_openvino2021.3.394
53+
pinto0309/mtomo:ubuntu2004_tf2.4.1_torch1.8.1_openvino2021.3.394
5254
```
5355

5456
### 3-2. Docker Build

0 commit comments

Comments
 (0)