SAMModelLoader (segment anything)¶
Documentation¶
- Class name:
SAMModelLoader (segment anything)
- Category:
segment_anything
- Output node:
False
The SAMModelLoader node is designed to load and prepare SAM (Segment Anything Model) models for use in image segmentation tasks. It handles the retrieval and initialization of various SAM models, ensuring they are ready for segmentation operations.
Input types¶
Required¶
model_name
- Specifies the name of the SAM model to be loaded. This parameter is crucial for determining which specific model is retrieved and initialized for segmentation tasks.
- Comfy dtype:
COMBO[STRING]
- Python dtype:
str
Output types¶
sam_model
- Comfy dtype:
SAM_MODEL
- The loaded and initialized SAM model, ready for segmentation tasks.
- Python dtype:
torch.nn.Module
- Comfy dtype:
Usage tips¶
- Infra type:
CPU
- Common nodes: