UX-Decoder / Semantic-SAM

[ECCV 2024] Official implementation of the paper "Semantic-SAM: Segment and Recognize Anything at Any Granularity"
2.28k stars 109 forks source link

Fix memory leak in demo_auto_generation.py #105

Open MingfuYAN opened 2 months ago

MingfuYAN commented 2 months ago

Fixed an issue where demo_auto_generation.py would crash after extended periods of usage. The root cause was a memory leak that caused memory to fill up, eventually leading to the system killing the process. Ensured proper memory management to prevent leaks and improve stability.