ComfyUI > Nodes > ComfyUI-Grounding > Grounding Mask Model (down)Loader

ComfyUI Node: Grounding Mask Model (down)Loader

Class Name

GroundingMaskModelLoader

Category
grounding
Author
PozzettiAndrea (Account age: 2240days)
Extension
ComfyUI-Grounding
Latest Updated
2025-12-22
Github Stars
0.03K

How to Install ComfyUI-Grounding

Install this extension via the ComfyUI Manager by searching for ComfyUI-Grounding
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Grounding in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Grounding Mask Model (down)Loader Description

Facilitates efficient mask model loading for AI artists, simplifying integration and memory management.

Grounding Mask Model (down)Loader:

The GroundingMaskModelLoader is a versatile node designed to facilitate the loading of various mask generation models, such as Florence-2 Seg, SA2VA, LISA, and PSALM. Its primary purpose is to streamline the process of integrating these models into your workflow, allowing you to generate masks efficiently for different applications. This node is particularly beneficial for AI artists who need to work with complex models without delving into the technical intricacies of model loading and management. By providing a unified interface, the GroundingMaskModelLoader simplifies the selection and loading of models, ensuring that you can focus on creative tasks rather than technical setup. The node also offers options to manage memory usage effectively, making it a valuable tool for optimizing performance in resource-constrained environments.

Grounding Mask Model (down)Loader Input Parameters:

model

The model parameter allows you to select from a list of available mask generation models. This selection determines which model will be loaded and used for mask generation tasks. The default option is "Florence-2: Base (Segmentation)", but you can choose from other models registered in the system. This parameter is crucial as it directly impacts the type of masks generated and the underlying algorithms used. The available options are dynamically populated based on the models registered in the MASK_MODEL_REGISTRY.

keep_model_loaded

The keep_model_loaded parameter is a boolean option that controls whether the model remains in VRAM after loading. By default, this is set to True, meaning the model stays loaded in memory, which can speed up subsequent operations. However, if you disable this option, the model will be unloaded after each detection, freeing up VRAM but potentially slowing down operations due to the need to reload the model each time. This parameter is particularly useful for managing memory usage, especially when working with limited resources.

Grounding Mask Model (down)Loader Output Parameters:

model

The model output parameter provides the loaded mask generation model. This output is essential as it represents the actual model object that can be used for generating masks in your workflow. The model is returned in a format that is compatible with other nodes and processes within the system, allowing for seamless integration and further processing. This output ensures that you have access to the necessary tools for mask generation tasks, enabling you to apply the model's capabilities to your creative projects.

Grounding Mask Model (down)Loader Usage Tips:

  • To optimize performance, keep the keep_model_loaded parameter enabled if you plan to use the same model multiple times in a session, as this will reduce loading times and improve efficiency.
  • When working with different models, ensure that the required modules are correctly installed and imported to avoid runtime errors. Check the console for any import errors if a model fails to load.

Grounding Mask Model (down)Loader Common Errors and Solutions:

Cannot load <model>: florence2_seg module failed to import. Check console for import errors.

  • Explanation: This error occurs when the florence2_seg module is not successfully imported, which is necessary for loading the Florence-2 Seg model.
  • Solution: Verify that the florence2_seg module is installed and correctly configured. Check the console for detailed import error messages and resolve any issues related to missing dependencies or incorrect paths.

Cannot load <model>: sa2va module failed to import. Check console for import errors.

  • Explanation: This error indicates that the sa2va module, required for loading the SA2VA model, is not imported successfully.
  • Solution: Ensure that the sa2va module is installed and accessible. Review the console output for specific import errors and address any problems with module installation or configuration.

Unknown model type: <model_type>

  • Explanation: This error is raised when an unrecognized model type is specified, which is not supported by the GroundingMaskModelLoader.
  • Solution: Double-check the model type specified in the input parameters. Ensure that it matches one of the supported types listed in the MASK_MODEL_REGISTRY. If the model type is correct, verify that the necessary modules are available and correctly configured.

Grounding Mask Model (down)Loader Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Grounding
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.