Skip to content

Commit 60524f5

Browse files
committed
remove forgotten breakpoints
1 parent df5f8e5 commit 60524f5

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

happypose/pose_estimators/cosypose/cosypose/integrated/pose_estimator.py

-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ def run_inference_pipeline(
167167
)
168168
if detections is None and run_detector:
169169
start_time = time.time()
170-
breakpoint()
171170
detections = self.forward_detection_model(
172171
observation,
173172
detection_th,

happypose/pose_estimators/cosypose/cosypose/training/detector_models_cfg.py

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ def check_update_config(cfg):
1111

1212

1313
def create_model_detector(cfg, n_classes):
14-
breakpoint()
1514
model = DetectorMaskRCNN(
1615
input_resize=cfg.input_resize,
1716
n_classes=n_classes,

happypose/pose_estimators/cosypose/cosypose/utils/cosypose_wrapper.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def get_model(
150150
depth_refiner = get_depth_refiner(depth_refiner_type, mesh_db_batched, renderer)
151151
return detector, pose_estimator, depth_refiner
152152

153-
def inference(self, observation: ObservationTensor):
153+
def inference(self, observation: ObservationTensor, use_depth_refinement):
154154
"""Example of how to use inference with the loaded models.
155155
156156
Args:
@@ -165,8 +165,10 @@ def inference(self, observation: ObservationTensor):
165165
n_coarse_iterations=1,
166166
n_refiner_iterations=4,
167167
)
168-
if self.depth_refiner is not None:
169-
breakpoint()
168+
if use_depth_refinement and self.depth_refiner is not None:
169+
final_preds, _ = self.depth_refiner.refine_poses(
170+
predictions=final_preds, depth=observation.depth, K=observation.K
171+
)
170172
return final_preds.cpu()
171173

172174

0 commit comments

Comments
 (0)