Skip to content

Commit c1739a9

Browse files
299 add inference script (#338)
* add inference script Signed-off-by: Yiheng Wang <[email protected]> * add inference in train.py Signed-off-by: Yiheng Wang <[email protected]> * remove useless code Signed-off-by: Yiheng Wang <[email protected]> * update readme Signed-off-by: Yiheng Wang <[email protected]> * fix typos Signed-off-by: Yiheng Wang <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * chmod -x for https://results.pre-commit.ci/run/github/288774122/1630661608.M-BPKNA4RVK82RHlCwxs9A Signed-off-by: Wenqi Li <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fixes https://results.pre-commit.ci/run/github/288774122/1630661992.jBhcFROLTdee4TA3rmB0jQ Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 0f824e7 commit c1739a9

File tree

86 files changed

+486
-285
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+486
-285
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assignees: ''
88
---
99

1010
**Describe the bug**
11-
A clear and concise description of what the bug is.
11+
A clear and concise description of what the bug is.
1212

1313
Please only create issues here relating to the functioning of the tutorials. For all other questions/problems/bugs, please refer to MONAI's [main repository](https://github.com/Project-MONAI/MONAI). For MONAI bugs (not just a problem in the notebook), please create an [issue](https://github.com/Project-MONAI/MONAI/issues). For questions, please use the [Discussions tab](https://github.com/Project-MONAI/MONAI/discussions).
1414

.github/ISSUE_TEMPLATE/question.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ assignees: ''
99
**Please use MONAI's Discussions tab**
1010
For questions relating to MONAI usage, please do not create an issue.
1111

12-
Instead, use [MONAI's GitHub Discussions tab](https://github.com/Project-MONAI/MONAI/discussions). This can be found on the MONAI repository's main page (not the tutorials) next to Issues and Pull Requests along the top.
12+
Instead, use [MONAI's GitHub Discussions tab](https://github.com/Project-MONAI/MONAI/discussions). This can be found on the MONAI repository's main page (not the tutorials) next to Issues and Pull Requests along the top.

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ A few sentences describing the changes proposed in this pull request.
88

99
### Checks
1010
<!--- Put an `x` in all the boxes that apply, and remove the not applicable items -->
11-
- [ ] Notebook runs automatically `./runner [-p <regex_pattern>]`
11+
- [ ] Notebook runs automatically `./runner [-p <regex_pattern>]`

2d_classification/mednist_tutorial.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1347,4 +1347,4 @@
13471347
},
13481348
"nbformat": 4,
13491349
"nbformat_minor": 4
1350-
}
1350+
}

3d_segmentation/brats_segmentation_3d.ipynb

100755100644
File mode changed.

3d_segmentation/challenge_baseline/run_net.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def get_xforms(mode="train", keys=("image", "label")):
5858
keys,
5959
prob=0.15,
6060
rotate_range=(0.05, 0.05, None), # 3 parameters control the transform on 3 dimensions
61-
scale_range=(0.1, 0.1, None),
61+
scale_range=(0.1, 0.1, None),
6262
mode=("bilinear", "nearest"),
6363
as_tensor_output=False,
6464
),

3d_segmentation/spleen_segmentation_3d.ipynb

100755100644
File mode changed.

3d_segmentation/spleen_segmentation_3d_lightning.ipynb

100755100644
File mode changed.

3d_segmentation/torch/unet_inference_dict.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def main(tempdir):
6565
dataloader = DataLoader(dataset, batch_size=2, num_workers=4)
6666
# define post transforms
6767
post_transforms = Compose([
68-
EnsureTyped(keys="pred"),
68+
EnsureTyped(keys="pred"),
6969
Activationsd(keys="pred", sigmoid=True),
7070
Invertd(
7171
keys="pred", # invert the `pred` data field, also support multiple fields

3d_segmentation/unet_segmentation_3d_catalyst.ipynb

100755100644
File mode changed.

3d_segmentation/unet_segmentation_3d_ignite.ipynb

100755100644
File mode changed.

0 commit comments

Comments
 (0)