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

[WIP] 141 add dicom loader #200

Closed

Conversation

mhubii
Copy link
Contributor

@mhubii mhubii commented Mar 23, 2020

Adds a DICOM laoder to #141

Description

  • merges master into 135-add-DICOM-loader branch
  • Adds transforms.LoadDICOM, composables.LoadDICOMd based on design choices in add a DICOM loader #135 (comment)
  • Adds DICOM handling utilities to utils.medical_image_converter
  • Adds test cases test_load_dicom.py and test_load_dicomd.py

Status

Documentation to be added

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or new feature that would cause existing functionality to change)
  • New tests added to cover the changes
  • Docstrings/Documentation updated

madil90 and others added 30 commits March 4, 2020 20:07
* Add Resize transform (spatial scaling).

* Adding tests.
* [DLMED] add UNet example with dict based transforms
* [DLMED] temporarily remove constants, will discuss after GTC
* [DLMED] adjust default behavior according to comments
* Adding zoom transform and tests.

* Fix import error.
* affine transforms
* randomised affine and elastic deformation
* add unit tests
* add a 2D notebook demo
* add speed demo
* [DLMED] add LoadNifti transform and common Dataset

* [DLMED] update according to comments

* [DLMED] fix typo

* [DLMED] update example to use latest API

* [DLMED] update code to add more features

* [DLMED] update to AsChannelFirst

* [DLMED] update to use np.moveaxis API instead

* [DLMED] update according to comments

* update generalized dice to be consistent with the changes in dice loss

Co-authored-by: Wenqi Li <wenqil@nvidia.com>
Co-authored-by: Kevin Lu <kevlu@nvidia.com>
Co-authored-by: Wenqi Li <wenqil@nvidia.com>
* [DLMED] add 3D classification inference examples

* [DLMED] change UNet to 1 output

* [DLMED] add 3D classification inference examples

* [DLMED] update and clear all the examples

also added unit tests for ClassificationSaver and Resized

* [DLMED] fix transforms spatial axis issue and update unit tests

* update demos:

        - unet: num_classes -> out_channels (signature consistency)
        - segmentation demo changed to binary ground truth
        - changed segmentation training dict to have validation every n iterations
        - segmentation demo image sizes to 128, window size to 96, lr 1e-3 (good results)
        - attach classification saver finalize() to Events.COMPLETE

* [DLMED] fix tag_name bug, fix DenseNet3D bug, add comments

Co-authored-by: root <root@apt-sh-ai.nvidia.com>
Co-authored-by: Wenqi Li <wenqil@nvidia.com>
* [DLMED] add DeleteKeys transform

* [DLMED] remove unnecessary copy
* [DLMED] add highlight features to README

* [DLMED] add temp images path to highlight features

* documentation updates

        - update readmet
        - update docs/ structure
        - merged highlights.md
        - update docs/Makefile commands

* [DLMED] update end-to-end process chart

* revise docstring for transforms/losses

* update docs

* update readthedocs

* 179 add DeleteKeys transform (Project-MONAI#180)

* [DLMED] add DeleteKeys transform

* [DLMED] remove unnecessary copy

* update docs

* fixes github urls

* fixes sys.getsizeof test on mac

Co-authored-by: Nic Ma <nma@nvidia.com>
)

* [DLMED] add ScaleIntensityRanged and NormalizeIntensityd transforms

* [DLMED] add pytorch example based on MSD spleen dataset

* update docs for new transforms, revise typos/styles

* [DLMED] add train notebook

* [DLMED] update notebook with determinism

* [DLMED] add image_threshold

Co-authored-by: Wenqi Li <wenqil@nvidia.com>
mhubii and others added 15 commits March 19, 2020 21:30
* added setuptools support updated README
* removed relative paths
* changed form exchanged raw install by pip install with folder flag
* init. docker

* fixes urls

* update readme
* [DLMED] add determinism integration test and fix bugs

* [DLMED] add determinism support to highlights

* [DLMED] add transforms to the test

* [DLMED] update to RandUniformPatch

* fixes typos

* fixes empty indicies issue in balanced sampling

Co-authored-by: Wenqi Li <wenqil@nvidia.com>
@@ -34,6 +35,38 @@ def contain_dicom(path):
return False


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your update here.
Actually, I think you can treat this converter tool as a temporary reference code and move all the data converter logic into other transforms(or new transforms) after "LoadDICOM".
When all logic is ready in transforms, we can delete this tool and users can use transforms to load DICOM directly.
Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @mhubii ,

Do you want to merge this PR first to my previous DICOM PR first and work on that PR directly?
Thanks.

@wyli
Copy link
Contributor

wyli commented Aug 19, 2020

this is out of date, please see #856

@wyli wyli closed this Aug 19, 2020
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.

5 participants