Skip to content

Commit f42ea14

Browse files
cyyeverpytorchmergebot
authored andcommitted
Remove vision packages from CI scripts (pytorch#125546)
Because they were solely used by Caffe2. Pull Request resolved: pytorch#125546 Approved by: https://github.com/r-barnes, https://github.com/kit1980, https://github.com/albanD
1 parent d7fe3c4 commit f42ea14

File tree

10 files changed

+1
-111
lines changed

10 files changed

+1
-111
lines changed

.ci/docker/build.sh

-18
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ case "$image" in
9898
GCC_VERSION=9
9999
PROTOBUF=yes
100100
DB=yes
101-
VISION=yes
102101
KATEX=yes
103102
UCX_COMMIT=${_UCX_COMMIT}
104103
UCC_COMMIT=${_UCC_COMMIT}
@@ -112,7 +111,6 @@ case "$image" in
112111
GCC_VERSION=9
113112
PROTOBUF=yes
114113
DB=yes
115-
VISION=yes
116114
KATEX=yes
117115
UCX_COMMIT=${_UCX_COMMIT}
118116
UCC_COMMIT=${_UCC_COMMIT}
@@ -127,7 +125,6 @@ case "$image" in
127125
GCC_VERSION=9
128126
PROTOBUF=yes
129127
DB=yes
130-
VISION=yes
131128
KATEX=yes
132129
UCX_COMMIT=${_UCX_COMMIT}
133130
UCC_COMMIT=${_UCC_COMMIT}
@@ -141,7 +138,6 @@ case "$image" in
141138
GCC_VERSION=9
142139
PROTOBUF=yes
143140
DB=yes
144-
VISION=yes
145141
KATEX=yes
146142
UCX_COMMIT=${_UCX_COMMIT}
147143
UCC_COMMIT=${_UCC_COMMIT}
@@ -153,7 +149,6 @@ case "$image" in
153149
CLANG_VERSION=10
154150
PROTOBUF=yes
155151
DB=yes
156-
VISION=yes
157152
CONDA_CMAKE=yes
158153
ONNX=yes
159154
;;
@@ -172,7 +167,6 @@ case "$image" in
172167
CLANG_VERSION=10
173168
PROTOBUF=yes
174169
DB=yes
175-
VISION=yes
176170
VULKAN_SDK_VERSION=1.2.162.1
177171
SWIFTSHADER=yes
178172
CONDA_CMAKE=yes
@@ -183,7 +177,6 @@ case "$image" in
183177
CLANG_VERSION=10
184178
PROTOBUF=yes
185179
DB=yes
186-
VISION=yes
187180
VULKAN_SDK_VERSION=1.2.162.1
188181
SWIFTSHADER=yes
189182
CONDA_CMAKE=yes
@@ -194,7 +187,6 @@ case "$image" in
194187
GCC_VERSION=9
195188
PROTOBUF=yes
196189
DB=yes
197-
VISION=yes
198190
CONDA_CMAKE=yes
199191
TRITON=yes
200192
;;
@@ -203,7 +195,6 @@ case "$image" in
203195
GCC_VERSION=9
204196
PROTOBUF=yes
205197
DB=yes
206-
VISION=yes
207198
ROCM_VERSION=6.0
208199
NINJA_VERSION=1.9.0
209200
CONDA_CMAKE=yes
@@ -214,7 +205,6 @@ case "$image" in
214205
GCC_VERSION=9
215206
PROTOBUF=yes
216207
DB=yes
217-
VISION=yes
218208
ROCM_VERSION=6.1
219209
NINJA_VERSION=1.9.0
220210
CONDA_CMAKE=yes
@@ -225,7 +215,6 @@ case "$image" in
225215
GCC_VERSION=11
226216
PROTOBUF=yes
227217
DB=yes
228-
VISION=yes
229218
BASEKIT_VERSION=2024.0.0-49522
230219
NINJA_VERSION=1.9.0
231220
CONDA_CMAKE=yes
@@ -236,7 +225,6 @@ case "$image" in
236225
GCC_VERSION=11
237226
PROTOBUF=yes
238227
DB=yes
239-
VISION=yes
240228
KATEX=yes
241229
CONDA_CMAKE=yes
242230
TRITON=yes
@@ -250,30 +238,26 @@ case "$image" in
250238
CLANG_VERSION=12
251239
PROTOBUF=yes
252240
DB=yes
253-
VISION=yes
254241
TRITON=yes
255242
;;
256243
pytorch-linux-jammy-py3-clang12-asan)
257244
ANACONDA_PYTHON_VERSION=3.9
258245
CLANG_VERSION=12
259246
PROTOBUF=yes
260247
DB=yes
261-
VISION=yes
262248
CONDA_CMAKE=yes
263249
TRITON=yes
264250
;;
265251
pytorch-linux-jammy-py3-clang15-asan)
266252
ANACONDA_PYTHON_VERSION=3.10
267253
CLANG_VERSION=15
268254
CONDA_CMAKE=yes
269-
VISION=yes
270255
;;
271256
pytorch-linux-jammy-py3.8-gcc11)
272257
ANACONDA_PYTHON_VERSION=3.8
273258
GCC_VERSION=11
274259
PROTOBUF=yes
275260
DB=yes
276-
VISION=yes
277261
KATEX=yes
278262
CONDA_CMAKE=yes
279263
TRITON=yes
@@ -304,7 +288,6 @@ case "$image" in
304288
ACL=yes
305289
PROTOBUF=yes
306290
DB=yes
307-
VISION=yes
308291
CONDA_CMAKE=yes
309292
# snadampal: skipping sccache due to the following issue
310293
# https://github.com/pytorch/pytorch/issues/121559
@@ -317,7 +300,6 @@ case "$image" in
317300
# Catch-all for builds that are not hardcoded.
318301
PROTOBUF=yes
319302
DB=yes
320-
VISION=yes
321303
echo "image '$image' did not match an existing build configuration"
322304
if [[ "$image" == *py* ]]; then
323305
extract_version_from_image_name py ANACONDA_PYTHON_VERSION

