From de8903a0379176cd11916f85630b737fd2739d88 Mon Sep 17 00:00:00 2001 From: heyufan1995 Date: Sun, 10 Nov 2024 13:45:36 -0500 Subject: [PATCH 1/3] change sw padding mode Signed-off-by: heyufan1995 --- models/vista3d/configs/metadata.json | 1 + models/vista3d/scripts/inferer.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/models/vista3d/configs/metadata.json b/models/vista3d/configs/metadata.json index 48d812e8..c6e217ea 100644 --- a/models/vista3d/configs/metadata.json +++ b/models/vista3d/configs/metadata.json @@ -2,6 +2,7 @@ "schema": "https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/meta_schema_20240725.json", "version": "0.5.6", "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", diff --git a/models/vista3d/scripts/inferer.py b/models/vista3d/scripts/inferer.py index 345b1a89..7232fe9e 100644 --- a/models/vista3d/scripts/inferer.py +++ b/models/vista3d/scripts/inferer.py @@ -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, From 721787f25bf750ba74c3b11df4690dc69987c651 Mon Sep 17 00:00:00 2001 From: Yiheng Wang <68361391+yiheng-wang-nv@users.noreply.github.com> Date: Mon, 11 Nov 2024 12:02:37 +0800 Subject: [PATCH 2/3] Update models/vista3d/scripts/inferer.py Co-authored-by: Dr. Bruce Hashemian <3968947+drbeh@users.noreply.github.com> Signed-off-by: Yiheng Wang <68361391+yiheng-wang-nv@users.noreply.github.com> --- models/vista3d/scripts/inferer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/vista3d/scripts/inferer.py b/models/vista3d/scripts/inferer.py index 7232fe9e..6c230916 100644 --- a/models/vista3d/scripts/inferer.py +++ b/models/vista3d/scripts/inferer.py @@ -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, padding_mode='replicate' + roi_size=self.roi_size, sw_batch_size=self.sw_batch_size, with_coord=True, padding_mode="replicate" )( inputs, network, From 289353b4bea776ad9f291815f8e70bc48801c3f4 Mon Sep 17 00:00:00 2001 From: Yiheng Wang Date: Mon, 11 Nov 2024 12:04:34 +0800 Subject: [PATCH 3/3] update version Signed-off-by: Yiheng Wang --- models/vista3d/configs/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/vista3d/configs/metadata.json b/models/vista3d/configs/metadata.json index c6e217ea..8b991b1e 100644 --- a/models/vista3d/configs/metadata.json +++ b/models/vista3d/configs/metadata.json @@ -1,6 +1,6 @@ { "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",