-
Notifications
You must be signed in to change notification settings - Fork 1.4k
8134 Add unit test for responsive inference #8146
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 16 commits
Commits
Show all changes
23 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 ec463d6
Merge pull request #397 from Project-MONAI/dev
Nic-Ma ca62306
Merge pull request #429 from Project-MONAI/dev
Nic-Ma 6b63f3e
Merge branch 'Project-MONAI:main' into main
Nic-Ma 06b28e5
Merge pull request #472 from Project-MONAI/dev
Nic-Ma e8770af
Add realtime inference test
Nic-Ma 61bfb63
[DLMED] Add dataflow
Nic-Ma 0b61b54
[DLMED] add realtime inference config
Nic-Ma 3f3a8d7
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5797465
Merge branch 'dev' into 8134-add-realtime-infer
Nic-Ma a4c8095
Merge branch 'dev' into 8134-add-realtime-infer
KumoLiu 05fb8cf
mv to responsive_inference.json and format fix
KumoLiu 02a84b9
rename config
KumoLiu c03b710
Update monai/bundle/workflows.py
KumoLiu de52a91
Merge branch 'dev' into 8134-add-realtime-infer
KumoLiu d3a2f4f
Merge remote-tracking branch 'Nic/8134-add-realtime-infer' into 8134-…
KumoLiu cbffae9
fix ci
KumoLiu 9ed0078
Update monai/bundle/workflows.py
KumoLiu 38dc4f0
Merge remote-tracking branch 'Nic/8134-add-realtime-infer' into 8134-…
KumoLiu faeff4a
fix format
KumoLiu 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
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,101 @@ | ||
| { | ||
| "imports": [ | ||
| "$from collections import defaultdict" | ||
| ], | ||
| "bundle_root": "will override", | ||
| "device": "$torch.device('cpu')", | ||
| "network_def": { | ||
| "_target_": "UNet", | ||
| "spatial_dims": 3, | ||
| "in_channels": 1, | ||
| "out_channels": 2, | ||
| "channels": [ | ||
| 2, | ||
| 2, | ||
| 4, | ||
| 8, | ||
| 4 | ||
| ], | ||
| "strides": [ | ||
| 2, | ||
| 2, | ||
| 2, | ||
| 2 | ||
| ], | ||
| "num_res_units": 2, | ||
| "norm": "batch" | ||
| }, | ||
| "network": "$@network_def.to(@device)", | ||
| "dataflow": "$defaultdict()", | ||
| "preprocessing": { | ||
| "_target_": "Compose", | ||
| "transforms": [ | ||
| { | ||
| "_target_": "EnsureChannelFirstd", | ||
| "keys": "image" | ||
| }, | ||
| { | ||
| "_target_": "ScaleIntensityd", | ||
| "keys": "image" | ||
| }, | ||
| { | ||
| "_target_": "RandRotated", | ||
| "_disabled_": true, | ||
| "keys": "image" | ||
| } | ||
| ] | ||
| }, | ||
| "dataset": { | ||
| "_target_": "Dataset", | ||
| "data": [ | ||
| "@dataflow" | ||
| ], | ||
| "transform": "@preprocessing" | ||
| }, | ||
| "dataloader": { | ||
| "_target_": "DataLoader", | ||
| "dataset": "@dataset", | ||
| "batch_size": 1, | ||
| "shuffle": false, | ||
| "num_workers": 0 | ||
| }, | ||
| "inferer": { | ||
| "_target_": "SlidingWindowInferer", | ||
| "roi_size": [ | ||
| 64, | ||
| 64, | ||
| 32 | ||
| ], | ||
| "sw_batch_size": 4, | ||
| "overlap": 0.25 | ||
| }, | ||
| "postprocessing": { | ||
| "_target_": "Compose", | ||
| "transforms": [ | ||
| { | ||
| "_target_": "Activationsd", | ||
| "keys": "pred", | ||
| "softmax": true | ||
| }, | ||
| { | ||
| "_target_": "AsDiscreted", | ||
| "keys": "pred", | ||
| "argmax": true | ||
| } | ||
| ] | ||
| }, | ||
| "evaluator": { | ||
| "_target_": "SupervisedEvaluator", | ||
| "device": "@device", | ||
| "val_data_loader": "@dataloader", | ||
| "network": "@network", | ||
| "inferer": "@inferer", | ||
| "postprocessing": "@postprocessing", | ||
| "amp": false, | ||
| "epoch_length": 1 | ||
| }, | ||
| "run": [ | ||
| "$@evaluator.run()", | ||
| "$@dataflow.update(@evaluator.state.output[0])" | ||
| ] | ||
| } |
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.