Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
363 commits
Select commit Hold shift + click to select a range
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
fc9abb9
3392 enhance reduction doc-string for Nan values (#3424)
Nic-Ma Dec 1, 2021
0b077da
Passing the activation function of the SegResNet to the Residual Bloc…
patricio-astudillo Dec 1, 2021
f94e768
3194 update vitautoenc for 2d (#3420)
wyli Dec 1, 2021
ad0f866
3415 Update WSIReader (#3417)
bhashemian Dec 2, 2021
035f91c
update create_file_basename (#3436)
wyli Dec 2, 2021
f6a0c87
Update TiffFile backend in WSIReader (#3438)
bhashemian Dec 2, 2021
0935d5a
3429 Enhance the scalar write logic of TensorBoardStatsHandler (#3431)
Nic-Ma Dec 3, 2021
f3e7cc0
3430 support dataframes and streams in CSVDataset (#3440)
Nic-Ma Dec 6, 2021
8a47227
Add base class for workflows (#3445)
Nic-Ma Dec 7, 2021
a17813b
Enhance deprecated arg for kwargs in CSV datasets (#3446)
Nic-Ma Dec 7, 2021
98c1c43
3293 Remove extra deep supervision modules of DynUNet (#3427)
yiheng-wang-nv Dec 7, 2021
29e9ab3
471- fixes deprecated args (#3447)
wyli Dec 7, 2021
a7bc4a3
improve error message if reader nott available (#3457)
rijobro Dec 8, 2021
d2543ad
adds the missing imports (#3462)
wyli Dec 9, 2021
82576e7
revise MILModel docstring (#3459)
wyli Dec 9, 2021
4b5ad0b
deprecate reduction (#3464)
wyli Dec 9, 2021
5b36d02
3444 Add DatasetFunc (#3456)
Nic-Ma Dec 10, 2021
89f0bd4
Add missing components to API doc (#3468)
Nic-Ma Dec 10, 2021
d386213
3466 3467 Add `channel_wise` and correct doc-string (#3469)
Nic-Ma Dec 12, 2021
a4c1300
[DLMED] remove cls (#3475)
Nic-Ma Dec 13, 2021
360c52f
Add Iteration base class (#3472)
Nic-Ma Dec 13, 2021
cb70e13
fix link error (#3488)
yiheng-wang-nv Dec 14, 2021
9ef0070
3465 Support string as dtype (#3478)
Nic-Ma Dec 14, 2021
7a66f18
[DLMED] update to 0.4.7 (#3483)
Nic-Ma Dec 14, 2021
f6648a3
Improve NVTX Range Naming (#3484)
bhashemian Dec 14, 2021
9927691
3471 3491 Add example images for intensity transforms (#3494)
Nic-Ma Dec 15, 2021
88d91d6
Make bending energy loss invariant to resolution (#3493)
ebrahimebrahim Dec 15, 2021
3761ee0
Removes redundant casting -- ensure tuple (#3495)
wyli Dec 16, 2021
a255648
3498 Correct `kwargs` arg for `convert_to_torchscript` (#3499)
Nic-Ma Dec 16, 2021
531c276
update tests with 1.10.1 (#3500)
wyli Dec 17, 2021
d663d78
3501 Add dict version SavitzkyGolaySmoothd (#3502)
Nic-Ma Dec 17, 2021
d2861a2
remove file (#3507)
wyli Dec 20, 2021
29779d1
avoid 60.0.0 (#3514)
wyli Dec 20, 2021
c9d38f0
[DLMED] add 6 new transform images (#3512)
Nic-Ma Dec 20, 2021
1d3a9d7
support of reversed indexing (#3508)
wyli Dec 20, 2021
9734478
Adding Torchscript utility functions (#3138)
ericspod Dec 21, 2021
8e2ade5
3517 Refine AddCoordinateChannels transform (#3524)
Nic-Ma Dec 21, 2021
1516ca7
3521 Copyright header update (#3522)
wyli Dec 21, 2021
299a0d1
3521 - adds a util to check the licence info (#3523)
wyli Dec 21, 2021
58ded72
3350 Remove PyTorch 1.5.x related logic and mark versions for all new…
Nic-Ma Dec 21, 2021
08f9bac
3533 Update PyTorch docker to 21.12 (#3534)
Nic-Ma Dec 22, 2021
9caa1d0
3531 Add args to subclass of CacheDataset (#3532)
Nic-Ma Dec 22, 2021
6767959
3525 Fix invertible issue in OneOf compose (#3530)
Nic-Ma Dec 22, 2021
e655b4e
3535 - drop python 36 support (#3536)
wyli Dec 23, 2021
21c5f6d
3541 has cupy check (#3544)
wyli Dec 24, 2021
7f23f38
3053 release *_dist.py tests memory to avoid OOM (#3537)
wyli Dec 24, 2021
29bc93b
3539 Remove decollate warning (#3545)
Nic-Ma Dec 24, 2021
df75199
[DLMED] enhance set_determinism (#3547)
Nic-Ma Dec 24, 2021
2e492a9
Smooth Deform (#3551)
ericspod Dec 30, 2021
05f8219
3552 - runtest.sh defaults to no build/install (#3555)
wyli Dec 30, 2021
c8e7fe1
Remove apply_same_field (#3556)
ericspod Dec 30, 2021
885d5b9
skipping pretraining network loading when downloading is unsuccessful…
wyli Dec 31, 2021
ba23afd
[DLMED] fix mypy errors (#3562)
Nic-Ma Jan 1, 2022
adca1bb
3559 Enhance `DatasetSummary` for several points (#3560)
Nic-Ma Jan 1, 2022
9417ff2
[pre-commit.ci] pre-commit suggestions (#3568)
pre-commit-ci[bot] Jan 4, 2022
a7835ab
3565 - adds metadata when loading dicom series (#3566)
wyli Jan 4, 2022
bb4ad5f
3580 - create codeql-analysis.yml (#3579)
wyli Jan 5, 2022
4bd13fe
498 Add logger_handler to LrScheduleHandler (#3570)
Nic-Ma Jan 5, 2022
cdcd524
update issue template for questions (#3597)
wyli Jan 6, 2022
91777d0
3581 Enhance `slice_channels` utility function (#3585)
Nic-Ma Jan 7, 2022
1913086
3600 Apply unused `kwargs` for 3rd party APIs in WSIReader (#3601)
Nic-Ma Jan 7, 2022
a93b8cc
conda environment yaml file (#3584)
rijobro Jan 7, 2022
3269851
3610 Add ascontiguous utility and check in CacheDataset (#3614)
Nic-Ma Jan 9, 2022
e163992
3609 - conda environment-dev.yml test (#3612)
wyli Jan 9, 2022
a0d2558
3616 test downloading issues (#3617)
wyli Jan 9, 2022
24404f4
[DLMED] fix dtype issue (#3625)
Nic-Ma Jan 10, 2022
3c6ee69
3628 0-d array to_contiguous (#3629)
wyli Jan 10, 2022
2fef7ff
3624 Add kwargs to torch APIs of utilities (#3631)
Nic-Ma Jan 10, 2022
83f8b06
capture windows permission error (#3633)
wyli Jan 11, 2022
be1c362
3632 Enhance GridPatchDataset for iterable API and data source (#3636)
Nic-Ma Jan 11, 2022
523a047
[DLMED] add missing doc-string (#3646)
Nic-Ma Jan 12, 2022
12955c5
3621 update get_rank calls (#3641)
wyli Jan 12, 2022
d58e234
update meshgrid (#3644)
wyli Jan 12, 2022
35c2b37
`EnsureChannelFirst`: avoid re-creation of `AddChannel` (#3649)
rijobro Jan 12, 2022
cd177c0
3578 Support single channel with OneHot format in KeepLargestConnecte…
Nic-Ma Jan 13, 2022
459b081
moveaxis and typing enhancements (#3648)
wyli Jan 13, 2022
f089659
3648 Enhance correct centers for crop (#3652)
Nic-Ma Jan 13, 2022
3a26702
option to occlude all channels simultaneously (#3543)
rijobro Jan 13, 2022
ceb71ab
removes duplicated docstring rendering (#3651)
wyli Jan 13, 2022
b9ef673
black with pip (#3653)
rijobro Jan 13, 2022
4ffe588
lint tests (#3656)
rijobro Jan 13, 2022
6092b4d
pytype working for macOS (#3657)
rijobro Jan 13, 2022
d646120
Delete testdata.nrrd (#3658)
wyli Jan 13, 2022
a8ff27c
3654 remove some flake8 errors ignore (#3659)
wyli Jan 14, 2022
a644b40
3661 Add default values to CopyItems transform (#3662)
Nic-Ma Jan 14, 2022
40257f5
[DLMED] add label transform (#3666)
Nic-Ma Jan 14, 2022
e0db5a5
install from/with conda (#3667)
rijobro Jan 14, 2022
b2cc166
DictPostFixes (#3671)
rijobro Jan 18, 2022
c327cfa
[DLMED] change to warning (#3675)
Nic-Ma Jan 18, 2022
c2b6459
3595 - adds a folder layout class (#3655)
wyli Jan 18, 2022
b4f8ff1
3672 Add more messages for AUC warning (#3676)
Nic-Ma Jan 19, 2022
2500edd
3670 Fix channel_dim in ITKReader and add in it NibabelReader (#3678)
Nic-Ma Jan 19, 2022
ab14b8b
Update make_nifti (#3682)
rijobro Jan 19, 2022
50c201c
support stack of images with channels (#3680)
wyli Jan 20, 2022
e96dcca
3686 Skip workflow run if data is empty or the specified epoch_length…
Nic-Ma Jan 21, 2022
25ecc28
remove tensor-array conversion in `Orientation` (#3687)
wyli Jan 21, 2022
24b1a8f
3695 Update CI to ignite 0.4.8 (#3696)
Nic-Ma Jan 21, 2022
32a045d
adds a dev mode collate for diagnostic info (#3684)
wyli Jan 21, 2022
3907cb4
add benchmarking warp against python itk (#3692)
kate-sann5100 Jan 24, 2022
6bb97bf
Fix differentiability of generalized Dice loss (#3619)
josafatburmeister Jan 24, 2022
c2018cf
compiler warnings (#3698)
wyli Jan 24, 2022
3180c27
try to fix #3621 (#3673)
wyli Jan 25, 2022
d36b835
3710 Add support to set delimiter for CSV files and change default to…
Nic-Ma Jan 25, 2022
927483b
[DLMED] fix mode issue (#3715)
Nic-Ma Jan 26, 2022
0996aab
fixes `grid_sample`, `interpolate` URLs (#3712)
wyli Jan 26, 2022
8227cae
3716 enhance doc-strings of DenseNet (#3717)
yiheng-wang-nv Jan 27, 2022
4aa3596
pip mypy (#3722)
rijobro Jan 27, 2022
b1a96c5
update bbox docstring (#3724)
wyli Jan 27, 2022
db61a08
3725 fixes download test (#3728)
wyli Jan 28, 2022
f08f1d3
Remove assert statement from non-test files (#3745)
deepsource-autofix[bot] Jan 30, 2022
ba9cd45
3750 skip setuptool 60.6 (#3751)
wyli Jan 31, 2022
19d5d8d
Update installation.md (#3758)
rijobro Feb 1, 2022
e0643ab
3753 Update PyTorch base docker to 22.01 (#3754)
Nic-Ma Feb 1, 2022
ec5c9d5
3620 intensity range percentiles (#3685)
wyli Feb 1, 2022
6f16823
3734 Enhance `CacheDataset` to avoid duplicated cache (#3739)
Nic-Ma Feb 1, 2022
397d511
3732 Update TTA module based on latest features (#3733)
Nic-Ma Feb 1, 2022
6c75550
3747 Enhance errors and docs according to Youtube feedback (#3759)
Nic-Ma Feb 3, 2022
5cce0af
3697 add spatial resample (#3701)
wyli Feb 3, 2022
c12a54a
Fix the TTA issue related to PadListCollate logic (#3762)
Nic-Ma Feb 4, 2022
d050ea5
Update offset assign (#3764)
wyli Feb 4, 2022
816f413
2823 enhance convert_data/dst_type typing (#3749)
wyli Feb 4, 2022
62b3f6e
3765 Enhance `create_multigpu_supervised_XXX` for distributed (#3768)
Nic-Ma Feb 4, 2022
b61db79
3763 Enhance the doc of `ThreadDataLoader` for `num_workers` (#3770)
Nic-Ma Feb 6, 2022
fa066fb
update blossom config (#3771)
wyli Feb 7, 2022
afcf593
3595 3766 adds a base writer and an itk writer (#3674)
wyli Feb 7, 2022
3c96cb8
revert workaround (#3778)
wyli Feb 8, 2022
a4a6c95
3769 Enhance logger logic of StatsHandler and DataStats (#3774)
Nic-Ma Feb 8, 2022
4d0baa0
3595 Adds nibabel/pil writers (#3772)
wyli Feb 8, 2022
7c9fefb
3744 Add `save_state` utility to handle saving logic (#3780)
Nic-Ma Feb 9, 2022
0be3341
3432 make vit support torchscript (#3782)
yiheng-wang-nv Feb 10, 2022
127e823
2620 3595 Writer backend selector, deprecating nifti_saver/writer, pn…
wyli Feb 10, 2022
e3a9730
[DLMED] add default value (#3785)
Nic-Ma Feb 11, 2022
e2fcb97
Add GPU-enabled function "get_largest_connected_component_mask" (#3677)
dongyang0122 Feb 11, 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
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/question.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
name: Question
about: Question relating to MONAI
title: ''
name: Question (please use the Discussion tab)
about: https://github.com/Project-MONAI/MONAI/discussions
title: 'Please use MONAI Discussion tab for questions'
labels: ''
assignees: ''
---
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ A few sentences describing the changes proposed in this pull request.
- [ ] Breaking change (fix or new feature that would cause existing functionality to change).
- [ ] New tests added to cover the changes.
- [ ] Integration tests passed locally by running `./runtests.sh -f -u --net --coverage`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests`.
- [ ] Quick tests passed locally by running `./runtests.sh --quick --unittests --disttests`.
- [ ] In-line docstrings updated.
- [ ] Documentation updated, tested `make html` command in the `docs/` folder.
2 changes: 1 addition & 1 deletion .github/workflows/blossom-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

# This job only runs for pull request comments
if: |
contains( 'madil90,Nic-Ma,wyli,', format('{0},', github.actor)) &&
contains( 'Nic-Ma,wyli,', format('{0},', github.actor)) &&
github.event.comment.body == '/build'
steps:
- name: Check if comment is issued by authorized person
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"

on:
push:
branches: [ dev, main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ dev ]
schedule:
- cron: '18 1 * * 0'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ 'cpp', 'python' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
# Learn more about CodeQL language support at https://git.io/codeql-language-support

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# 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

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

- name: Build
run: |
python -m pip install -r requirements-dev.txt
BUILD_MONAI=1 ./runtests.sh --build

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
57 changes: 57 additions & 0 deletions .github/workflows/conda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: conda

on:
schedule:
- cron: "0 3 * * *" # at 03: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: conda-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
cron-conda:
if: github.repository == 'Project-MONAI/MONAI'
strategy:
fail-fast: false
matrix:
os: [windows-latest, macOS-latest, ubuntu-latest]
python-version: ["3.7"]
runs-on: ${{ matrix.os }}
env:
QUICKTEST: True
steps:
- if: runner.os == 'windows'
name: Config pagefile (Windows only)
uses: al-cheb/configure-pagefile-action@v1.2
with:
minimum-size: 8
maximum-size: 16
disk-root: "D:"
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install env (CPU ${{ runner.os }})
shell: bash -l {0}
run: |
conda info
conda list
conda env create --file environment-dev.yml
- if: runner.os == 'windows'
name: Windows only install
shell: bash -l {0}
run: |
conda activate monai
# this `cpuonly` and -c conda-forge is needed to reduce the paging file size on a github instance
conda install pytorch torchvision torchaudio cpuonly -c pytorch -c conda-forge
conda deactivate
- name: Test env(CPU ${{ runner.os }})
shell: bash -l {0}
run: |
conda activate monai
$(pwd)/runtests.sh --build --unittests
conda deactivate
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 --build --clean
# run tests
python -m tests.ngc_mmar_loading
32 changes: 17 additions & 15 deletions .github/workflows/cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
cron-gpu:
if: github.repository == 'Project-MONAI/MONAI'
container:
image: nvcr.io/nvidia/pytorch:20.03-py3 # CUDA 10.2
image: nvcr.io/nvidia/pytorch:21.06-py3 # CUDA 11.3
options: "--gpus all"
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 All @@ -48,8 +48,8 @@ jobs:
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 torch; print(torch.__version__); print('{} of GPUs available'.format(torch.cuda.device_count()))"
python -c 'import torch; print(torch.rand(5, 3, device=torch.device("cuda:0")))'
BUILD_MONAI=1 ./runtests.sh --coverage --unittests # unit tests with coverage report
BUILD_MONAI=1 ./runtests.sh --coverage --net # integration tests with coverage report
BUILD_MONAI=1 ./runtests.sh --build --coverage --unittests --disttests # unit tests with coverage report
BUILD_MONAI=1 ./runtests.sh --build --coverage --net # integration tests with coverage report
coverage xml
if pgrep python; then pkill python; fi
- name: Upload coverage
Expand All @@ -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:22.01"] # 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 @@ -91,8 +91,8 @@ jobs:
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 torch; print(torch.__version__); print('{} of GPUs available'.format(torch.cuda.device_count()))"
python -c 'import torch; print(torch.rand(5, 3, device=torch.device("cuda:0")))'
BUILD_MONAI=1 ./runtests.sh --coverage --unittests # unit tests with coverage report
BUILD_MONAI=1 ./runtests.sh --coverage --net # integration tests with coverage report
BUILD_MONAI=1 ./runtests.sh --build --coverage --unittests --disttests # unit tests with coverage report
BUILD_MONAI=1 ./runtests.sh --build --coverage --net # integration tests with coverage report
coverage xml
if pgrep python; then pkill python; fi
- name: Upload coverage
Expand All @@ -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:22.01"] # 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 All @@ -190,8 +190,8 @@ jobs:
python -c "import torch; print(torch.__version__); print('{} of GPUs available'.format(torch.cuda.device_count()))"
python -c 'import torch; print(torch.rand(5,3, device=torch.device("cuda:0")))'
ngc --version
BUILD_MONAI=1 ./runtests.sh --coverage --pytype --unittests # unit tests with pytype checks, coverage report
BUILD_MONAI=1 ./runtests.sh --coverage --net # integration tests with coverage report
BUILD_MONAI=1 ./runtests.sh --build --coverage --pytype --unittests --disttests # unit tests with pytype checks, coverage report
BUILD_MONAI=1 ./runtests.sh --build --coverage --net # integration tests with coverage report
coverage xml
if pgrep python; then pkill python; fi
- name: Upload coverage
Expand All @@ -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
Loading