Skip to content

semantic updates for Auto3dseg #1288

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

Merged
merged 11 commits into from
Apr 13, 2023
Merged

semantic updates for Auto3dseg #1288

merged 11 commits into from
Apr 13, 2023

Conversation

myron
Copy link
Contributor

@myron myron commented Apr 6, 2023

algo_dict key updates
this should be merged after updates in Project-MONAI/MONAI#6310

fixes #1306

myron added 2 commits April 5, 2023 17:57
Signed-off-by: myron <amyronenko@nvidia.com>
Signed-off-by: myron <amyronenko@nvidia.com>
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

wyli pushed a commit to Project-MONAI/MONAI that referenced this pull request Apr 6, 2023
Second PR for issue #6291

Since the previous PR #6290
was reverted #6295

Allows to skip the already trained algos, and continue training only for
the non-trained ones.

after this PR, the default option AutoRunner(train=None) will have this
behavior, whereas manually setting AutoRunner(train=True/False) will
always train all or skip all training. Previously we can only train all
or skip all (without any option to resume)

I changed  import_bundle_algo_history() to return a better algo_dict 

previously it returned "list[dict(name: algo)]" - a list of dict, but
each dict must have a single key name "name => algo". Not it returns a
list of dicts, each with several keys dict(AlgoEnsembleKeys.ID: name,
AlgoEnsembleKeys.ALGO, algo, "is_trained": bool, etc).
this allows to put additional metadata inside of each algo_dict, and
it's easier to read it back.

previously, to get a name we had to use "name = history[0].keys()[0]",
now it's more elegant "name = history[0][AlgoEnsembleKeys.ID]".

this however required to change many files, everywhere where
import_bundle_algo_history and export_bundle_algo_history was used.

All the tests have passed, except for "integration GPU utilization
tests" , but those errors seems unrelated



After this PR, tutorials need to be updated too
Project-MONAI/tutorials#1288

---------

Signed-off-by: myron <amyronenko@nvidia.com>
@myron
Copy link
Contributor Author

myron commented Apr 6, 2023

@mingxin-zheng you mention that you wanted to rename AutoEnsembleKeys into AutoKeys (or similar) on monai core. would you like to do that? and if yes, can you please then update this PR with the final key names. thanks.

@mingxin-zheng
Copy link
Contributor

Hi @myron , once my PR is merged, I will update this tutorial. Thanks!

Signed-off-by: Wenqi Li <wenqil@nvidia.com>
wyli added 3 commits April 13, 2023 13:53
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Wenqi Li <wenqil@nvidia.com>
Signed-off-by: Mingxin Zheng <18563433+mingxin-zheng@users.noreply.github.com>
Signed-off-by: Mingxin Zheng <18563433+mingxin-zheng@users.noreply.github.com>
Signed-off-by: Mingxin Zheng <18563433+mingxin-zheng@users.noreply.github.com>
@wyli wyli merged commit 2a5257f into Project-MONAI:main Apr 13, 2023
boneseva pushed a commit to boneseva/MONAI-tutorials that referenced this pull request Apr 21, 2024
algo_dict key updates
this should be merged after updates in
Project-MONAI/MONAI#6310

fixes Project-MONAI#1306

---------

Signed-off-by: myron <amyronenko@nvidia.com>
Signed-off-by: Mingxin Zheng <18563433+mingxin-zheng@users.noreply.github.com>
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.

auto3dseg notebooks error
3 participants