Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
183 commits
Select commit Hold shift + click to select a range
dc7a5b2
Adding discussion on format to bundle specification (#4047)
ericspod Apr 4, 2022
c5bf120
[pre-commit.ci] pre-commit suggestions (#4072)
pre-commit-ci[bot] Apr 4, 2022
c51d85e
4060 Add PatchIter and PatchIterd transform (#4061)
Nic-Ma Apr 5, 2022
b229e9c
Fix a logical error in level verification (#4075)
bhashemian Apr 5, 2022
b5e7fe1
[DLMED] add allow_missing_reference (#4079)
Nic-Ma Apr 6, 2022
e8146e9
autofixes: Refactor `if` expression and clangformat (#4081)
deepsource-autofix[bot] Apr 6, 2022
b6b2cfb
SplitDim (#3884)
rijobro Apr 7, 2022
d68554e
update mmar tests (#4091)
wyli Apr 8, 2022
17529e7
extending the mlp module (#4089)
wyli Apr 10, 2022
6602303
added 2D (normalized) surface dice metric (#4050)
SilviaSeidlitz Apr 10, 2022
af6560a
4073 Enhance DynUNet doc-strings (#4102)
yiheng-wang-nv Apr 11, 2022
9c0a538
4105 drops pt16 support (#4106)
wyli Apr 12, 2022
4e7ca44
Make `pixelshuffle` scriptable (#4109)
ramonemiliani93 Apr 12, 2022
1880d38
meta tensor (#4077)
rijobro Apr 12, 2022
f8c2655
4084 Add kwargs for `Tensor.to()` in engines (#4112)
Nic-Ma Apr 13, 2022
ccac5ff
fixes pytorch version tests (#4127)
wyli Apr 13, 2022
137164d
update meta tensor api (#4131)
wyli Apr 14, 2022
5e180c6
runtests.sh isort (#4134)
rijobro Apr 14, 2022
8544d9e
update citation (#4133)
wyli Apr 14, 2022
443fc0c
`ToMetaTensor` and `FromMetaTensor` transforms (#4115)
rijobro Apr 14, 2022
cc9c066
no skip if before pytorch 1.7 (#4139)
rijobro Apr 14, 2022
e1a62f2
[DLMED] fix file name in meta (#4145)
Nic-Ma Apr 19, 2022
4a8f815
4116 Add support for advanced args of AMP (#4132)
Nic-Ma Apr 19, 2022
cb9040e
New wsireader (#4147)
bhashemian Apr 20, 2022
6dfb6a8
`MetaTensor`: collate; decollate; dataset; dataloader; out=; indexing…
rijobro Apr 20, 2022
ed1c281
4148 Enhance engine iteration logic and the typehints (#4150)
Nic-Ma Apr 20, 2022
ed70e11
Add OpenSlide support for new WSIReader (#4155)
bhashemian Apr 22, 2022
65d7296
Redesign PatchWSIDataset (#4152)
bhashemian Apr 22, 2022
e0e2e65
4095 Add bundle download (#4114)
yiheng-wang-nv Apr 22, 2022
710781b
Disable pylint error and fix CI tests of new tifffile (#4162)
Nic-Ma Apr 23, 2022
d69c5ee
Fixed an error in DiNTS model implementation and enabled act and norm…
dongyang0122 Apr 23, 2022
0cdec83
Split transform (#4153)
bhashemian Apr 23, 2022
8f5c992
fix bundle download test issue (#4169)
yiheng-wang-nv Apr 25, 2022
e688989
4094 Enhance `ckpt_export` to save config files (#4159)
Nic-Ma Apr 26, 2022
d63f490
Move RGB/RGBA checks to base class (#4171)
bhashemian Apr 26, 2022
10cbeff
[CICD] To support temp dgx runner (#4175)
pxLi Apr 26, 2022
6393927
Test fix for AMP kwargs (#4178)
ericspod Apr 26, 2022
cc17f38
4167 enhance bundle `run` logic (#4168)
Nic-Ma Apr 27, 2022
5c15138
4172 aggregate with buffer copy (#4174)
wyli Apr 27, 2022
641a079
4173 Enhance decathlon datalist for `test` section format (#4186)
Nic-Ma Apr 27, 2022
5777041
Add DeepEdit transforms and interaction (#4164)
diazandr3s Apr 27, 2022
c9b2d06
Remove commented out code (#4187)
deepsource-autofix[bot] Apr 27, 2022
be3d22f
Remove unused global variable (#4189)
deepsource-autofix[bot] Apr 27, 2022
df177fd
add adn unet (#4185)
wyli Apr 27, 2022
05b9d31
[DLMED] enhance load_files (#4192)
Nic-Ma Apr 28, 2022
9af6332
enhance mean dice (#4163)
yiheng-wang-nv Apr 29, 2022
1331432
Make transforms optional (#4190)
bhashemian Apr 29, 2022
0db84a0
4200 workaround for ci apt (#4202)
wyli Apr 29, 2022
d4a924c
Update the default value of `lazy` arg in the ConfigParser to `True` …
Nic-Ma Apr 30, 2022
30ad90d
udpate md5 (#4213)
wyli May 2, 2022
e093d0b
add swin_unetr model (#4074)
ahatamiz May 3, 2022
b10364c
4217 Update PyTorch docker to 22.04 (#4218)
Nic-Ma May 5, 2022
66f3280
Add InstanceNorm3dNVFuser support (#4194)
yiheng-wang-nv May 5, 2022
5f00bf1
Update dice.py (#4234)
ryancinsight May 6, 2022
209db9e
Bug fix and improvement in WSI (#4216)
bhashemian May 6, 2022
5536cc3
Replace module (#4245)
rijobro May 9, 2022
7fbf3c4
Add GaussianSmooth as antialiasing filter in Resize (#4249)
Can-Zhao May 10, 2022
557c129
4235 fix 2204 nvfuser issue (#4241)
yiheng-wang-nv May 11, 2022
56190dd
Update to Bundle Specifiation (#4250)
ericspod May 11, 2022
0bbeb1e
gradient based saliency (#4236)
rijobro May 11, 2022
812275a
4256 Fix wrong spatial shape in SampleCrop transforms (#4263)
Nic-Ma May 12, 2022
1dfeb74
Split patch functionality for `PatchWSIReader` (#4251)
bhashemian May 13, 2022
0c243b9
Implement NrrdReader (#4259)
kbressem May 13, 2022
db34747
4269 - fixes resample mode typos (#4272)
wyli May 13, 2022
e8d2d4f
unify spelling of metdata in docstrings (#4273)
kbressem May 14, 2022
f4ff8e2
optional nrrd (#4279)
rijobro May 16, 2022
cd77e91
4281 - adds zero_centered option to `AffineTransform` (#4282)
wyli May 18, 2022
db32095
Recursive NVTX Range (#4270)
bhashemian May 18, 2022
6eaa3ab
add box mode convert in box_utils (#4254)
Can-Zhao May 18, 2022
2dfee17
cron tutorial master to main (#4291)
rijobro May 19, 2022
d7767cd
track transforms (#4284)
rijobro May 19, 2022
fdec959
add box center related funcs to box_utils (#4290)
Can-Zhao May 19, 2022
1ff12b9
Make the order of slices row-major (#4297)
bhashemian May 19, 2022
5a5d47f
4293 local pre-commit check support (#4292)
wyli May 19, 2022
068b507
merge certain files from feature/MetaTensor to dev (#4298)
rijobro May 19, 2022
a129499
add box iou into box utils (#4289)
Can-Zhao May 20, 2022
1d5e85a
fix RandAffine with randomize==False (#4304)
rijobro May 20, 2022
e58086d
add box mode convert transform (#4302)
Can-Zhao May 20, 2022
98adb50
add box ops for affine and zoom (#4307)
Can-Zhao May 22, 2022
655c8e7
update swin_unetr block parameter names (#4311)
ahatamiz May 22, 2022
65f1f54
4312 Fix squeeze issue of `get_mask_edges` (#4313)
yiheng-wang-nv May 22, 2022
46f3074
4314 Enhance UnetResBlock (#4317)
yiheng-wang-nv May 23, 2022
07de215
multiprocessing test metatensor (#4308)
wyli May 23, 2022
a1dc54a
add box transforms for affine and zoom (#4309)
Can-Zhao May 24, 2022
2bd56dc
revise dice metric docstring, fixes testing data (#4329)
wyli May 24, 2022
6c8e4ab
Add spatial crop and clip box to Box utils (#4316)
Can-Zhao May 24, 2022
4a0a336
4330 Fix GPU out of memory issue in tests (#4333)
Nic-Ma May 24, 2022
9e8fbaf
add box flip transforms (#4334)
Can-Zhao May 24, 2022
f8d862e
4255 Update bundle download (#4331)
yiheng-wang-nv May 25, 2022
eb60b9c
add box non_max_suppression (#4337)
Can-Zhao May 25, 2022
15eda2a
4343 adds interp mode (#4344)
wyli May 26, 2022
29c6219
4354 workaround protobuf issue (#4355)
wyli May 26, 2022
95b7c4f
Sliding Patch WSI Dataset (#4239)
bhashemian May 26, 2022
a5ca749
add feature pyramid network (FPN) for detection (#4342)
Can-Zhao May 26, 2022
0dac288
add box clip transforms (#4338)
Can-Zhao May 26, 2022
b892aa5
Adding Bundle Utility Functions (#4324)
ericspod May 26, 2022
6b4d9eb
4323 deprecate SegmentationSaver, TorchVisionFullyConvModel (#4347)
wyli May 26, 2022
b6302d7
improve dtype conversion (#4357)
rijobro May 26, 2022
1cfec68
4348 Improve doc and unit tests for "correct center" of crop transfor…
Nic-Ma May 27, 2022
b96f8bd
resize skip interpolation if spatial shapes match (#4369)
wyli May 27, 2022
d46904b
fixes integration test (#4373)
wyli May 27, 2022
f76dd1c
add box coder for detection (#4365)
Can-Zhao May 27, 2022
14f74cb
4375 workaround mlflow integration (#4376)
wyli May 28, 2022
827e1e5
4346 Enhance contribution guide for optional package (#4367)
Nic-Ma May 28, 2022
95c1e80
Add transform between box and mask (#4366)
Can-Zhao May 28, 2022
ba2309c
Sliding window inference that supports multiple zoomed outputs (#4363)
Can-Zhao May 28, 2022
61a0dc3
add ATSS matcher for detection (#4350)
Can-Zhao May 28, 2022
2c78bb0
4323 - review readme (#4390)
wyli May 30, 2022
9133e35
add RetinaNet network (#4378)
Can-Zhao May 30, 2022
8cdd692
Enhance expression logic of bundle config (#4377)
Nic-Ma May 30, 2022
d635339
add anchor generators used for detection (#4336)
Can-Zhao May 30, 2022
4dbbd86
Define `PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION` only when `protobuf>=…
harupy May 30, 2022
a75dd05
add hard_negative_sampler.py for detection (#4301)
Can-Zhao May 31, 2022
2f589c6
`GridPatch` to Extract Tiles/Patches (#4321)
bhashemian May 31, 2022
27c37f2
Foreground Tissue Mask (#4379)
bhashemian May 31, 2022
554de62
PR: NuClick Transforms Addition (#4266)
finalelement May 31, 2022
f540e34
4401 improve parser error message (#4402)
wyli May 31, 2022
a737d58
Minor enhancement for several places (#4409)
Nic-Ma May 31, 2022
38b7943
Move append items to list definition (#4417)
deepsource-autofix[bot] May 31, 2022
40373b2
Refactor Probability Map Producer Handler (#4382)
bhashemian Jun 1, 2022
d8d24ee
4426 Enhance download_url and fixes error msg (#4427)
yiheng-wang-nv Jun 1, 2022
4434a3f
Add detector utils (#4434)
Can-Zhao Jun 1, 2022
bbc628d
add box selector (#4437)
Can-Zhao Jun 2, 2022
187fec8
test update checkout (#4440)
wyli Jun 2, 2022
cfd1562
Enhance ensure_tuple for corner cases (#4439)
Nic-Ma Jun 2, 2022
bbb35e2
add random foreground crop for boxes (#4388)
Can-Zhao Jun 2, 2022
5d7eb10
Add prediction utils that enable inferer (#4438)
Can-Zhao Jun 2, 2022
e2f160d
Add RetinaNet detector (#4400)
Can-Zhao Jun 2, 2022
07306c0
Masked Patch WSI Dataset (#4410)
bhashemian Jun 3, 2022
4cddaa8
add RetinaNet detector loss computation (#4446)
Can-Zhao Jun 3, 2022
c2347fb
New segmentation loss functions and metrics (#4444)
jlcsilva Jun 3, 2022
db02f07
4451 adds testing file downloading (#4452)
wyli Jun 4, 2022
f025193
matshow3d: supports subplot axes input (#4459)
wyli Jun 6, 2022
22924f5
Adding Thread Worker Option to ThreadDataLoader (#4252)
ericspod Jun 6, 2022
f3cbba2
Add RotateBox90 transforms (#4460)
Can-Zhao Jun 7, 2022
f00e9be
4463 Enhance doc-string of Normalize and other places (#4464)
Nic-Ma Jun 7, 2022
7d77322
Add coco detection metrics (#4447)
Can-Zhao Jun 7, 2022
df4a7d7
add GIoU loss for box detection (#4454)
Can-Zhao Jun 7, 2022
a20ff4e
4386 Update highlights for 0.9 release (#4419)
Nic-Ma Jun 8, 2022
7504526
4323 update changelog for 0.9.0 (#4470)
wyli Jun 9, 2022
1daf220
add box convert to world coordinate transform (#4476)
Can-Zhao Jun 10, 2022
96c6cc3
4480 skip unused resampling (#4481)
wyli Jun 10, 2022
e3b47fe
4477 4478 iterables enhancements (#4479)
wyli Jun 10, 2022
179e4de
Fixing SliceInferer Issue (#4482)
ericspod Jun 10, 2022
a23c7f5
enhance swin_unetr relative position (#4486)
ahatamiz Jun 12, 2022
0b97bb6
More Efficient `GridPatch` and `RandGridPatch` V2 (#4473)
bhashemian Jun 13, 2022
af0e0e9
4489 Enhance hyperlinks of config syntax doc (#4490)
Nic-Ma Jun 13, 2022
1188b9c
4323 update docs release versions (#4494)
wyli Jun 15, 2022
ed233d9
changed ngc download url (#4508)
YanxuanLiu Jun 15, 2022
4215599
Fixed generalized dice score (#4511)
jlcsilva Jun 15, 2022
d0a554e
Update bundle specification doc (#4512)
Nic-Ma Jun 16, 2022
0b6af0b
add ngc to PATH (#4517)
YanxuanLiu Jun 16, 2022
78509ae
corner case in coco metric test (#4519)
Can-Zhao Jun 16, 2022
29a724d
Add youden_index and youden as aliases for bm (#4534)
juliannicolas90 Jun 20, 2022
8b5ddf5
MetaTensor non-breaking changes (#4539)
rijobro Jun 20, 2022
1f07913
4530 optional SummaryWriter (#4546)
wyli Jun 21, 2022
d34fa14
Enhance type conversion of MetaTensor (#4549)
Nic-Ma Jun 21, 2022
6c095a8
4351 - adds StrEnum (#4556)
wyli Jun 22, 2022
669bddf
Move metatensor support into dev (update inverse, runtests.sh) (#4557)
Nic-Ma Jun 22, 2022
d6b4593
Wrap `Type` to the typing of `writer` parameter of `SaveImage` (#4561)
function2-llx Jun 23, 2022
ca165d8
add TORCH backend for RandHistogramShift (#4567)
dyollb Jun 23, 2022
9d23698
correct code examples in box_utils docstring (#4572)
Can-Zhao Jun 23, 2022
9c47101
Fix incorrect documentation for ResampleToMatch (#4576)
mueller-franzes Jun 24, 2022
f9b038a
correct a bug in convert_mask_to_box (#4583)
Can-Zhao Jun 24, 2022
4c5c388
Fix error in the bundle script (#4584)
Nic-Ma Jun 24, 2022
78f8e74
Add Unified Focal Loss (#4488)
JohnMasoner Jun 26, 2022
ff9ff55
4502-implement-pydicomreader (#4550)
yiheng-wang-nv Jun 26, 2022
d4c6521
4589 enable dropout in dynunet (#4590)
wyli Jun 27, 2022
23d9b52
Move dictionary inserts to its definition (#4594)
deepsource-autofix[bot] Jun 27, 2022
040a4ce
4578 add default return for ConfigParser (#4601)
Nic-Ma Jun 28, 2022
25d6208
mri utils added (#4552)
mersad95zd Jun 29, 2022
91ec2b5
Hovernet and associated test script added (#4602)
JHancox Jun 29, 2022
112d36c
Fix the location type returned in GridPatch when padding (#4598)
vale-salvatelli Jun 29, 2022
7f80288
debug device conflict (#4614)
Can-Zhao Jun 30, 2022
edf3b74
4531 test/update deps versions (#4605)
wyli Jun 30, 2022
b45794a
fix: avoid duplicate log when multiple DataStats are used (#4623)
upupming Jul 2, 2022
564c6be
[pre-commit.ci] pre-commit suggestions (#4631)
pre-commit-ci[bot] Jul 5, 2022
a2d6346
Move metatensor support into dev branch (crop/pad) (#4548)
Nic-Ma Jun 29, 2022
24cf761
Move metatensor support into dev branch (#4562)
wyli Jul 5, 2022
99b9dd7
compat. torch 1.7/1.8 sw integration
wyli Jul 5, 2022
6638abf
4641 PadListDataCollate for metatensor (#4642)
wyli Jul 6, 2022
4ddd2bc
Fix casting of location dtype in GridPatch (#4635)
vale-salvatelli Jul 6, 2022
e270741
4636 4637 backward compatible types (#4638)
wyli Jul 7, 2022
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
  •  
  •  
  •  
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -53,7 +53,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
# - name: Autobuild
# uses: github/codeql-action/autobuild@v1
# uses: github/codeql-action/autobuild@v2

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
BUILD_MONAI=1 ./runtests.sh --build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .github/workflows/conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
minimum-size: 8
maximum-size: 16
disk-root: "D:"
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/cron-mmar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v3
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
uses: actions/cache@v3
id: cache
with:
path: ~/.cache/pip
Expand Down
30 changes: 15 additions & 15 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ jobs:
runs-on: [self-hosted, linux, x64, common]
strategy:
matrix:
pytorch-version: [1.6.0, 1.7.1, 1.8.1, 1.9.1, latest]
pytorch-version: [1.7.1, 1.8.1, 1.9.1, 1.10.2, latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install the dependencies
run: |
which python
python -m pip install --upgrade pip wheel
python -m pip uninstall -y torch torchvision
if [ ${{ matrix.pytorch-version }} == "latest" ]; then
python -m pip install torch torchvision
elif [ ${{ matrix.pytorch-version }} == "1.6.0" ]; then
python -m pip install torch==1.6.0 torchvision==0.7.0
python -m pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cu113
elif [ ${{ matrix.pytorch-version }} == "1.7.1" ]; then
python -m pip install torch==1.7.1 torchvision==0.8.2
python -m pip install torch==1.7.1 torchvision==0.8.2 --extra-index-url https://download.pytorch.org/whl/cu113
elif [ ${{ matrix.pytorch-version }} == "1.8.1" ]; then
python -m pip install torch==1.8.1 torchvision==0.9.1
python -m pip install torch==1.8.1 torchvision==0.9.1 --extra-index-url https://download.pytorch.org/whl/cu113
elif [ ${{ matrix.pytorch-version }} == "1.9.1" ]; then
python -m pip install torch==1.9.1 torchvision==0.10.1
python -m pip install torch==1.9.1 torchvision==0.10.1 --extra-index-url https://download.pytorch.org/whl/cu113
elif [ ${{ matrix.pytorch-version }} == "1.10.2" ]; then
python -m pip install torch==1.10.2 torchvision==0.11.3 --extra-index-url https://download.pytorch.org/whl/cu113
fi
python -m pip install -r requirements-dev.txt
python -m pip list
Expand Down Expand Up @@ -62,13 +62,13 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:21.02", "pytorch:21.10", "pytorch:22.03"] # 21.02, 21.10 for backward comp.
container: ["pytorch:21.02", "pytorch:21.10", "pytorch:22.06"] # 21.02, 21.10 for backward comp.
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
runs-on: [self-hosted, linux, x64, common]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install APT dependencies
run: |
apt-get update
Expand Down Expand Up @@ -106,13 +106,13 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
matrix:
container: ["pytorch:21.02", "pytorch:21.10", "pytorch:22.03"] # 21.02, 21.10 for backward comp.
container: ["pytorch:21.02", "pytorch:21.10", "pytorch:22.06"] # 21.02, 21.10 for backward comp.
container:
image: nvcr.io/nvidia/${{ matrix.container }}-py3 # testing with the latest pytorch base image
options: "--gpus all"
runs-on: [self-hosted, linux, x64, common]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install the dependencies
Expand Down Expand Up @@ -204,11 +204,11 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
needs: cron-gpu # so that monai itself is verified first
container:
image: nvcr.io/nvidia/pytorch:22.03-py3 # testing with the latest pytorch base image
image: nvcr.io/nvidia/pytorch:22.06-py3 # testing with the latest pytorch base image
options: "--gpus all --ipc=host"
runs-on: [self-hosted, linux, x64, common]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install MONAI
id: monai-install
run: |
Expand All @@ -223,7 +223,7 @@ jobs:
- name: Checkout tutorials and install their requirements
run: |
cd /opt
git clone --depth 1 --branch master --single-branch https://github.com/Project-MONAI/tutorials.git # latest commit of master branch
git clone --depth 1 --branch main --single-branch https://github.com/Project-MONAI/tutorials.git # latest commit of main branch
cd tutorials
python -m pip install -r requirements.txt
- name: Run tutorial notebooks
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ jobs:
if: github.repository == 'Project-MONAI/MONAI'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
# full history so that we can git describe
with:
ref: dev
fetch-depth: 0
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.8
- shell: bash
Expand All @@ -50,7 +50,7 @@ jobs:
needs: versioning_dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ref: dev
- name: Download version
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ on:
jobs:
integration-py3:
container:
image: nvcr.io/nvidia/pytorch:21.12-py3 # CUDA 11.5
options: --gpus all
image: nvcr.io/nvidia/pytorch:22.04-py3 # CUDA 11.6
options: --gpus all # shm-size 4g works fine
runs-on: [self-hosted, linux, x64, common]
steps:
# checkout the pull request branch
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
token: ${{ secrets.PR_MAINTAIN }}
repository: ${{ github.event.client_payload.pull_request.head.repo.full_name }}
Expand All @@ -22,7 +22,7 @@ jobs:
run: |
echo "::set-output name=datew::$(date '+%Y-%V')"
- name: cache for pip
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: |
Expand All @@ -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.11.0+cu115 torchvision==0.12.0+cu115 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install -r requirements-dev.txt
rm -rf /github/home/.cache/torch/hub/mmars/
- name: Run integration tests
Expand Down
30 changes: 19 additions & 11 deletions .github/workflows/pythonapp-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ jobs:
- "PT17+CUDA102"
- "PT18+CUDA102"
- "PT18+CUDA112"
- "PT111+CUDA116"
- "PT112+CUDA116"
- "PT110+CUDA102"
- "PT111+CUDA102"
- "PT112+CUDA102"
include:
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
- environment: PT17+CUDA102
pytorch: "torch==1.7.1 torchvision==0.8.2"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
- environment: PT18+CUDA102
pytorch: "torch==1.8.1 torchvision==0.9.1"
# pytorch 1.8.2 LTS
pytorch: "torch==1.8.2 torchvision==0.9.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cu102"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
- environment: PT18+CUDA112
# we explicitly set pytorch to -h to avoid pip install error
Expand All @@ -44,29 +45,36 @@ jobs:
# 21.10: 1.10.0a0+0aef44c
pytorch: "-h"
base: "nvcr.io/nvidia/pytorch:21.10-py3"
- environment: PT111+CUDA116
- environment: PT112+CUDA116
# we explicitly set pytorch to -h to avoid pip install error
# 22.03: 1.12.0a0+2c916ef
# 22.06: 1.13.0a0+340c412
pytorch: "-h"
base: "nvcr.io/nvidia/pytorch:22.03-py3"
base: "nvcr.io/nvidia/pytorch:22.06-py3"
- environment: PT110+CUDA102
pytorch: "torch==1.10.1 torchvision==0.11.2"
pytorch: "torch==1.10.2 torchvision==0.11.3"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
- environment: PT111+CUDA102
pytorch: "torch==1.11.0 torchvision==0.12.0"
- environment: PT112+CUDA102
pytorch: "torch==1.12.0 torchvision==0.13.0"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
container:
image: ${{ matrix.base }}
options: --gpus all
runs-on: [self-hosted, linux, x64, common]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: apt install
run: |
# workaround for https://github.com/Project-MONAI/MONAI/issues/4200
apt-key del 7fa2af80 && rm -rf /etc/apt/sources.list.d/nvidia-ml.list /etc/apt/sources.list.d/cuda.list
apt-get update
apt-get install -y wget
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-keyring_1.0-1_all.deb
dpkg -i cuda-keyring_1.0-1_all.deb

if [ ${{ matrix.environment }} = "PT17+CUDA102" ] || \
[ ${{ matrix.environment }} = "PT18+CUDA102" ] || \
[ ${{ matrix.environment }} = "PT110+CUDA102" ] || \
[ ${{ matrix.environment }} = "PT111+CUDA102" ]
[ ${{ matrix.environment }} = "PT112+CUDA102" ]
then
PYVER=3.7 PYSFX=3 DISTUTILS=python3-distutils && \
apt-get update && apt-get install -y --no-install-recommends \
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/pythonapp-min.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ jobs:
os: [windows-latest, macOS-latest, ubuntu-latest]
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Prepare pip wheel
Expand All @@ -43,19 +43,19 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"
shell: bash
- name: cache for pip
uses: actions/cache@v2
uses: actions/cache@v3
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.11.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
python -m pip install torch==1.12.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install the dependencies
run: |
# min. requirements
python -m pip install torch==1.11.0
python -m pip install torch==1.12.0
python -m pip install -r requirements-min.txt
python -m pip list
BUILD_MONAI=0 python setup.py develop # no compile of extensions
Expand All @@ -77,9 +77,9 @@ jobs:
python-version: [3.7, 3.8, 3.9]
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Prepare pip wheel
Expand All @@ -93,15 +93,15 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"
shell: bash
- name: cache for pip
uses: actions/cache@v2
uses: actions/cache@v3
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.11.0
python -m pip install torch==1.12.0
python -m pip install -r requirements-min.txt
python -m pip list
BUILD_MONAI=0 python setup.py develop # no compile of extensions
Expand All @@ -119,12 +119,12 @@ jobs:
strategy:
fail-fast: false
matrix:
pytorch-version: [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, latest]
pytorch-version: [1.7.1, 1.8.2, 1.9.1, 1.10.2, 1.11.0, latest]
timeout-minutes: 40
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Prepare pip wheel
Expand All @@ -138,7 +138,7 @@ jobs:
echo "::set-output name=dir::$(pip cache dir)"
shell: bash
- name: cache for pip
uses: actions/cache@v2
uses: actions/cache@v3
id: cache
with:
path: ${{ steps.pip-cache.outputs.dir }}
Expand All @@ -148,16 +148,16 @@ jobs:
# min. requirements
if [ ${{ matrix.pytorch-version }} == "latest" ]; then
python -m pip install torch
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
elif [ ${{ matrix.pytorch-version }} == "1.8.2" ]; then
python -m pip install torch==1.8.2 --extra-index-url https://download.pytorch.org/whl/lts/1.8/cpu
elif [ ${{ matrix.pytorch-version }} == "1.9.1" ]; then
python -m pip install torch==1.9.1
elif [ ${{ matrix.pytorch-version }} == "1.10.1" ]; then
python -m pip install torch==1.10.1
elif [ ${{ matrix.pytorch-version }} == "1.10.2" ]; then
python -m pip install torch==1.10.2
elif [ ${{ matrix.pytorch-version }} == "1.11.0" ]; then
python -m pip install torch==1.11.0
fi
python -m pip install -r requirements-min.txt
python -m pip list
Expand Down
Loading