File tree Expand file tree Collapse file tree 10 files changed +55
-15
lines changed Expand file tree Collapse file tree 10 files changed +55
-15
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,25 @@ RUN pip install --no-cache-dir /tmp/apex/apex-*.whl && \
42
42
# Install tzdata / git
43
43
RUN apt-get update && \
44
44
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
45
- apt-get install -y tzdata && \
45
+ apt-get -y install --no-install-recommends tzdata git && \
46
46
dpkg-reconfigure --frontend noninteractive tzdata && \
47
- apt-get -y install --no-install-recommends git && \
47
+ apt-get autoremove -y && \
48
+ apt-get clean -y && \
48
49
rm -rf /var/lib/apt/lists/*
49
50
50
51
# Ignite main dependencies
51
52
RUN pip install --upgrade --no-cache-dir pytorch-ignite \
52
53
tensorboard \
53
54
tqdm
54
55
56
+ # replace pillow with pillow-simd
57
+ RUN apt-get update && apt-get -y install --no-install-recommends g++ && \
58
+ pip uninstall -y pillow && \
59
+ CC="cc -mavx2" pip install --upgrade --no-cache-dir --force-reinstall pillow-simd && \
60
+ apt-get remove -y g++ && \
61
+ apt-get autoremove -y && \
62
+ rm -rf /var/lib/apt/lists/*
63
+
55
64
# Checkout Ignite examples only
56
65
RUN mkdir -p pytorch-ignite-examples && \
57
66
cd pytorch-ignite-examples && \
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ RUN pip install --upgrade --no-cache-dir albumentations \
16
16
numpy \
17
17
opencv-python-headless \
18
18
py_config_runner \
19
- pillow \
20
19
clearml
Original file line number Diff line number Diff line change @@ -21,16 +21,25 @@ FROM pytorch/pytorch:${PTH_VERSION}-runtime
21
21
# Install tzdata / git
22
22
RUN apt-get update && \
23
23
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
24
- apt-get install -y tzdata && \
24
+ apt-get -y install --no-install-recommends tzdata git && \
25
25
dpkg-reconfigure --frontend noninteractive tzdata && \
26
- apt-get -y install --no-install-recommends git && \
26
+ apt-get autoremove -y && \
27
+ apt-get clean -y && \
27
28
rm -rf /var/lib/apt/lists/*
28
29
29
30
# Ignite main dependencies
30
31
RUN pip install --upgrade --no-cache-dir pytorch-ignite \
31
32
tensorboard \
32
33
tqdm
33
34
35
+ # replace pillow with pillow-simd
36
+ RUN apt-get update && apt-get -y install --no-install-recommends g++ && \
37
+ pip uninstall -y pillow && \
38
+ CC="cc -mavx2" pip install --upgrade --no-cache-dir --force-reinstall pillow-simd && \
39
+ apt-get remove -y g++ && \
40
+ apt-get autoremove -y && \
41
+ rm -rf /var/lib/apt/lists/*
42
+
34
43
# Checkout Ignite examples only
35
44
RUN mkdir -p pytorch-ignite-examples && \
36
45
cd pytorch-ignite-examples && \
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ RUN pip install --upgrade --no-cache-dir albumentations \
16
16
numpy \
17
17
opencv-python-headless \
18
18
py_config_runner \
19
- pillow \
20
19
clearml
Original file line number Diff line number Diff line change @@ -31,16 +31,25 @@ RUN pip install --no-cache-dir /tmp/apex/apex-*.whl && \
31
31
# Install tzdata / git
32
32
RUN apt-get update && \
33
33
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
34
- apt-get install -y tzdata && \
34
+ apt-get -y install --no-install-recommends tzdata git && \
35
35
dpkg-reconfigure --frontend noninteractive tzdata && \
36
- apt-get -y install --no-install-recommends git && \
36
+ apt-get autoremove -y && \
37
+ apt-get clean -y && \
37
38
rm -rf /var/lib/apt/lists/*
38
39
39
40
# Ignite main dependencies
40
41
RUN pip install --upgrade --no-cache-dir pytorch-ignite \
41
42
tensorboard \
42
43
tqdm
43
44
45
+ # replace pillow with pillow-simd
46
+ RUN apt-get update && apt-get -y install --no-install-recommends g++ && \
47
+ pip uninstall -y pillow && \
48
+ CC="cc -mavx2" pip install --upgrade --no-cache-dir --force-reinstall pillow-simd && \
49
+ apt-get remove -y g++ && \
50
+ apt-get autoremove -y && \
51
+ rm -rf /var/lib/apt/lists/*
52
+
44
53
# Checkout Ignite examples only
45
54
RUN mkdir -p pytorch-ignite-examples && \
46
55
cd pytorch-ignite-examples && \
Original file line number Diff line number Diff line change @@ -16,5 +16,4 @@ RUN pip install --upgrade --no-cache-dir albumentations \
16
16
numpy \
17
17
opencv-python-headless \
18
18
py_config_runner \
19
- pillow \
20
19
clearml
Original file line number Diff line number Diff line change @@ -6,16 +6,25 @@ FROM pytorch/pytorch:${PTH_VERSION}-runtime
6
6
# Install tzdata / git
7
7
RUN apt-get update && \
8
8
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
9
- apt-get install -y tzdata && \
9
+ apt-get -y install --no-install-recommends tzdata git && \
10
10
dpkg-reconfigure --frontend noninteractive tzdata && \
11
- apt-get -y install --no-install-recommends git && \
11
+ apt-get autoremove -y && \
12
+ apt-get clean -y && \
12
13
rm -rf /var/lib/apt/lists/*
13
14
14
15
# Ignite main dependencies
15
16
RUN pip install --upgrade --no-cache-dir pytorch-ignite \
16
17
tensorboard \
17
18
tqdm
18
19
20
+ # replace pillow with pillow-simd
21
+ RUN apt-get update && apt-get -y install --no-install-recommends g++ && \
22
+ pip uninstall -y pillow && \
23
+ CC="cc -mavx2" pip install --upgrade --no-cache-dir --force-reinstall pillow-simd && \
24
+ apt-get remove -y g++ && \
25
+ apt-get autoremove -y && \
26
+ rm -rf /var/lib/apt/lists/*
27
+
19
28
# Checkout Ignite examples only
20
29
RUN mkdir -p pytorch-ignite-examples && \
21
30
cd pytorch-ignite-examples && \
Original file line number Diff line number Diff line change @@ -15,5 +15,4 @@ RUN pip install --upgrade --no-cache-dir albumentations \
15
15
numpy \
16
16
opencv-python-headless \
17
17
py_config_runner \
18
- pillow \
19
18
clearml
Original file line number Diff line number Diff line change @@ -53,16 +53,25 @@ RUN cd /msdp && export CUDA_HOME=/usr/local/cuda && \
53
53
# Install tzdata / git
54
54
RUN apt-get update && \
55
55
ln -fs /usr/share/zoneinfo/America/New_York /etc/localtime && \
56
- apt-get install -y tzdata && \
56
+ apt-get -y install --no-install-recommends tzdata git && \
57
57
dpkg-reconfigure --frontend noninteractive tzdata && \
58
- apt-get -y install --no-install-recommends git && \
58
+ apt-get autoremove -y && \
59
+ apt-get clean -y && \
59
60
rm -rf /var/lib/apt/lists/*
60
61
61
62
# Ignite main dependencies
62
63
RUN pip install --upgrade --no-cache-dir pytorch-ignite \
63
64
tensorboard \
64
65
tqdm
65
66
67
+ # replace pillow with pillow-simd
68
+ RUN apt-get update && apt-get -y install --no-install-recommends g++ && \
69
+ pip uninstall -y pillow && \
70
+ CC="cc -mavx2" pip install --upgrade --no-cache-dir --force-reinstall pillow-simd && \
71
+ apt-get remove -y g++ && \
72
+ apt-get autoremove -y && \
73
+ rm -rf /var/lib/apt/lists/*
74
+
66
75
# Checkout Ignite examples only
67
76
RUN mkdir -p pytorch-ignite-examples && \
68
77
cd pytorch-ignite-examples && \
Original file line number Diff line number Diff line change @@ -15,5 +15,4 @@ RUN pip install --upgrade --no-cache-dir albumentations \
15
15
numpy \
16
16
opencv-python-headless \
17
17
py_config_runner \
18
- pillow \
19
18
clearml
You can’t perform that action at this time.
0 commit comments