Skip to content

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

@zdoek001

Description

@zdoek001

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions