mirror of
https://github.com/gaomingqi/Track-Anything.git
synced 2025-12-16 08:27:49 +01:00
change
This commit is contained in:
@@ -25,8 +25,8 @@ class TrackingAnything():
|
|||||||
mask, logit, painted_image = self.xmem.track(image, logit)
|
mask, logit, painted_image = self.xmem.track(image, logit)
|
||||||
return mask, logit, painted_image
|
return mask, logit, painted_image
|
||||||
|
|
||||||
def first_frame_click(self, image: np.ndarray, points:np.ndarray, labels: np.ndarray, multimask=True):
|
def first_frame_click(self, image: np.ndarray, points:np.ndarray, labels: np.ndarray, logits: np.ndarray=None, multimask=True):
|
||||||
mask, logit, painted_image = self.samcontroler.first_frame_click(image, points, labels, multimask)
|
mask, logit, painted_image = self.samcontroler.first_frame_click(image, points, labels,logits, multimask)
|
||||||
return mask, logit, painted_image
|
return mask, logit, painted_image
|
||||||
|
|
||||||
def interact(self, image: np.ndarray, same_image_flag: bool, points:np.ndarray, labels: np.ndarray, logits: np.ndarray=None, multimask=True):
|
def interact(self, image: np.ndarray, same_image_flag: bool, points:np.ndarray, labels: np.ndarray, logits: np.ndarray=None, multimask=True):
|
||||||
|
|||||||
Reference in New Issue
Block a user