ComfyUI > Nodes > ComfyUI-LoaderUtils > Load Diffusion Model (Any)

ComfyUI Node: Load Diffusion Model (Any)

Class Name

UNETLoader_Any

Category
advanced/loaders
Author
lrzjason (Account age: 4298days)
Extension
ComfyUI-LoaderUtils
Latest Updated
2026-03-20
Github Stars
0.08K

How to Install ComfyUI-LoaderUtils

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

Load Diffusion Model (Any) Description

Loads UNET models for AI art, optimizing performance with flexible weight data type options.

Load Diffusion Model (Any):

The UNETLoader_Any node is designed to facilitate the loading of diffusion models, specifically UNET models, which are integral to various AI art generation processes. This node is part of the advanced loaders category, offering flexibility and precision in model loading by allowing you to specify the model's name and the desired data type for weights. The primary function of this node is to load a UNET model from a specified directory, ensuring that the model is ready for use in generating high-quality AI art. By providing options for different weight data types, the node allows for optimization in terms of performance and resource usage, catering to both standard and advanced use cases. This capability is particularly beneficial for AI artists who require efficient model loading and execution to streamline their creative workflows.

Load Diffusion Model (Any) Input Parameters:

unet_name

The unet_name parameter specifies the name of the UNET model you wish to load. This parameter is crucial as it determines which model file will be accessed from the designated directory. The available options for this parameter are dynamically generated from the list of filenames in the "unet" directory. Selecting the correct model name ensures that the desired model is loaded for your AI art generation tasks.

weight_dtype

The weight_dtype parameter allows you to choose the data type for the model's weights. This parameter impacts the precision and performance of the model during execution. The available options are "default", "fp8_e4m3fn", "fp8_e4m3fn_fast", and "fp8_e5m2". The "default" option uses the standard data type, while the other options utilize different floating-point formats that can optimize performance and memory usage. For instance, "fp8_e4m3fn_fast" enables additional optimizations for faster execution. Choosing the appropriate data type can enhance the efficiency of your model, especially in resource-constrained environments.

any

The any parameter is optional and allows for additional unspecified inputs. This parameter provides flexibility for future extensions or custom configurations that may be required for specific use cases. While it is not mandatory to provide a value for this parameter, it can be utilized to pass extra information or settings to the node if needed.

Load Diffusion Model (Any) Output Parameters:

MODEL

The MODEL output parameter represents the loaded UNET model. This output is crucial as it provides the actual model object that can be used in subsequent AI art generation processes. The model is loaded with the specified configurations, including the chosen weight data type, ensuring that it is ready for immediate use. This output is essential for integrating the loaded model into your creative workflows, enabling you to leverage its capabilities for generating high-quality AI art.

Load Diffusion Model (Any) Usage Tips:

  • Ensure that the unet_name parameter matches the exact filename of the model you wish to load to avoid errors in locating the model file.
  • Experiment with different weight_dtype options to find the best balance between performance and precision for your specific use case, especially if you are working with limited computational resources.

Load Diffusion Model (Any) Common Errors and Solutions:

ERROR: Model file not found

  • Explanation: This error occurs when the specified unet_name does not match any file in the "unet" directory.
  • Solution: Verify that the unet_name parameter is correctly set to the exact filename of the model you intend to load.

ERROR: Invalid weight data type

  • Explanation: This error arises if an unsupported value is provided for the weight_dtype parameter.
  • Solution: Ensure that the weight_dtype is set to one of the supported options: "default", "fp8_e4m3fn", "fp8_e4m3fn_fast", or "fp8_e5m2".

Load Diffusion Model (Any) Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-LoaderUtils
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.

Load Diffusion Model (Any)