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 #180

Merged
merged 459 commits into from
Jul 22, 2021
Merged

merge master #180

merged 459 commits into from
Jul 22, 2021

Conversation

Nic-Ma
Copy link
Owner

@Nic-Ma Nic-Ma commented Jul 22, 2021

Fixes # .

Description

A few sentences describing the changes proposed in this pull request.

Status

Ready/Work in progress/Hold

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • 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 --codeformat --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Nic-Ma and others added 30 commits April 27, 2021 02:00
* [DLMED] add logging

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] fix classification issue

Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] add detach for Tensor

Signed-off-by: Nic Ma <nma@nvidia.com>

* fixes test

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

Co-authored-by: Wenqi Li <wenqil@nvidia.com>
* adding error messaging for unsupported tensor shapes

Signed-off-by: chaliebudd <charles.budd@kcl.ac.uk>

* [MONAI] python code formatting

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
* [DLMED] Enhance unit test and doc-string

Signed-off-by: Nic Ma <nma@nvidia.com>

* [MONAI] python code formatting

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

* [DLMED] enhance unit test

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix CI test issue

Signed-off-by: Nic Ma <nma@nvidia.com>

Co-authored-by: monai-bot <monai.miccai2019@gmail.com>
* [DLMED] fix shallow copy issue

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add patch_index to RandWeightedCrop

Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* update readme

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update index

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* relative links

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
* Added RicianNoise transform

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>

* Use ensure_tuple_rep in channel-wise RandRicianNoise transform

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>

* Added RandRicianNoised transform

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>

* Autofixed coding style errors

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>

* Added paper reference for RandRicianNoise in docstring

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>

* Added unit test for RandRicianNoise transform

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>

* Added unit test for RandRicianNoised transform

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>

* Fixed mypy typing issues

Signed-off-by: Lyndon Boone <lyndonboone8@gmail.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Jeff VanOss <vanossj@gmail.com>
* update compose

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* adds tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* temp tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* temp tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* torch

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* Revert "temp tests"

This reverts commit 6a2e7a2.

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* Revert "temp tests"

This reverts commit 9fc84df.

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

Co-authored-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
* create meta data key if necessary

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* add orientationd too

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
* update build option

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* temp test

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* Revert "temp test"

This reverts commit f22cdeb.

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: masadcv <muhammad.asad@kcl.ac.uk>
* fixes subprocess transforms

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* add SelectItemsd alias

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* Temporarily changing crf test to allow some errors

Signed-off-by: chaliebudd <charles.budd@kcl.ac.uk>

* changing to unittest assert

Signed-off-by: chaliebudd <charles.budd@kcl.ac.uk>

Co-authored-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* Implement ToCupy

Signed-off-by: Behrooz <3968947+behxyz@users.noreply.github.com>

* Add unittests for ToCupy and ToCupyd

Signed-off-by: Behrooz <3968947+behxyz@users.noreply.github.com>

* Add docs

Signed-off-by: Behrooz <3968947+behxyz@users.noreply.github.com>

* Reformat

Signed-off-by: Behrooz <3968947+behxyz@users.noreply.github.com>

* Add CuPy to NumPy

Signed-off-by: Behrooz <3968947+behxyz@users.noreply.github.com>

* Add unittests for ToNumpy and ToNumpyd for CuPy input

Signed-off-by: Behrooz <3968947+behxyz@users.noreply.github.com>

* Add has_cp

Signed-off-by: Behrooz <3968947+behxyz@users.noreply.github.com>
* Transposed

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* convert numpy array to list

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
* skip most recent pytype

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* avoid pytype 2021.05.04

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* pytype<2021

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* old attrs

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
* skip RandAffine if possible

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* add randaffined

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* mypy fix

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>

* check consistency

Signed-off-by: Richard Brown <33289025+rijobro@users.noreply.github.com>
* [DLMED] use shutil.move instead

Signed-off-by: Nic Ma <nma@nvidia.com>

* [MONAI] python code formatting

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

Co-authored-by: monai-bot <monai.miccai2019@gmail.com>
Co-authored-by: Wenqi Li <wenqil@nvidia.com>
This reverts commit 9c62769.

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* [DLMED] add notnans to summary

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix bug in the dist test

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] enhance the percent

Signed-off-by: Nic Ma <nma@nvidia.com>

