ComfyUI > Nodes > ComfyUI-DSD > DSD Model Loader

ComfyUI Node: DSD Model Loader

Class Name

DSDModelLoader

Category
DSD
Author
irreveloper (Account age: 4039days)
Extension
ComfyUI-DSD
Latest Updated
2025-03-15
Github Stars
0.04K

How to Install ComfyUI-DSD

Install this extension via the ComfyUI Manager by searching for ComfyUI-DSD
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-DSD 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

DSD Model Loader Description

Specialized node for loading DSD model, streamlining integration into creative workflows for high-quality image generation.

DSD Model Loader:

The DSDModelLoader is a specialized node designed to load the Diffusion Self-Distillation (DSD) model, which is a sophisticated AI model used for generating high-quality images. This node is essential for artists and developers who want to leverage the power of DSD models in their creative workflows. By providing a streamlined process for loading these models, the DSDModelLoader ensures that users can efficiently utilize the model's capabilities without delving into complex technical details. The node is designed to handle various configurations, allowing users to optimize performance based on their hardware capabilities and specific needs. Its primary goal is to facilitate the seamless integration of DSD models into your projects, enabling you to focus on creativity and innovation.

DSD Model Loader Input Parameters:

model_path

The model_path parameter specifies the file path to the DSD model you wish to load. It is a string input, and if left empty, the node will default to a pre-defined path. This parameter is crucial as it directs the node to the correct model file, ensuring that the desired model is loaded for use. There are no specific minimum or maximum values, but it defaults to an empty string.

lora_path

The lora_path parameter indicates the file path to the LoRA (Low-Rank Adaptation) weights, which are used to enhance the model's performance. Like model_path, it is a string input and defaults to an empty string if not specified. This parameter is important for loading the additional weights that can improve the model's output quality.

device

The device parameter determines whether the model will be loaded on a cuda (GPU) or cpu (CPU) device. This choice impacts the speed and efficiency of model inference, with cuda generally providing faster performance. The default value is cuda, and the options are ["cuda", "cpu"].

dtype

The dtype parameter specifies the data type for model computations, with options including bfloat16, float16, and float32. This setting affects the precision and memory usage of the model, with bfloat16 offering a good balance between speed and memory efficiency. The default is bfloat16.

low_cpu_mem_usage

The low_cpu_mem_usage parameter is a boolean that, when enabled, reduces CPU memory usage during model loading. This is recommended for faster loading times, especially on systems with limited memory. The default value is True.

model_cpu_offload

The model_cpu_offload parameter is a boolean that, when enabled, offloads the model's state dictionary to reduce memory usage during loading. This can be beneficial for systems with limited memory but may slow down inference speed. The default is False.

sequential_cpu_offload

The sequential_cpu_offload parameter is a boolean that enables sequential CPU offloading. This is particularly useful if you are low on VRAM, but it significantly impacts inference speed. The default value is False.

DSD Model Loader Output Parameters:

dsd_model

The dsd_model output is the loaded DSD model ready for use in generating images. This output is crucial as it represents the fully configured model that can be integrated into your creative projects. The model is prepared based on the input parameters, ensuring it is optimized for your specific hardware and requirements.

DSD Model Loader Usage Tips:

  • Ensure that the model_path and lora_path are correctly set to avoid file not found errors. If unsure, leave them empty to use default paths.
  • Use the device parameter to select cuda for faster performance if you have a compatible GPU, as this will significantly speed up model inference.
  • Adjust the dtype to bfloat16 for a good balance between performance and memory usage, especially if you are working with large models or limited resources.

DSD Model Loader Common Errors and Solutions:

Model file not found at <model_path>. Please use DSDModelDownloader to download the model first.

  • Explanation: This error occurs when the specified model file does not exist at the given path.
  • Solution: Verify the model_path is correct or use the DSDModelDownloader to download the model files.

LoRA file not found at <lora_path>. Please use DSDModelDownloader to download the model first.

  • Explanation: This error indicates that the LoRA weights file is missing at the specified path.
  • Solution: Check the lora_path for accuracy or download the necessary files using the DSDModelDownloader.

Could not import DSD modules. Make sure DSD project files (pipeline.py, transformer.py) are properly installed in the parent directory.

  • Explanation: This error suggests that the required DSD modules are not available in the expected directory.
  • Solution: Ensure that all necessary DSD project files are correctly installed in the parent directory of your project.

DSD Model Loader Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-DSD
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 Playground, enabling artists to harness the latest AI tools to create incredible art.