z-x-yang / Segment-and-Track-Anything

An open-source project dedicated to tracking and segmenting any objects in videos, either automatically or interactively. The primary algorithms utilized include the Segment Anything Model (SAM) for key-frame segmentation and Associating Objects with Transformers (AOT) for efficient tracking and propagation purposes.
GNU Affero General Public License v3.0
2.77k stars 334 forks source link

AttributeError: 'NoneType' object has no attribute 'sam_gap' #115

Open andysingal opened 10 months ago

andysingal commented 10 months ago
Screenshot 2023-11-06 at 10 40 46 AM Screenshot 2023-11-06 at 10 42 45 AM

followed: loading image --->click Segment everything from first frame --> press click but still getting error as shown in the image above

yamy-cheng commented 10 months ago

Screenshot 2023-11-06 at 10 40 46 AM Screenshot 2023-11-06 at 10 42 45 AM followed: loading image --->click Segment everything from first frame --> press click but still getting error as shown in the image above

Based on the terminal output, it appears that SAM-Track was not successfully initialized, and there seems to be an issue with loading the weights.

andysingal commented 10 months ago

Screenshot 2023-11-06 at 10 40 46 AM Screenshot 2023-11-06 at 10 42 45 AM followed: loading image --->click Segment everything from first frame --> press click but still getting error as shown in the image above

Based on the terminal output, it appears that SAM-Track was not successfully initialized, and there seems to be an issue with loading the weights.

Thanks for your instant response, any ideas how to fix it?

WIFIwifi8966 commented 9 months ago

Screenshot 2023-11-06 at 10 40 46 AM Screenshot 2023-11-06 at 10 42 45 AM followed: loading image --->click Segment everything from first frame --> press click but still getting error as shown in the image above

Based on the terminal output, it appears that SAM-Track was not successfully initialized, and there seems to be an issue with loading the weights.

Thanks for your instant response, any ideas how to fix it?

You could reinstall the SAM and GrouddingDINO, I have the same questions, but after I reinstall these two correctly. It works