From bc4e5586de6738109dc78018aab63823e939fad3 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Thu, 11 Dec 2025 15:42:45 +0800 Subject: [PATCH 1/3] Update sam_3d_body_estimator.py --- sam_3d_body/sam_3d_body_estimator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sam_3d_body/sam_3d_body_estimator.py b/sam_3d_body/sam_3d_body_estimator.py index 29587adc..12eb97a5 100644 --- a/sam_3d_body/sam_3d_body_estimator.py +++ b/sam_3d_body/sam_3d_body_estimator.py @@ -164,6 +164,7 @@ def process_one_image( # - either provided externally or generated via default FOV estimator if cam_int is not None: print("Using provided camera intrinsics...") + cam_int = torch.from_numpy(cam_int).unsqueeze(0) cam_int = cam_int.to(batch["img"]) batch["cam_int"] = cam_int.clone() elif self.fov_estimator is not None: From eab857242f15a242dd35beffa8e6ed32d10efd06 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Sat, 13 Dec 2025 04:26:13 +0800 Subject: [PATCH 2/3] Update sam_3d_body_estimator.py --- sam_3d_body/sam_3d_body_estimator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam_3d_body/sam_3d_body_estimator.py b/sam_3d_body/sam_3d_body_estimator.py index 12eb97a5..74926d8c 100644 --- a/sam_3d_body/sam_3d_body_estimator.py +++ b/sam_3d_body/sam_3d_body_estimator.py @@ -164,7 +164,7 @@ def process_one_image( # - either provided externally or generated via default FOV estimator if cam_int is not None: print("Using provided camera intrinsics...") - cam_int = torch.from_numpy(cam_int).unsqueeze(0) + cam_int = torch.from_numpy(cam_int).unsqueeze(0) cam_int = cam_int.to(batch["img"]) batch["cam_int"] = cam_int.clone() elif self.fov_estimator is not None: From f9f9dc31457402595cfc70d1c8707ef5c00fd50b Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Sat, 13 Dec 2025 04:26:31 +0800 Subject: [PATCH 3/3] Fix indentation in camera intrinsics handling --- sam_3d_body/sam_3d_body_estimator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sam_3d_body/sam_3d_body_estimator.py b/sam_3d_body/sam_3d_body_estimator.py index 74926d8c..12eb97a5 100644 --- a/sam_3d_body/sam_3d_body_estimator.py +++ b/sam_3d_body/sam_3d_body_estimator.py @@ -164,7 +164,7 @@ def process_one_image( # - either provided externally or generated via default FOV estimator if cam_int is not None: print("Using provided camera intrinsics...") - cam_int = torch.from_numpy(cam_int).unsqueeze(0) + cam_int = torch.from_numpy(cam_int).unsqueeze(0) cam_int = cam_int.to(batch["img"]) batch["cam_int"] = cam_int.clone() elif self.fov_estimator is not None: