sd-webui-segment-anything icon indicating copy to clipboard operation
sd-webui-segment-anything copied to clipboard

[Feature]: Can I add auto-cleanup of video memory when using API requests?

Open zdoek001 opened this issue 9 months ago • 1 comments

Expected behavior

Because it always takes up 3GB of video memory after calling the api, now I will add auto.py ,204 line

async def api_category_mask(payload: CategoryMaskRequest = Body(...), .... clear_sem_sam_cache() return result

zdoek001 avatar May 13 '24 07:05 zdoek001

+1

darwindu avatar May 15 '24 12:05 darwindu