Skip to content

Commit 0405f77

Browse files
committed
debug
1 parent da35a8a commit 0405f77

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

server/nninteractive_slicer_server/main_sam.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,8 @@ async def add_point_interaction(params: PointParams):
308308
"""
309309
Receives a point (voxel_coord) + positive/negative. Updates the model & returns a binary mask.
310310
"""
311+
print(f"DEBUG nnInteractive: Received coords: {params.voxel_coord}")
312+
print(f"DEBUG nnInteractive: Image shape: {img.shape if img is not None else 'None'}")
311313
error = get_error_if_img_not_set()
312314
if error is not None:
313315
return error

slicer_plugin/SlicerNNInteractive/SlicerNNInteractive.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,8 +646,8 @@ def point_prompt(self, xyz=None, positive_click=False):
646646
"""
647647
Uploads point prompt to the server.
648648
"""
649-
# url = f"{self.server}/add_point_interaction"
650-
url = f"{self.server}/add_fastsam3d_interaction"
649+
url = f"{self.server}/add_point_interaction"
650+
#url = f"{self.server}/add_fastsam3d_interaction"
651651

652652
seg_response = self.request_to_server(
653653
url, json={"voxel_coord": xyz, "positive_click": positive_click}

0 commit comments

Comments
 (0)