* [MONAI] python code formatting

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

* [DLMED] update tests

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>

Co-authored-by: monai-bot <monai.miccai2019@gmail.com>
fix cachedataset w persistent workers problem by deep copying first non-deterministic transform
Nic-Ma and others added 29 commits July 8, 2021 05:03
* [DLMED] fix ToNumpy

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix flake8

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] enhance for scalar tensor

Signed-off-by: Nic Ma <nma@nvidia.com>

* [MONAI] python code formatting

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

* [DLMED] remove redundant logic

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add doc-string for img

Signed-off-by: Nic Ma <nma@nvidia.com>

Co-authored-by: monai-bot <monai.miccai2019@gmail.com>
* [DLMED] fix tests for PyTorch 1.5

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] simplify the tests

Signed-off-by: Nic Ma <nma@nvidia.com>
* update lmdbdataset

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* docstring and less verbose progressbar

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* docstring

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* adds a release note for 0.6.0

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Mohammad Adil <madil@nvidia.com>
* adds whats new 0.6

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update docs

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* add a list

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update according to comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes typos

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* Revert "update lmdbdataset (#2531)"

This reverts commit a980ae4.

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* update weekly dev version

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
* add WarmupCosineSchedule,unetr docstring

Signed-off-by: ahatamizadeh <ahatamizadeh@nvidia.com>

* add WarmupCosineSchedule,enhance unetr docstring

Signed-off-by: ahatamizadeh <ahatamizadeh@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* [DLMED] add separate_folder

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] enhance decollate arg of workflows

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] add wiki link

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix typo

Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] add map_classes_to_indices

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add tests for empty classes

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add all the transforms

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix typo

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add tests for ClassesToIndices transforms

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add unit tests and documents

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix flake8 and add inverse tests

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] optimize random choice

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add check for num_samples

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add default value to ratios

Signed-off-by: Nic Ma <nma@nvidia.com>
* update lmdbdataset (#2531)

* update lmdbdataset

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* docstring and less verbose progressbar

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* docstring

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes lmdb integration tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* add docstring

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
* [DLMED] add DecollateBatch handler

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] add unit tests

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] enhance doc-string

Signed-off-by: Nic Ma <nma@nvidia.com>

* [MONAI] python code formatting

Signed-off-by: monai-bot <monai.miccai2019@gmail.com>

* [DLMED] skip in min tests

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix flake8

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] remove rep_scalar option

Signed-off-by: Nic Ma <nma@nvidia.com>

Co-authored-by: monai-bot <monai.miccai2019@gmail.com>
* [DLMED] enhance pad method

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] add set_to_none arg

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update according to comments

Signed-off-by: Nic Ma <nma@nvidia.com>
* add UNETR to 'what's new in 0.6.0' page

Signed-off-by: ahatamizadeh <ahatamizadeh@nvidia.com>

* add UNETR to 'what's new in 0.6.0' page

Signed-off-by: ahatamizadeh <ahatamizadeh@nvidia.com>
…alLoss (#2614)

* [DLMED] enhance doc

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] fix typp

Signed-off-by: Nic Ma <nma@nvidia.com>
* [DLMED] add get_loss_details

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] enhance the doc-string

Signed-off-by: Nic Ma <nma@nvidia.com>

* [DLMED] update DiceCELoss to provide API to compute CE

Signed-off-by: Nic Ma <nma@nvidia.com>
* fix synthetic bugs

Signed-off-by: Yiheng Wang <vennw@nvidia.com>

* add unittest

Signed-off-by: Yiheng Wang <vennw@nvidia.com>

* add prameter keys

Signed-off-by: Yiheng Wang <vennw@nvidia.com>

* add parameter keys

Signed-off-by: Yiheng Wang <vennw@nvidia.com>
* adds look_up_options

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds docstring example

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update enum look ups

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes typos

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
* fixes itk reader

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds consistency tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* multichannel RW support

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes integration

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* revert answer

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes integration

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* revert unused changes

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* formatting

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* resume tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* fixes semaphore leak

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update spatial rank get

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* adds integration tests

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* update based on comments

Signed-off-by: Wenqi Li <wenqil@nvidia.com>

* workaround semaphore leak

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
@Nic-Ma Nic-Ma merged commit 6f87afd into Nic-Ma:main Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.