Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
108 commits
Select commit Hold shift + click to select a range
7cfc8ea
2901 ndim -> spatial_dims (#2903)
wyli Sep 8, 2021
7f3050a
2898 Merge LocalPatchShuffle with RandCoarseDropout (#2907)
Nic-Ma Sep 8, 2021
e52a0fe
Torch Zoom (#2916)
rijobro Sep 9, 2021
281c17e
Torch RandRotate90 (#2915)
rijobro Sep 9, 2021
ef09811
CuPy to Tensor (#2919)
bhashemian Sep 10, 2021
e2965db
[DLMED] add dict version shuffle (#2918)
Nic-Ma Sep 10, 2021
448cdca
Add device to ToTensor (#2926)
bhashemian Sep 11, 2021
c50235c
2920 Enhance padding mode for Tensor data (#2921)
Nic-Ma Sep 12, 2021
1c2608f
fixes #2939 (#2940)
wyli Sep 13, 2021
76dc5c2
enhance docstring (#2938)
wyli Sep 13, 2021
8651b62
[DLMED] enhance scale intensity transforms (#2941)
Nic-Ma Sep 13, 2021
132aa37
2715 enhance resnet downsampling block (#2937)
wyli Sep 13, 2021
8765fc7
ThresholdIntensity, ThresholdIntensityd (#2944)
rijobro Sep 13, 2021
01feacb
Add dropout arg in DynUNet init (#2947)
diazandr3s Sep 13, 2021
7ab0711
2925 Add device option to EnsureType (#2942)
Nic-Ma Sep 13, 2021
f26a712
ScaleIntensityRange, ScaleIntensityRanged, ScaleIntensityRangePercent…
rijobro Sep 14, 2021
f77a799
Rotate, Rotated, RandRotate, RandRotated (#2945)
rijobro Sep 14, 2021
a14ed1b
AffineGrid, RandAffineGrid, Resample, Affine, RandAffine, Affined, Ra…
rijobro Sep 14, 2021
7c45d01
All transforms support torch and numpy (#2949)
rijobro Sep 14, 2021
ff9c80f
Add dtype to ToCupy (#2950)
bhashemian Sep 15, 2021
c624ffc
2948 Enhance the transform to delete items (#2952)
Nic-Ma Sep 15, 2021
2f4b582
2951 Optimize type_conversion logic (#2955)
Nic-Ma Sep 15, 2021
0f17aa9
2231 Fixes tutorial 353 (#2954)
wyli Sep 15, 2021
fb2c2e9
[DLMED] fix float64 bug (#2961)
Nic-Ma Sep 16, 2021
3b6f479
add multi-modal (vision + language) transformers (#2962)
ahatamiz Sep 16, 2021
71ebd91
Torch: `map_binary_to_indices`, `map_classes_to_indices`, `correct_cr…
rijobro Sep 16, 2021
38403ed
cuCIM Transform (#2932)
bhashemian Sep 16, 2021
0c39281
torch `SpatialCrop`, `SpatialCropd` (#2963)
rijobro Sep 16, 2021
43a4342
Update with cupy.ndarray (#2965)
bhashemian Sep 16, 2021
46e594f
Fix for Jupyter plotting (#2964)
ericspod Sep 16, 2021
dc3e263
fixes tutorial issue 352 (#2968)
wyli Sep 17, 2021
ecbb03b
2231 Enhance tensor transforms (#2966)
Nic-Ma Sep 17, 2021
e2e2d08
Torch `RandCropByPosNegLabel`, `RandCropByPosNegLabeld`, `RandCropByL…
rijobro Sep 19, 2021
ee202fa
enhance affinegrid to use torch backend (#2969)
wyli Sep 20, 2021
e2e5e31
Add make the name of wsi reader lowercase (#2973)
bhashemian Sep 20, 2021
731bad8
update multimodal doc and model names (Transchex) (#2979)
ahatamiz Sep 20, 2021
f786957
2914 remove the deprecated API for v0.7 (#2981)
wyli Sep 20, 2021
b791ed2
2985 - enhance nightly test (#2986)
wyli Sep 21, 2021
f31b55f
dimension check for pretrained model weights (#2984)
neuronflow Sep 21, 2021
790fc8f
Refactor unnecessary `else` / `elif` when `if` block has a `return` s…
deepsource-autofix[bot] Sep 22, 2021
d3d1743
3000 Support not copy in CacheDataset (#3001)
Nic-Ma Sep 22, 2021
ed2d12c
3002 - compatibility with torch 1.9.1 (#3003)
wyli Sep 22, 2021
dfe8528
Fix cucim dep compatibility (#3006)
wyli Sep 22, 2021
b3406ae
update cucim dep (#3007)
wyli Sep 23, 2021
eed14df
[DLMED] fix CI test (#3008)
Nic-Ma Sep 23, 2021
46bf30d
3009 Update highlights web page (#3013)
Nic-Ma Sep 23, 2021
64fa255
2914 release note, and what's new for v0.7 (#2992)
wyli Sep 23, 2021
bfa054b
delaying the removal (#3015)
wyli Sep 24, 2021
f06de43
update preview version tag (#3016)
wyli Sep 24, 2021
aa4eb5d
Enhance 0.7 README doc (#3017)
Nic-Ma Sep 24, 2021
a9cd2d8
3020 Enhance what's new for transfomer networks (#3019)
Nic-Ma Sep 24, 2021
453a9c0
Torch `GaussianSmooth`, `RandGaussianSmooth`, `GaussianSharpen`, `Ran…
rijobro Sep 24, 2021
a477905
apply pyupgrade (#3026)
Borda Sep 25, 2021
a0130d1
3018 enhance version string check (#3022)
wyli Sep 27, 2021
fe93596
3028 update ignite CI tests to 0.4.6 (#3029)
Nic-Ma Sep 27, 2021
28fb7d6
enhance DataStats to include dtype (#3043)
wyli Sep 28, 2021
e4dd504
enhance error handling (#3042)
wyli Sep 28, 2021
fc478b0
2792 - Torch GibbsNoise, RandGibbsNoise, KSpaceSpikeNoise, RandKSpace…
rijobro Sep 29, 2021
0c03376
AdjustContrast, AdjustContrastd, RandAdjustContrast, RandAdjustContra…
rijobro Sep 29, 2021
f85ad48
remove false positive tests (#3046)
wyli Sep 29, 2021
bf561bb
Torch `Spacing`, `Spacingd` (#3045)
rijobro Sep 29, 2021
f909a6b
2975 torch fgbgtoindices (#3038)
wyli Sep 30, 2021
d15cedd
3051 Fix dtype issue in Spacing transform (#3052)
Nic-Ma Sep 30, 2021
a589c82
Create transform images (#3039)
rijobro Sep 30, 2021
7c46f8e
2975 Fix the perf issue of RandCropByPosNegLabel (#3050)
Nic-Ma Oct 1, 2021
3b5af50
[DLMED] fix broken link (#3059)
Nic-Ma Oct 2, 2021
8271d8e
remove redundant noqa (#3027)
Borda Oct 3, 2021
87e2ecd
[DLMED] enhance label classes (#3061)
Nic-Ma Oct 4, 2021
15c1f77
[DLMED] enhance ScaleIntensity (#3062)
Nic-Ma Oct 4, 2021
a0aac6a
Extra transform examples (#3056)
rijobro Oct 4, 2021
26f20f4
update backend (#3065)
wyli Oct 4, 2021
7ad0f6e
3063 Fix the complex Tensor issue in type conversion (#3064)
Nic-Ma Oct 4, 2021
4618e85
Ae docs (#3067)
ericspod Oct 4, 2021
04060ff
[pre-commit.ci] pre-commit suggestions (#3069)
pre-commit-ci[bot] Oct 5, 2021
51b2380
update workflow (#3073)
wyli Oct 5, 2021
57a26a0
correct panelled example images (#3068)
rijobro Oct 5, 2021
1651f1b
2755 Add b-spline kernel option (#2847)
kate-sann5100 Oct 5, 2021
6cf6a8d
daily tests for mmar loading (#3066)
wyli Oct 6, 2021
07c5f53
fixes mmar tests (#3077)
wyli Oct 7, 2021
af88eeb
2231 enhances a few transform backends (#3075)
wyli Oct 7, 2021
8d07aad
[DLMED] add more tests (#3080)
Nic-Ma Oct 7, 2021
6a2086d
2357 Fixes unit test cases to run on GA100 (#3072)
wyli Oct 7, 2021
932abbe
fix densenet264 error (#3081)
yiheng-wang-nv Oct 8, 2021
6169c5d
fixes figures (#3083)
wyli Oct 8, 2021
54bd9db
fixes rst format issues (#3088)
wyli Oct 8, 2021
3b109f0
oneof doc (#3090)
wyli Oct 8, 2021
484bb5c
3082 Enhance heavy random computation of transforms (#3086)
Nic-Ma Oct 8, 2021
dc970c7
Torch `CropForeground`, `HistogramNormalize`, `RandHistogramShift` (#…
rijobro Oct 8, 2021
ce38a93
[DLMED] fix wrong doc-string (#3096)
Nic-Ma Oct 9, 2021
31f9c1e
2998 Add MLFlowHandler (#3099)
Nic-Ma Oct 11, 2021
7b1b772
KeepLargestConnectedComponent(d) example transforms (#3108)
rijobro Oct 11, 2021
c346956
Torch `AddCoordinateChannels`, `ExtremePointsChannel`, `RandWeightedC…
rijobro Oct 12, 2021
712d90b
Fix wrong doc-strings in several handlers (#3109)
Nic-Ma Oct 12, 2021
3c8cc78
3097 - `deprecated_arg` replacing name (#3107)
wyli Oct 12, 2021
e0f84f2
3087 enhance usage of intensity `RandomizableTransform` (#3094)
Nic-Ma Oct 12, 2021
ce76ec7
3087 Enhance other `RandomizableTransform` transforms (#3113)
Nic-Ma Oct 13, 2021
9b9516c
[DLMED] fix 1.5.1 cron test (#3121)
Nic-Ma Oct 13, 2021
c4dd43f
3122 pytorch versions tests (#3123)
wyli Oct 14, 2021
ed9cd41
feat: refactor seg-net for easier use (#3057)
BenTenmann Oct 14, 2021
e29a6ea
3127 fixes autopep8 error (#3128)
wyli Oct 14, 2021
356af91
[DLMED] add state attr (#3125)
Nic-Ma Oct 14, 2021
cd6e90c
3124 3126 Fix integration tests (#3130)
Nic-Ma Oct 14, 2021
6dc65db
3114 Add fast training integration test (#3120)
Nic-Ma Oct 14, 2021
6155724
allow ROIs bigger than im for RandCropByLabelClasses, RandCropByPosNe…
rijobro Oct 15, 2021
ff08334
skip tests for torch 1.5 (#3131)
wyli Oct 15, 2021
1259042
senet tests with testing data (#3136)
wyli Oct 15, 2021
0a9d8aa
3134 fixes module alias (#3135)
wyli Oct 15, 2021
3573079
3133 pytorch image 2109 (#3137)
wyli Oct 15, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
42 changes: 42 additions & 0 deletions .github/workflows/cron-mmar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: cron-mmar

on:
schedule:
- cron: "0 2 * * *" # at 02:00 UTC
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: mmar-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
cron-load:
if: github.repository == 'Project-MONAI/MONAI'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: cache weekly timestamp
id: pip-cache
run: echo "::set-output name=datew::$(date '+%Y-%V')"
- name: cache for pip
uses: actions/cache@v2
id: cache
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ steps.pip-cache.outputs.datew }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install -r requirements-dev.txt
- name: Loading MMARs
run: |
# clean up temporary files
$(pwd)/runtests.sh --clean
# run tests
python -m tests.ngc_mmar_loading
10 changes: 6 additions & 4 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:21.02", "pytorch:21.08"] # 21.02 for backward comp.
container: ["pytorch:21.02", "pytorch:21.09"] # 21.02 for backward comp.
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:21.02", "pytorch:21.08"] # 21.02 for backward comp.
container: ["pytorch:21.02", "pytorch:21.09"] # 21.02 for backward comp.
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
needs: cron-gpu # so that monai itself is verified first
container:
image: nvcr.io/nvidia/pytorch:21.08-py3 # testing with the latest pytorch base image
image: nvcr.io/nvidia/pytorch:21.09-py3 # testing with the latest pytorch base image
options: "--gpus all --ipc=host"
runs-on: [self-hosted, linux, x64, common]
steps:
Expand All @@ -215,7 +215,7 @@ jobs:
which python
python -m pip install --upgrade pip wheel
python -m pip install -r requirements-dev.txt
BUILD_MONAI=0 python setup.py develop # install monai
BUILD_MONAI=1 python setup.py develop # install monai
nvidia-smi
export CUDA_VISIBLE_DEVICES=$(python -m tests.utils)
echo $CUDA_VISIBLE_DEVICES
Expand All @@ -234,5 +234,7 @@ jobs:
trap 'if pgrep python; then pkill python; fi;' ERR
python -c $'import torch\na,b=torch.zeros(1,device="cuda:0"),torch.zeros(1,device="cuda:1");\nwhile True:print(a,b)' > /dev/null &
cd /opt/tutorials
python -c 'import monai; monai.config.print_debug_info()'
$(pwd)/runner.sh
python -c 'import monai; monai.config.print_debug_info()'
if pgrep python; then pkill python; fi
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
which python
python -m pip install --upgrade pip wheel
python -m pip uninstall -y torch torchvision
python -m pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install -r requirements-dev.txt
- name: Run integration tests
run: |
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pythonapp-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ jobs:
- environment: PT19+CUDA114
# we explicitly set pytorch to -h to avoid pip install error
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
# 21.08: 1.10.0a0+3fd9dcf
# 21.09: 1.10.0a0+3fd9dcf
pytorch: "-h"
base: "nvcr.io/nvidia/pytorch:21.08-py3"
base: "nvcr.io/nvidia/pytorch:21.09-py3"
- environment: PT19+CUDA102
pytorch: "torch==1.9.0 torchvision==0.10.0"
pytorch: "torch==1.9.1 torchvision==0.10.1"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
container:
image: ${{ matrix.base }}
Expand Down Expand Up @@ -100,6 +100,8 @@ jobs:
run: |
which python
python -m pip install --upgrade pip wheel
# fixes preinstalled ruamel_yaml error from the docker image
rm -rf $(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")/ruamel*
python -m pip install ${{ matrix.pytorch }}
python -m pip install -r requirements-dev.txt
python -m pip list
Expand Down
170 changes: 170 additions & 0 deletions .github/workflows/pythonapp-min.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
name: build-min

on:
# quick tests for pull requests and the releasing branches
push:
branches:
- dev
- main
- releasing/*
pull_request:

concurrency:
# automatically cancel the previously triggered workflows when there's a newer version
group: build-min-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
# caching of these jobs:
# - docker-py3-pip- (shared)
# - ubuntu py37 pip-
# - os-latest-pip- (shared)
min-dep-os: # min dependencies installed tests for different OS
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest, macOS-latest, ubuntu-latest]
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Prepare pip wheel
run: |
which python
python -m pip install --upgrade pip wheel
- name: cache weekly timestamp
id: pip-cache
run: |
echo "::set-output name=datew::$(date '+%Y-%V')"
echo "::set-output name=dir::$(pip cache dir)"
shell: bash
- name: cache for pip
uses: actions/cache@v2
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ matrix.os }}-latest-pip-${{ steps.pip-cache.outputs.datew }}
- if: runner.os == 'windows'
name: Install torch cpu from pytorch.org (Windows only)
run: |
python -m pip install torch==1.9.1+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install the dependencies
run: |
# min. requirements
python -m pip install torch==1.9.1
python -m pip install -r requirements-min.txt
python -m pip list
BUILD_MONAI=0 python setup.py develop # no compile of extensions
shell: bash
- name: Run quick tests (CPU ${{ runner.os }})
run: |
python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
python -c "import monai; monai.config.print_config()"
./runtests.sh --min
shell: bash
env:
QUICKTEST: True

min-dep-py3: # min dependencies installed tests for different python
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Prepare pip wheel
run: |
which python
python -m pip install --user --upgrade pip setuptools wheel
- name: cache weekly timestamp
id: pip-cache
run: |
echo "::set-output name=datew::$(date '+%Y-%V')"
echo "::set-output name=dir::$(pip cache dir)"
shell: bash
- name: cache for pip
uses: actions/cache@v2
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ubuntu-latest-latest-pip-${{ steps.pip-cache.outputs.datew }}
- name: Install the dependencies
run: |
# min. requirements
python -m pip install torch==1.9.1
python -m pip install -r requirements-min.txt
python -m pip list
BUILD_MONAI=0 python setup.py develop # no compile of extensions
shell: bash
- name: Run quick tests (CPU ${{ runner.os }})
run: |
python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
python -c "import monai; monai.config.print_config()"
./runtests.sh --min
env:
QUICKTEST: True

min-dep-pytorch: # min dependencies installed tests for different pytorch
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
pytorch-version: [1.5.1, 1.6.0, 1.7.1, 1.8.1, latest]
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Prepare pip wheel
run: |
which python
python -m pip install --user --upgrade pip setuptools wheel
- name: cache weekly timestamp
id: pip-cache
run: |
echo "::set-output name=datew::$(date '+%Y-%V')"
echo "::set-output name=dir::$(pip cache dir)"
shell: bash
- name: cache for pip
uses: actions/cache@v2
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ubuntu-latest-latest-pip-${{ steps.pip-cache.outputs.datew }}
- name: Install the dependencies
run: |
# min. requirements
if [ ${{ matrix.pytorch-version }} == "latest" ]; then
python -m pip install torch
elif [ ${{ matrix.pytorch-version }} == "1.5.1" ]; then
python -m pip install torch==1.5.1
elif [ ${{ matrix.pytorch-version }} == "1.6.0" ]; then
python -m pip install torch==1.6.0
elif [ ${{ matrix.pytorch-version }} == "1.7.1" ]; then
python -m pip install torch==1.7.1
elif [ ${{ matrix.pytorch-version }} == "1.8.1" ]; then
python -m pip install torch==1.8.1
fi
python -m pip install -r requirements-min.txt
python -m pip list
BUILD_MONAI=0 python setup.py develop # no compile of extensions
shell: bash
- name: Run quick tests (pytorch ${{ matrix.pytorch-version }})
run: |
python -c 'import torch; print(torch.__version__); print(torch.rand(5,3))'
python -c "import monai; monai.config.print_config()"
./runtests.sh --min
env:
QUICKTEST: True
Loading