Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge master #305

Merged
merged 230 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
230 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
d538aa5
2186 add Grid Distortion transform (#3117)
yiheng-wang-nv Oct 18, 2021
467138f
400 Add example in the doc-string of Metric (#3139)
Nic-Ma Oct 18, 2021
071879e
update rand grid distortions (#3144)
wyli Oct 18, 2021
6938313
Add Tensor support to CropForegroundd transform (#3140)
Nic-Ma Oct 19, 2021
2920dd3
[DLMED] fix data type issue (#3143)
Nic-Ma Oct 19, 2021
c4fe607
Refactor unnecessary `else` / `elif` when `if` block has a `return` s…
deepsource-autofix[bot] Oct 19, 2021
dfcfa9a
2824 deprecate self-hosted docker tests (#3145)
wyli Oct 19, 2021
2bab12c
2824 deprecate self-hosted release pipeline (#3148)
wyli Oct 20, 2021
4785ede
Add tutorial link to doc-string of handlers (#3150)
Nic-Ma Oct 20, 2021
e641722
update based on comments (#3156)
wyli Oct 20, 2021
7da6130
3142 Fix mixed output data type in transforms (#3157)
Nic-Ma Oct 21, 2021
536e056
fixes #3165 (#3166)
wyli Oct 22, 2021
50a09c8
3168 torch 1 10 (#3169)
wyli Oct 22, 2021
51bebf3
3146 Added callable example to the doc-string of `output_transform` (…
Nic-Ma Oct 22, 2021
ee8b981
2929 revise docstrings (#3170)
wyli Oct 22, 2021
7964d45
3159 adds a default util logger (#3160)
wyli Oct 23, 2021
299367e
[DLMED] add link and update chart (#3179)
Nic-Ma Oct 24, 2021
a2027ec
3174 Add support to scale datalist (#3175)
Nic-Ma Oct 25, 2021
9084c45
3172 Add utility to save a model into TorchScript model (#3173)
Nic-Ma Oct 25, 2021
53b98ac
fixes url (#3183)
wyli Oct 25, 2021
912c53b
Torch `BoundingRect`, `FillHoles`, `VoteEnsemble`, `MeanEnsemble` (#3…
rijobro Oct 25, 2021
e5ddf20
3189 Add extra input support in prepare_batch (#3190)
Nic-Ma Oct 26, 2021
65c253e
3142 Add backend to utility transforms (#3186)
Nic-Ma Oct 26, 2021
7dc364c
squeeze non-spatial dims in nib-reader (#3184)
dyollb Oct 26, 2021
c877001
[DLMED] fix iteration bug (#3202)
Nic-Ma Oct 27, 2021
95ed167
2755 fix bug (#3196)
kate-sann5100 Oct 27, 2021
11ff52a
[DLMED] add param at runtime (#3205)
Nic-Ma Oct 28, 2021
d1942cc
Fix focal loss when reduction=none (#3041)
Erotemic Oct 28, 2021
d932c5a
3210 Fix misleading document in the Torchvision netadapter (#3211)
Nic-Ma Oct 29, 2021
a7bc776
minor typo fixes (#3209)
wyli Oct 29, 2021
1c1c50f
Torch `ProbNMS`, `LabelFilter` (#3203)
rijobro Oct 29, 2021
f43a927
remove used param (#3206)
wyli Oct 29, 2021
cc136c0
3195 Enhance `CSVIterableDataset` with shuffle (#3198)
Nic-Ma Oct 29, 2021
30c1c36
3207 Add reduction options to metric handlers (#3208)
Nic-Ma Oct 30, 2021
ec479d5
fixes iterable tests (#3221)
wyli Oct 31, 2021
fbb92fc
3161 Skip reader registration if the dependency package not installed…
Nic-Ma Oct 31, 2021
27c9b0a
change pool layer and features order (#3227)
yiheng-wang-nv Nov 1, 2021
3339f43
3192 adds plot util (#3193)
wyli Nov 1, 2021
3960a51
Fix 3 issues in CSVIterableDataset (#3226)
Nic-Ma Nov 1, 2021
223476b
Add `dtype` to ScaleIntensityRange transforms (#3235)
Nic-Ma Nov 2, 2021
aabcfed
fixes rescale array (#3244)
wyli Nov 2, 2021
99d651a
blend images (#3242)
rijobro Nov 2, 2021
4c7a187
Adding ViT Autoencoder (#3194)
finalelement Nov 2, 2021
547830b
2231 adds backend for largest cc (#3239)
wyli Nov 3, 2021
ca15762
Enhance rescale_array (#3246)
Nic-Ma Nov 3, 2021
02efc60
3212 3243 Add utility to check missing files in datalist (#3247)
Nic-Ma Nov 3, 2021
c9302e4
Improve WSIReader (#3241)
bhashemian Nov 3, 2021
6944ac0
Update spatial_shape for WSIReader (#3257)
bhashemian Nov 4, 2021
6d2c1dc
2231 - backend for postprocessing (AsDiscrete, Activations Label2cont…
wyli Nov 4, 2021
856237e
[DLMED] fix cuCIM tests (#3266)
Nic-Ma Nov 5, 2021
7336b68
Unify unittests for WSIReader (#3261)
bhashemian Nov 6, 2021
4deb590
[DLMED] fix WSI reader test (#3279)
Nic-Ma Nov 6, 2021
6ab6a99
3253 Fix the spatial shape issue in NumpyReader and add channel dim (…
Nic-Ma Nov 6, 2021
8c0ff37
3276 - adds an option to skip renorm (#3277)
wyli Nov 8, 2021
c8e1184
3240 Support to plot 3D and RGB color image (#3250)
Nic-Ma Nov 8, 2021
f08b625
revise metrics and cumulative docstrings/APIs (#3280)
wyli Nov 8, 2021
5ad8104
adds copyright (#3290)
wyli Nov 9, 2021
8e8e1b3
3264 Enhance DynUNet structure (#3265)
yiheng-wang-nv Nov 9, 2021
35bb076
3233 Add CumulativeAverage metric (#3262)
Nic-Ma Nov 10, 2021
64a3db5
3288 Add support to partition Decathlon style datalist (#3291)
Nic-Ma Nov 10, 2021
f54b7af
2213 allows for non-invertible transforms in TTA (#3289)
wyli Nov 10, 2021
173a09c
add b-spline result to unit-test (#3302)
kate-sann5100 Nov 10, 2021
26b71a3
3292 Fix the issue that keys[0] may not exist when allow_missing_keys…
Nic-Ma Nov 10, 2021
97b485f
3306 Update document of DiceLoss (#3311)
Nic-Ma Nov 11, 2021
cfe64aa
Tifffile support in WSIReader (#3278)
bhashemian Nov 11, 2021
8076372
update the base image to 2110 (#3297)
wyli Nov 11, 2021
fb66ba0
fixes resampling niftisaver (#3308)
wyli Nov 11, 2021
cd7d990
Issue #3315 Pickling Error in DeepGrow (#3321)
architraj29 Nov 11, 2021
b3fdfbf
Contrastive Loss added, First Draft Done (#3286)
finalelement Nov 11, 2021
9837876
3251 Add dependency check in WSIReader (#3312)
Nic-Ma Nov 12, 2021
5c8f3bb
[DLMED] fix fc error (#3324)
Nic-Ma Nov 12, 2021
6f657a4
Add affine param to Affine transform (#3313) (#3318)
Spenhouet Nov 12, 2021
d35759a
3296 adds a flag for invertible on/off, and decouples transform stack…
wyli Nov 12, 2021
9ddc9e6
3313 Add `affine` arg to the dict transform (#3326)
Nic-Ma Nov 12, 2021
e148cfd
3284 torch version check (#3285)
wyli Nov 12, 2021
af21f11
3335 update clang-format download (#3340)
wyli Nov 15, 2021
8a454bd
fixes #3331 (#3334)
wyli Nov 15, 2021
4d83fc0
[DLMED] enhance metrics in workflow (#3341)
Nic-Ma Nov 15, 2021
9ec1d14
MIL component to extract patches (#3237)
myron Nov 15, 2021
45d4a61
MIL Component - MILModel (#3236)
myron Nov 16, 2021
4c2c1dc
3329 compatibility with pathlike obj (#3332)
wyli Nov 16, 2021
b7daf80
3292 Add support for no keys in all the transforms when allow_missing…
Nic-Ma Nov 16, 2021
0a7a4f1
[DLMED] refine doc (#3349)
Nic-Ma Nov 17, 2021
b86d751
fixes mednist dataset (#3348)
wyli Nov 17, 2021
33b6d61
close file (#3342)
wyli Nov 17, 2021
2e83cd2
3350 drops pytorch 1.5.x support (#3353)
wyli Nov 18, 2021
bf55246
3322 Optimize performance of the astype usage in arrays (#3338)
Nic-Ma Nov 18, 2021
6a20052
3346 Simplify AsDiscrete transform (#3352)
Nic-Ma Nov 18, 2021
c3fd5a9
Fix casting for tile step (#3355)
bhashemian Nov 18, 2021
f7e4cc3
remove dynunetv1 blocks (#3360)
wyli Nov 18, 2021
79bca25
3357 Add wrap_sequence to several transforms (#3358)
Nic-Ma Nov 19, 2021
d89807f
[DLMED] enhance doc-string (#3363)
Nic-Ma Nov 19, 2021
a4e7ba0
Update setup.cfg with tifffile and imagecodes (#3362)
bhashemian Nov 19, 2021
9048166
unit tests for step (#3361)
myron Nov 19, 2021
e36fbd3
backward compatible as discrete (#3367)
wyli Nov 19, 2021
b01c63e
Smooth field (#3252)
ericspod Nov 19, 2021
73d9afa
adds dints blocks (#3372)
dongyang0122 Nov 19, 2021
5e54d3e
Fixes typos in documentation (#3364)
wyli Nov 20, 2021
d0e72fb
[DLMED] add frame_dim (#3369)
Nic-Ma Nov 20, 2021
37930a9
3370 option of zip_longest to decollate (#3373)
wyli Nov 22, 2021
5adf30b
Numpy Implementation of SplitOnGrid (#3378)
bhashemian Nov 22, 2021
5d87b23
`TileOnGrid` support for `Tensor` input (#3384)
bhashemian Nov 23, 2021
0cfecbb
Fix SplitOnGrid issue (#3386)
bhashemian Nov 23, 2021
9cc339d
3387 fix threshold value issue in AsDiscrete (#3388)
Nic-Ma Nov 23, 2021
5f68a22
Adding repeats option to ThreadDataLoader (#3389)
ericspod Nov 23, 2021
839f7ef
fixes readme links (#3380)
wyli Nov 23, 2021
721f6f7
3387 Fix 0.0 or None value in AsDiscrete (#3393)
Nic-Ma Nov 24, 2021
8c90c59
add dints model (#3344)
dongyang0122 Nov 24, 2021
a640dde
3368 add `frame_dim` to TensorBoard plot utility (#3385)
Nic-Ma Nov 25, 2021
058bb40
3366 - whats new in 0.8 (#3383)
wyli Nov 25, 2021
d4c1bbe
update changelog for v0.8.0 (#3382)
wyli Nov 25, 2021
3915492
3365 update highlight 0.8 (#3381)
Nic-Ma Nov 25, 2021
dca8b1c
[DLMED] postpone remove version (#3399)
Nic-Ma Nov 25, 2021
d625b61
fixes typos/style in dints.py (#3395)
wyli Nov 25, 2021
714d00d
3404 fixes crop types (#3403)
wyli Nov 25, 2021
1763381
update weekly build prefix (#3406)
wyli Nov 26, 2021
4a3db69
3405 Enhance doc-string of MIL model for data shape (#3407)
Nic-Ma Nov 26, 2021
7d4386f
fixes docstring ref. (#3408)
wyli Nov 26, 2021
8a1454a
3398 Support 3D RGB image in matshow3d (#3400)
Nic-Ma Nov 26, 2021
12f74d3
3402 Add support to set other pickle related args (#3412)
Nic-Ma Nov 29, 2021
071264d
fixes pickle mod (#3416)
wyli Nov 30, 2021
ff9bbfa
[DLMED] add args and update default (#3418)
Nic-Ma Nov 30, 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
18 changes: 10 additions & 8 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: [self-hosted, linux, x64, common]
strategy:
matrix:
pytorch-version: [1.5.1, 1.6.0, 1.7.1, 1.8.1, latest]
pytorch-version: [1.6.0, 1.7.1, 1.8.1, 1.9.1, latest]
steps:
- uses: actions/checkout@v2
- name: Install the dependencies
Expand All @@ -25,14 +25,14 @@ jobs:
python -m pip uninstall -y torch torchvision
if [ ${{ matrix.pytorch-version }} == "latest" ]; then
python -m pip install torch torchvision
elif [ ${{ matrix.pytorch-version }} == "1.5.1" ]; then
python -m pip install torch==1.5.1 torchvision==0.6.1
elif [ ${{ matrix.pytorch-version }} == "1.6.0" ]; then
python -m pip install torch==1.6.0 torchvision==0.7.0
elif [ ${{ matrix.pytorch-version }} == "1.7.1" ]; then
python -m pip install torch==1.7.1 torchvision==0.8.2
elif [ ${{ matrix.pytorch-version }} == "1.8.1" ]; then
python -m pip install torch==1.8.1 torchvision==0.9.1
elif [ ${{ matrix.pytorch-version }} == "1.9.1" ]; then
python -m pip install torch==1.9.1 torchvision==0.10.1
fi
python -m pip install -r requirements-dev.txt
python -m pip list
Expand Down 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.10"] # 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.10"] # 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 @@ -173,7 +173,7 @@ jobs:
cron-docker:
if: github.repository == 'Project-MONAI/MONAI'
container:
image: localhost:5000/local_monai:dockerhub # use currently latest, locally available dockerhub image
image: docker://projectmonai/monai:latest # this might be slow and has the pull count limitations
options: "--gpus all"
runs-on: [self-hosted, linux, x64, common]
steps:
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
75 changes: 27 additions & 48 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@ on:
workflow_dispatch:

jobs:
versioning:
versioning_dev:
# compute versioning file from python setup.py
# upload as artifact
# (also used in release.yml)
if: github.repository == 'Project-MONAI/MONAI'
container:
image: localhost:5000/local_monai:latest
runs-on: [self-hosted, linux, x64, build_only]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# 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
with:
python-version: 3.8
- shell: bash
run: |
git describe
Expand All @@ -43,13 +44,11 @@ jobs:
ls -al
rm -rf {*,.[^.]*}

local_docker:
# builds two versions: local_monai:latest and local_monai:dockerhub
# latest: used for local tests
# dockerhub: release, no flake package
docker_build_dev:
# builds projectmonai/monai:latest
if: github.repository == 'Project-MONAI/MONAI'
needs: versioning
runs-on: [self-hosted, linux, x64, build_only]
needs: versioning_dev
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -58,67 +57,47 @@ jobs:
uses: actions/download-artifact@v2
with:
name: _version.py
- name: Install Latest Docker
run: |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install docker-ce
- name: docker_build
shell: bash
run: |
# get tag info for versioning
cat _version.py
mv _version.py monai/
# build and run original docker image for local registry
docker build -t localhost:5000/local_monai:latest -f Dockerfile .
docker push localhost:5000/local_monai:latest
# build once more w/ tag "latest": remove flake package as it is not needed on hub.docker.com

# build "latest": remove flake package as it is not needed on hub.docker.com
sed -i '/flake/d' requirements-dev.txt
docker build -t projectmonai/monai:latest -f Dockerfile .
# also push as tag "dockerhub" to local registry
docker image tag projectmonai/monai:latest localhost:5000/local_monai:dockerhub
docker push localhost:5000/local_monai:dockerhub

# distribute as always w/ tag "latest" to hub.docker.com
echo "${{ secrets.DOCKER_PW }}" | docker login -u projectmonai --password-stdin

docker push projectmonai/monai:latest
docker logout
docker image prune -f

docker_test_latest:
if: github.repository == 'Project-MONAI/MONAI'
needs: local_docker
container:
image: localhost:5000/local_monai:latest
runs-on: [self-hosted, linux, x64, common]
steps:
- name: Import
run: |
export CUDA_VISIBLE_DEVICES=$(python -m tests.utils)
echo $CUDA_VISIBLE_DEVICES
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 &
python -c 'import monai; monai.config.print_config()'
cd /opt/monai
ls -al
ngc --version
python -m tests.min_tests
if pgrep python; then pkill python; fi
env:
QUICKTEST: True

docker_test_dockerhub:
if: github.repository == 'Project-MONAI/MONAI'
needs: local_docker
needs: docker_build_dev
container:
image: localhost:5000/local_monai:dockerhub
runs-on: [self-hosted, linux, x64, common]
image: docker://projectmonai/monai:latest
options: "--shm-size=4g --ipc=host"
runs-on: ubuntu-latest
steps:
- name: Import
run: |
export CUDA_VISIBLE_DEVICES=$(python -m tests.utils)
echo $CUDA_VISIBLE_DEVICES
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 &
python -c 'import monai; monai.config.print_config()'
python -c 'import monai; monai.config.print_debug_info()'
cd /opt/monai
ls -al
ngc --version
python -m tests.min_tests
if pgrep python; then pkill python; fi
./runtests.sh --min
shell: bash
env:
QUICKTEST: True
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.10.0+cu111 torchvision==0.11.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
26 changes: 14 additions & 12 deletions .github/workflows/pythonapp-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,13 @@ jobs:
strategy:
matrix:
environment:
- "PT16+CUDA110"
- "PT17+CUDA102"
- "PT17+CUDA110"
- "PT18+CUDA102"
- "PT18+CUDA110"
- "PT19+CUDA114"
- "PT19+CUDA102"
- "PT110+CUDA102"
include:
- environment: PT16+CUDA110
# we explicitly set pytorch to -h to avoid pip install error
pytorch: "-h"
base: "nvcr.io/nvidia/pytorch:20.07-py3"
- environment: PT17+CUDA102
pytorch: "torch==1.7.1 torchvision==0.8.2"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
Expand All @@ -40,14 +36,18 @@ jobs:
- environment: PT18+CUDA102
pytorch: "torch==1.8.1 torchvision==0.9.1"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
- environment: PT18+CUDA110
# we explicitly set pytorch to -h to avoid pip install error
pytorch: "-h"
base: "nvcr.io/nvidia/pytorch:21.02-py3"
- 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.10: 1.10.0a0+0aef44c
pytorch: "-h"
base: "nvcr.io/nvidia/pytorch:21.08-py3"
- environment: PT19+CUDA102
pytorch: "torch==1.9.0 torchvision==0.10.0"
base: "nvcr.io/nvidia/pytorch:21.10-py3"
- environment: PT110+CUDA102
pytorch: "torch==1.10.0 torchvision==0.11.1"
base: "nvcr.io/nvidia/cuda:10.2-devel-ubuntu18.04"
container:
image: ${{ matrix.base }}
Expand All @@ -59,7 +59,7 @@ jobs:
run: |
if [ ${{ matrix.environment }} = "PT17+CUDA102" ] || \
[ ${{ matrix.environment }} = "PT18+CUDA102" ] || \
[ ${{ matrix.environment }} = "PT19+CUDA102" ]
[ ${{ matrix.environment }} = "PT110+CUDA102" ]
then
PYVER=3.6 PYSFX=3 DISTUTILS=python3-distutils && \
apt-get update && apt-get install -y --no-install-recommends \
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 All @@ -121,7 +123,7 @@ jobs:
python -c "import monai; monai.config.print_config()"
# build for the current self-hosted CI Tesla V100
BUILD_MONAI=1 TORCH_CUDA_ARCH_LIST="7.0" ./runtests.sh --quick --unittests
if [ ${{ matrix.environment }} = "PT19+CUDA102" ]; then
if [ ${{ matrix.environment }} = "PT110+CUDA102" ]; then
# test the clang-format tool downloading once
coverage run -m tests.clang_format_utils
fi
Expand Down
Loading