storyicon / comfyui_segment_anything

Based on GroundingDino and SAM, use semantic strings to segment any element in an image. The comfyui version of sd-webui-segment-anything.
Apache License 2.0
675 stars 78 forks source link

add model(sam&dino) global cache to optimize performance #58

Open JeryZeng opened 6 months ago

JeryZeng commented 6 months ago

sometimes we use sam in multiple workflow,to save model load time between multi workflow,I add the model global cache logic ,user can turn off global cache in "Loaders" UI(cache behavior is default on)