From b05e4b52308abf9c17ca186086a7c476d572e33c Mon Sep 17 00:00:00 2001 From: fanweiya Date: Wed, 9 Apr 2025 17:16:54 +0800 Subject: [PATCH 1/2] Fix(vista2d) Ensure consistent spatial_shape metadata in LoadTiffd Signed-off-by: fanweiya --- vista2d/scripts/components.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vista2d/scripts/components.py b/vista2d/scripts/components.py index 139247b..c1d61e2 100644 --- a/vista2d/scripts/components.py +++ b/vista2d/scripts/components.py @@ -90,7 +90,7 @@ def __call__(self, data): meta_data = { ImageMetaKey.FILENAME_OR_OBJ: filename, - ImageMetaKey.SPATIAL_SHAPE: image_size, + ImageMetaKey.SPATIAL_SHAPE: img_array.shape[-2:], } d[key] = MetaTensor.ensure_torch_and_prune_meta(img_array, meta_data) From 4e89f49dde9b3c9cbe7533aee1906b9160e338da Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 9 Apr 2025 09:23:46 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- vista3d/cvpr_workshop/infer_cvpr.py | 1 - 1 file changed, 1 deletion(-) diff --git a/vista3d/cvpr_workshop/infer_cvpr.py b/vista3d/cvpr_workshop/infer_cvpr.py index dddf7f2..3c546a6 100755 --- a/vista3d/cvpr_workshop/infer_cvpr.py +++ b/vista3d/cvpr_workshop/infer_cvpr.py @@ -15,7 +15,6 @@ import os - def convert_clicks(alldata): # indexes = list(alldata.keys()) # data = [alldata[i] for i in indexes]