.ci/docker/centos-rocm/Dockerfile

-7
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ RUN if [ -n "${DB}" ]; then bash ./install_db.sh; fi
6262
RUN rm install_db.sh
6363
ENV INSTALLED_DB ${DB}
6464

65-
# (optional) Install vision packages like OpenCV and ffmpeg
66-
ARG VISION
67-
COPY ./common/install_vision.sh ./common/cache_vision_models.sh ./common/common_utils.sh ./
68-
RUN if [ -n "${VISION}" ]; then bash ./install_vision.sh; fi
69-
RUN rm install_vision.sh cache_vision_models.sh common_utils.sh
70-
ENV INSTALLED_VISION ${VISION}
71-
7265
# Install rocm
7366
ARG ROCM_VERSION
7467
COPY ./common/install_rocm.sh install_rocm.sh

.ci/docker/common/install_base.sh

-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ install_centos() {
116116
libstdc++-devel \
117117
libsndfile-devel \
118118
make \
119-
opencv-devel \
120119
sudo \
121120
wget \
122121
vim \

.ci/docker/common/install_vision.sh

-48
This file was deleted.

.ci/docker/ubuntu-cuda/Dockerfile

-7
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,6 @@ RUN if [ -n "${DB}" ]; then bash ./install_db.sh; fi
5656
RUN rm install_db.sh
5757
ENV INSTALLED_DB ${DB}
5858

59-
# (optional) Install vision packages like OpenCV and ffmpeg
60-
ARG VISION
61-
COPY ./common/install_vision.sh ./common/cache_vision_models.sh ./common/common_utils.sh ./
62-
RUN if [ -n "${VISION}" ]; then bash ./install_vision.sh; fi
63-
RUN rm install_vision.sh cache_vision_models.sh common_utils.sh
64-
ENV INSTALLED_VISION ${VISION}
65-
6659
# (optional) Install UCC
6760
ARG UCX_COMMIT
6861
ARG UCC_COMMIT

.ci/docker/ubuntu-rocm/Dockerfile

-7
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,6 @@ RUN if [ -n "${DB}" ]; then bash ./install_db.sh; fi
5353
RUN rm install_db.sh
5454
ENV INSTALLED_DB ${DB}
5555

56-
# (optional) Install vision packages like OpenCV and ffmpeg
57-
ARG VISION
58-
COPY ./common/install_vision.sh ./common/cache_vision_models.sh ./common/common_utils.sh ./
59-
RUN if [ -n "${VISION}" ]; then bash ./install_vision.sh; fi
60-
RUN rm install_vision.sh cache_vision_models.sh common_utils.sh
61-
ENV INSTALLED_VISION ${VISION}
62-
6356
# Install rocm
6457
ARG ROCM_VERSION
6558
COPY ./common/install_rocm.sh install_rocm.sh

.ci/docker/ubuntu-xpu/Dockerfile

-7
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,6 @@ RUN if [ -n "${DB}" ]; then bash ./install_db.sh; fi
8383
RUN rm install_db.sh
8484
ENV INSTALLED_DB ${DB}
8585

86-
# (optional) Install vision packages like OpenCV and ffmpeg
87-
ARG VISION
88-
COPY ./common/install_vision.sh ./common/cache_vision_models.sh ./common/common_utils.sh ./
89-
RUN if [ -n "${VISION}" ]; then bash ./install_vision.sh; fi
90-
RUN rm install_vision.sh cache_vision_models.sh common_utils.sh
91-
ENV INSTALLED_VISION ${VISION}
92-
9386
# (optional) Install non-default CMake version
9487
ARG CMAKE_VERSION
9588
COPY ./common/install_cmake.sh install_cmake.sh

.ci/docker/ubuntu/Dockerfile

-14
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,6 @@ RUN if [ -n "${PROTOBUF}" ]; then bash ./install_protobuf.sh; fi
7373
RUN rm install_protobuf.sh
7474
ENV INSTALLED_PROTOBUF ${PROTOBUF}
7575

76-
# (optional) Install database packages like LMDB and LevelDB
77-
ARG DB
78-
COPY ./common/install_db.sh install_db.sh
79-
RUN if [ -n "${DB}" ]; then bash ./install_db.sh; fi
80-
RUN rm install_db.sh
81-
ENV INSTALLED_DB ${DB}
82-
83-
# (optional) Install vision packages like OpenCV and ffmpeg
84-
ARG VISION
85-
COPY ./common/install_vision.sh ./common/cache_vision_models.sh ./common/common_utils.sh ./
86-
RUN if [ -n "${VISION}" ]; then bash ./install_vision.sh; fi
87-
RUN rm install_vision.sh cache_vision_models.sh common_utils.sh
88-
ENV INSTALLED_VISION ${VISION}
89-
9076
# (optional) Install Android NDK
9177
ARG ANDROID
9278
ARG ANDROID_NDK

.ci/pytorch/common_utils.sh

+1
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ function checkout_install_torchdeploy() {
196196
pushd multipy
197197
git checkout "${commit}"
198198
python multipy/runtime/example/generate_examples.py
199+
sudo apt-get update && sudo apt-get install -y liblzma-dev
199200
BUILD_CUDA_TESTS=1 pip install -e .
200201
popd
201202
popd

.ci/pytorch/test.sh

-2
Original file line numberDiff line numberDiff line change
@@ -1233,8 +1233,6 @@ elif [[ "${TEST_CONFIG}" == *torchbench* ]]; then
12331233
install_torchtext
12341234
install_torchvision
12351235
id=$((SHARD_NUMBER-1))
1236-
# https://github.com/opencv/opencv-python/issues/885
1237-
pip_install opencv-python==4.8.0.74
12381236
if [[ "${TEST_CONFIG}" == *inductor_torchbench_smoketest_perf* ]]; then
12391237
checkout_install_torchbench hf_Bert hf_Albert nanogpt timm_vision_transformer
12401238
PYTHONPATH=$(pwd)/torchbench test_inductor_torchbench_smoketest_perf

0 commit comments

Comments
 (0)