yuxin commited on
Commit
005719f
·
1 Parent(s): c4cc548
Files changed (1) hide show
  1. model_segvol_single.py +1 -0
model_segvol_single.py CHANGED
@@ -98,6 +98,7 @@ class SegVolProcessor():
98
  return item
99
 
100
  def point_prompt_b(self, label_single_resize):
 
101
  point, point_label = select_points(label_single_resize, num_positive_extra=3, num_negative_extra=3)
102
  points_single = (point.unsqueeze(0).float().cuda(), point_label.unsqueeze(0).float().cuda())
103
  binary_points_resize = build_binary_points(point, point_label, label_single_resize.shape).unsqueeze(0).unsqueeze(0)
 
98
  return item
99
 
100
  def point_prompt_b(self, label_single_resize):
101
+ print(label_single_resize.shape, torch.unique(label_single_resize))
102
  point, point_label = select_points(label_single_resize, num_positive_extra=3, num_negative_extra=3)
103
  points_single = (point.unsqueeze(0).float().cuda(), point_label.unsqueeze(0).float().cuda())
104
  binary_points_resize = build_binary_points(point, point_label, label_single_resize.shape).unsqueeze(0).unsqueeze(0)