-
Notifications
You must be signed in to change notification settings - Fork 1.2k
3482 add run
API for common training, evaluation and inference
#3832
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
Changes from all commits
Commits
Show all changes
101 commits
Select commit
Hold shift + click to select a range
42a45e0
Merge pull request #19 from Project-MONAI/master
Nic-Ma cd16a13
Merge pull request #32 from Project-MONAI/master
Nic-Ma 6f87afd
Merge pull request #180 from Project-MONAI/dev
Nic-Ma f398298
Merge pull request #214 from Project-MONAI/dev
Nic-Ma 85604cf
Merge pull request #373 from Project-MONAI/dev
Nic-Ma a3193ba
[DLMED] add config parser
Nic-Ma 04e3ee7
[DLMED] simplify parse logic
Nic-Ma 9abb571
[DLMED] add more function tests
Nic-Ma 32aac56
Merge branch 'dev' into 3482-add-config-parser
Nic-Ma 2ab8fd5
Merge pull request #374 from Project-MONAI/dev
Nic-Ma fe3f7c2
[DLMED] fix torchvision tests
Nic-Ma 24c4ca1
[DLMED] add standard run API
Nic-Ma 35dacfb
Merge branch 'dev' into 3482-add-config-reader
Nic-Ma 5dc87f0
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] d4cb4b0
Merge branch 'dev' into 3482-add-config-parser
Nic-Ma 886b607
[DLMED] enhance update_config to support multiple items
Nic-Ma d7cd6cb
[DLMED] update API
Nic-Ma 67d19be
[DLMED] simplify API
Nic-Ma b90b732
[DLMED] enhance doc and unit tests
Nic-Ma 9056a9f
Merge branch 'dev' into 3482-add-config-parser
Nic-Ma 9292450
Merge branch 'dev' into 3482-add-config-parser
Nic-Ma bfc74fc
[DLMED] clear API
Nic-Ma ac3e893
Merge branch 'dev' into 3482-add-config-parser
Nic-Ma 0551374
Merge branch 'dev' into 3482-add-config-parser
Nic-Ma 362e336
[DLMED] simplify usage APIs
Nic-Ma e7559c5
[DLMED] support root config
Nic-Ma 420346b
[DLMED] fix update reference typo
Nic-Ma 4492a91
[DLMED] update usage API
Nic-Ma 3c1205c
revise APIs and docstrings
wyli 43ce0e5
remove->discard
wyli 5fff7d3
[DLMED] minor change
Nic-Ma be4630e
Merge branch 'dev' into 3482-add-config-reader
Nic-Ma e70d663
Merge branch '3482-add-config-reader' into 3482-add-config-parser
Nic-Ma f0c9a48
Merge pull request #376 from Nic-Ma/3482-add-config-parser
Nic-Ma b86f897
[DLMED] update code
Nic-Ma c8bba6a
update usage
wyli 28c5c07
[DLMED] update doc
Nic-Ma 72f37b1
Merge branch '3482-add-config-parser' of https://github.com/Nic-Ma/MO…
Nic-Ma a9c984c
Merge branch '3482-add-config-reader' into 3482-add-config-parser
Nic-Ma 824e80e
Merge pull request #377 from Nic-Ma/3482-add-config-parser
Nic-Ma 273e968
[DLMED] add end-to-end test
Nic-Ma 3db14f7
[DLMED] update doc
Nic-Ma ba67151
[DLMED] fix flake8
Nic-Ma e1fcb30
[DLMED] fix optional import
Nic-Ma babea2b
[DLMED] refine APIs
Nic-Ma 3aac99f
[DLMED] fix typo
Nic-Ma dc10f5d
[DLMED] add support to only use part of the file to override
Nic-Ma 053bd6b
[DLMED] add more tests
Nic-Ma 8b390e6
[DLMED] update to latest
Nic-Ma 2b325ca
Merge branch 'dev' of https://github.com/Project-MONAI/MONAI into 348…
Nic-Ma e2710d4
Merge branch 'dev' into 3482-add-config-reader
Nic-Ma facd0ef
Merge branch 'dev' into 3482-add-config-reader
Nic-Ma c5a2c33
[DLMED] update according to comments
Nic-Ma ac83c02
[DLMED] fix flake8
Nic-Ma e3f9639
[DLMED] update according to comments
Nic-Ma bbdfc05
[DLMED] update `fire` supported dict arg
Nic-Ma 248f300
[DLMED] add examples to doc-string
Nic-Ma fa67a39
[DLMED] skip windows test for paths
Nic-Ma 0abb8e5
[DLMED] skip windows
Nic-Ma c1fefc8
[DLMED] update windows
Nic-Ma 2ab3847
[DLMED] update command
Nic-Ma a3ce5ac
[DLMED] fix windows test
Nic-Ma 605d630
[DLMED] construct class
Nic-Ma 9bbd57e
[DLMED] restore design
Nic-Ma 75120a6
Merge branch 'dev' into 3482-add-config-reader
Nic-Ma 1810d0d
[DLMED] fix args override
Nic-Ma a1f8699
[DLMED] fix typo
Nic-Ma 7adf4a9
[DLMED] test windows
Nic-Ma 4469f38
[DLMED] test windows
Nic-Ma fa232fb
Merge branch 'dev' into 3482-add-config-reader
Nic-Ma c1aeaf2
[DLMED] update according to comments
Nic-Ma bed62ba
[DLMED] refactor config reading logic
Nic-Ma 894ca88
[DLMED] add doc-string
Nic-Ma 682c991
[DLMED] add export and test
Nic-Ma 737ccc3
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5292db6
python -m monai.bundle
wyli 45b240d
fixes doc tests
wyli d7022ec
Merge branch 'dev' into 3482-add-config-reader
Nic-Ma 7db7264
[DLMED] enhance test
Nic-Ma 469874a
rel import
wyli e769e55
[DLMED] refine macro
Nic-Ma efbdb21
fixes flake8 f401
wyli d3fd2c4
mv to monai.bundle
wyli 74faa8e
fixes split_path_id, update docstrings
wyli 7958161
fixes mypy
wyli ffb8087
update cli, update according to the comments
wyli 5cd5425
[DLMED] fix typo in doc-string
Nic-Ma d8beeca
[DLMED] update according to discussion
Nic-Ma 81fabd3
[DLMED] fix path_id match
Nic-Ma c89e3a2
revise according to the comments
wyli ca16681
[DLMED] update config item
Nic-Ma f9cb68a
[DLMED] update patterns
Nic-Ma 2aaa23a
[DLMED] enhance disabled
Nic-Ma 91dd87f
special chars to utils
wyli 194b113
remove circular import
wyli 056a119
configreader -> configparser following cpython/configparser
wyli fe83f07
printing
wyli 1403909
fixes typing
wyli 9d4ea6b
[DLMED] unify "_name_" and "_path_"
Nic-Ma 2780530
[DLMED] update to "_target_"
Nic-Ma 194f21e
fixes typos
wyli File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,3 +25,5 @@ mlflow | |
tensorboardX | ||
imagecodecs; platform_system == "Linux" | ||
tifffile; platform_system == "Linux" | ||
pyyaml | ||
fire |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,3 +32,7 @@ Model Bundle | |
--------------- | ||
.. autoclass:: ConfigParser | ||
:members: | ||
|
||
`Scripts` | ||
--------- | ||
.. autofunction:: run |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) MONAI Consortium | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
|
||
from monai.bundle.scripts import run | ||
|
||
if __name__ == "__main__": | ||
from monai.utils import optional_import | ||
|
||
fire, _ = optional_import("fire") | ||
fire.Fire() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.