gaomingqi / Track-Anything

Track-Anything is a flexible and interactive tool for video object tracking and segmentation, based on Segment Anything, XMem, and E2FGVI.
MIT License
6.46k stars 480 forks source link

How did u segment entire person #46

Open lucasjinreal opened 1 year ago

lucasjinreal commented 1 year ago

When I clicked on single point, the SAM output like this:

image

it generates many masks on person

and then run tracker, got error:

tracker\util\mask_mapper.py:47 in convert_mask      │
│                                                                                                  │
│   44 │   │                                                                                       │
│   45 │   │   new_labels = list(set(labels) - set(self.labels))                                   │
│   46 │   │   if not exhaustive:                                                                  │
│ ❱ 47 │   │   │   assert len(new_labels) == len(labels), 'Old labels found in non-exhaustive m    │
│   48 │   │                                                                                       │
│   49 │   │   # add new remappings                                                                │
│   50 │   │   for i, l in enumerate(new_labels):                                                  │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AssertionError: Old labels found in non-exhaustive mode
lucasjinreal commented 1 year ago
image

this is sam demo

this is mine

image

how can I make sure the point I take can have full person segment out?

gaomingqi commented 1 year ago

Hello, our tutorials introduce how to iteratively refine segmentation results (Section 2-3). Thanks.

RaulKite commented 1 year ago

Is there any way to do it programmatically? Select the entire person with only a bbox or point?

Thanks

CnoyZ commented 1 year ago

Is there any way to do it programmatically? Select the entire person with only a bbox or point?

Thanks

Hey @RaulKite! Do you find any solutions for this now?