Skip to content

Commit a6b8f2a

Browse files
authored
fixes itk dep. version (#1944)
Signed-off-by: Wenqi Li <[email protected]>
1 parent baf1bec commit a6b8f2a

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

.github/workflows/pythonapp.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,12 +281,19 @@ jobs:
281281
python -m pip install --upgrade pip wheel
282282
python -m pip install ${{ matrix.pytorch }}
283283
python -m pip install -r requirements-dev.txt
284+
python -m pip list
284285
- name: Run quick tests (GPU)
285286
run: |
286-
python -m pip list
287287
nvidia-smi
288+
export LAUNCH_DELAY=$(( RANDOM % 30 * 5 ))
289+
echo "Sleep $LAUNCH_DELAY"
290+
sleep $LAUNCH_DELAY
288291
export CUDA_VISIBLE_DEVICES=$(coverage run -m tests.utils)
289292
echo $CUDA_VISIBLE_DEVICES
293+
stop_time=$((LAUNCH_DELAY + $(date +%s)))
294+
while [ $(date +%s) -lt $stop_time ]; do
295+
python -c 'import torch; torch.rand(5, 3, device=torch.device("cuda:0"))';
296+
done
290297
python -c "import torch; print(torch.__version__); print('{} of GPUs available'.format(torch.cuda.device_count()))"
291298
python -c 'import torch; print(torch.rand(5, 3, device=torch.device("cuda:0")))'
292299
python -c "import monai; monai.config.print_config()"

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
torch>=1.5
33
pytorch-ignite==0.4.4
44
numpy>=1.17
5-
itk>=5.0
5+
itk>=5.0, <=5.1.2
66
nibabel
77
cucim==0.18.2
88
openslide-python==1.1.2

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
pytorch-ignite==0.4.4
44
gdown>=3.6.4
55
scipy
6-
itk>=5.0
6+
itk>=5.0, <=5.1.2
77
nibabel
88
pillow
99
tensorboard

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ all =
3636
pytorch-ignite==0.4.4
3737
gdown>=3.6.4
3838
torchvision
39-
itk>=5.0
39+
itk>=5.0, <=5.1.2
4040
tqdm>=4.47.0
4141
cucim==0.18.2
4242
openslide-python==1.1.2
@@ -55,7 +55,7 @@ ignite =
5555
torchvision =
5656
torchvision
5757
itk =
58-
itk>=5.0
58+
itk>=5.0, <=5.1.2
5959
tqdm =
6060
tqdm>=4.47.0
6161
lmdb =

0 commit comments

Comments
 (0)