-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Is your feature request related to a problem? Please describe.
Currently, when launching a MONAILabel app, the server automatically downloads and initializes SAM (Segment Anything Model) weights to support interactive features. This creates significant bottlenecks:
Redundant Loading: Many apps already use specialized interactive models (e.g., DeepEdit). Forcing SAM to load on top of these models is redundant and wastes VRAM/Memory.
Startup Latency: The mandatory download and initialization of SAM weights significantly slow down the server's "ready" time.
Describe the solution you'd like
I would like an option to disable or "lazy-load" SAM so it is only initialized if explicitly requested. Specifically:
A Configuration Flag: Add a server-side flag (e.g., --skip_sam or conf: { disable_sam: true }) to prevent the automatic download and loading of SAM weights.
Modular Interaction: Allow the primary segmentation model (like DeepEdit) to function as the sole interaction engine without SAM running in the background.
On-Demand Loading: If SAM is needed, it should be an optional "plugin" rather than a hard dependency of the app startup sequence.
Describe alternatives you've considered
None
Additional context
By making SAM optional, MONAILabel becomes much more efficient for users running specialized interactive models who don't need the generic SAM overhead.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status