Skip to content

Commit

Permalink
change sw padding mode (#710)
Browse files Browse the repository at this point in the history
Fixes # .

### Description
A few sentences describing the changes proposed in this pull request.

### Status
**Ready/Work in progress/Hold**

### Please ensure all the checkboxes:
<!--- Put an `x` in all the boxes that apply, and remove the not
applicable items -->
- [x] Codeformat tests passed locally by running `./runtests.sh
--codeformat`.
- [ ] In-line docstrings updated.
- [ ] Update `version` and `changelog` in `metadata.json` if changing an
existing bundle.
- [ ] Please ensure the naming rules in config files meet our
requirements (please refer to: `CONTRIBUTING.md`).
- [ ] Ensure versions of packages such as `monai`, `pytorch` and `numpy`
are correct in `metadata.json`.
- [ ] Descriptions should be consistent with the content, such as
`eval_metrics` of the provided weights and TorchScript modules.
- [ ] Files larger than 25MB are excluded and replaced by providing
download links in `large_file.yml`.
- [ ] Avoid using path that contains personal information within config
files (such as use `/home/your_name/` for `"bundle_root"`).

---------

Signed-off-by: heyufan1995 <[email protected]>
Signed-off-by: Yiheng Wang <[email protected]>
Signed-off-by: Yiheng Wang <[email protected]>
Co-authored-by: Yiheng Wang <[email protected]>
Co-authored-by: Dr. Bruce Hashemian <[email protected]>
Co-authored-by: Yiheng Wang <[email protected]>
  • Loading branch information
4 people authored Nov 11, 2024
1 parent cc0d505 commit 8506fef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion models/vista3d/configs/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json",
"version": "0.5.6",
"version": "0.5.7",
"changelog": {
"0.5.7": "change sw padding mode to replicate",
"0.5.6": "add mlflow support",
"0.5.5": "add arg for trt compiler base path",
"0.5.4": "add undefined label prompt check",
Expand Down
2 changes: 1 addition & 1 deletion models/vista3d/scripts/inferer.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __call__(
)
else:
val_outputs = SlidingWindowInfererAdapt(
roi_size=self.roi_size, sw_batch_size=self.sw_batch_size, with_coord=True
roi_size=self.roi_size, sw_batch_size=self.sw_batch_size, with_coord=True, padding_mode="replicate"
)(
inputs,
network,
Expand Down

0 comments on commit 8506fef

Please sign in to comment.