Former-commit-id: 8e63f16d1014832253f3dd839ff50cdbc7ee2a91
pull/160/head
Kye 2 years ago
parent 1da322c7eb
commit 9a863da752

@ -922,8 +922,7 @@ class Segmenting:
return image return image
def segment_image_with_click(self, img, is_positive: bool, def segment_image_with_click(self, img, is_positive: bool):
evt: gr.SelectData):
self.sam_predictor.set_image(img) self.sam_predictor.set_image(img)
self.saved_points.append([evt.index[0], evt.index[1]]) self.saved_points.append([evt.index[0], evt.index[1]])

Loading…
Cancel
Save