@@ -174,6 +174,26 @@ commands:
174
174
- store_test_results:
175
175
path: test-results
176
176
177
+ download_model_weights:
178
+ parameters:
179
+ extract_roots:
180
+ type: string
181
+ default: "torchvision/models"
182
+ background:
183
+ type: boolean
184
+ default: true
185
+ steps:
186
+ - apt_install:
187
+ args: parallel wget
188
+ descr: Install download utilitites
189
+ - run:
190
+ name: Download model weights
191
+ background: << parameters.background >>
192
+ command: |
193
+ mkdir -p ~/.cache/torch/hub/checkpoints
194
+ python scripts/collect_model_urls.py << parameters.extract_roots >> \
195
+ | parallel -j0 'wget --no-verbose -O ~/.cache/torch/hub/checkpoints/`basename {}` {}\?source=ci'
196
+
177
197
binary_common: &binary_common
178
198
parameters:
179
199
# Edit these defaults to do a release
@@ -340,14 +360,8 @@ jobs:
340
360
resource_class: xlarge
341
361
steps:
342
362
- checkout
343
- - run:
344
- name: Download model weights
345
- background: true
346
- command: |
347
- sudo apt update -qy && sudo apt install -qy parallel wget
348
- mkdir -p ~/.cache/torch/hub/checkpoints
349
- python scripts/collect_model_urls.py torchvision/prototype/models \
350
- | parallel -j0 'wget --no-verbose -O ~/.cache/torch/hub/checkpoints/`basename {}` {}\?source=ci'
363
+ - download_model_weights:
364
+ extract_roots: torchvision/prototype/models
351
365
- install_torchvision
352
366
- install_prototype_dependencies
353
367
- pip_install:
@@ -1011,12 +1025,13 @@ jobs:
1011
1025
build_docs:
1012
1026
<<: *binary_common
1013
1027
docker:
1014
- - image: "pytorch/manylinux-cuda100"
1028
+ - image: circleci/python:3.7
1015
1029
resource_class: 2xlarge+
1016
1030
steps:
1017
1031
- attach_workspace:
1018
1032
at: ~/workspace
1019
1033
- checkout
1034
+ - download_model_weights
1020
1035
- run:
1021
1036
name: Setup
1022
1037
command: .circleci/unittest/linux/scripts/setup_env.sh
0 commit comments