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

3482 add run API for common training, evaluation and inference #3832

Merged
merged 101 commits into from
Mar 11, 2022

Conversation

Nic-Ma
Copy link
Contributor

@Nic-Ma Nic-Ma commented Feb 21, 2022

Task step 7 of #3482 .

Description

This PR added the run API to execute most common cases of supervised training, evaluation or inference from the config directly.

Status

Ready

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 -f -u --net --coverage.
  • 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.

@Nic-Ma Nic-Ma mentioned this pull request Feb 21, 2022
17 tasks
@Nic-Ma Nic-Ma force-pushed the 3482-add-config-reader branch from 4920e06 to 81fabd3 Compare March 10, 2022 11:27
wyli and others added 3 commits March 10, 2022 12:36
@Nic-Ma Nic-Ma force-pushed the 3482-add-config-reader branch from e9f5179 to f9cb68a Compare March 10, 2022 15:20
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Mar 10, 2022

/black

@Nic-Ma Nic-Ma requested a review from wyli March 10, 2022 16:00
Copy link
Contributor

@wyli wyli left a comment

Choose a reason for hiding this comment

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

thanks @Nic-Ma, this looks nice now and I'll revise and merge it soon.

@wyli
Copy link
Contributor

wyli commented Mar 10, 2022

/black
/build

@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Mar 10, 2022

Hi @ericspod @wyli ,

Thanks for your review and updates.
I am trying to unify the _name_ and _path_ key words to _target_, similar to Hydra:
https://github.com/facebookresearch/hydra/blob/main/examples/instantiate/object/conf/db/mysql.yaml#L1

Thanks.

Copy link
Contributor Author

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

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

Hi @wyli ,

Thanks for your update, I put some minor comments inline, others look good to me.

monai/bundle/config_item.py Show resolved Hide resolved
monai/bundle/scripts.py Show resolved Hide resolved
monai/bundle/scripts.py Show resolved Hide resolved
@Nic-Ma
Copy link
Contributor Author

Nic-Ma commented Mar 11, 2022

/black
/build

@Nic-Ma Nic-Ma requested a review from wyli March 11, 2022 02:50
@wyli
Copy link
Contributor

wyli commented Mar 11, 2022

/build

@wyli wyli enabled auto-merge (squash) March 11, 2022 07:15
Signed-off-by: Wenqi Li <[email protected]>
@wyli
Copy link
Contributor

wyli commented Mar 11, 2022

/build

@wyli wyli mentioned this pull request Mar 11, 2022
7 tasks
@wyli wyli merged commit c319ca8 into Project-MONAI:dev Mar 11, 2022
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.

3 participants