KJNodes/model_loadersgenerated

Diffusion Model Selector(DiffusionModelSelector)

This node technically calls folder_paths。

Diffusion Model Selector

model_path
model_name
COMBO
KJNodes

The Diffusion Model Selector is a node designed for conveniently selecting diffusion models within ComfyUI. Its core function is to allow users to choose a model from the list of installed models and return the full file system path for that model. This node simplifies the process of specifying model files in complex workflows.

Node Functionality

Technically, this node calls the folder_paths.get_filename_list method to retrieve a list of all available model filenames from the diffusion_models directory configured in ComfyUI. When a user selects a model name, the node internally uses the folder_paths.get_full_path_or_raise function to resolve the model name into its corresponding absolute file path string. Finally, it outputs this path string for use by subsequent nodes that require the model path.

Node Parameter Description - Diffusion Model Selector

Inputs

Parameter NameData TypeRequiredDefault ValueRange/OptionsDescription
model_nameCOMBOYes--Input parameter model_name: Select an installed diffusion model name from the dropdown list. The node will locate the model file based on this selection.

Outputs

Parameter NameData TypeDescription
model_pathSTRINGOutput parameter model_path: Outputs the complete file path string of the selected model on the disk.

Usage Scenario

In a typical image generation workflow, you can connect this node to the corresponding input port of a node that requires a specified model path (e.g., certain custom loaders or script nodes). When the workflow executes, this node passes the full path of its selected model to the downstream node, ensuring the entire process uses the correct model file for image generation or processing.

Notes

This node is marked as experimental (EXPERIMENTAL), meaning its interface or behavior may change in future versions. Pay attention to its stability during use and ensure that the required model files are correctly placed in the diffusion_models directory.

The Diffusion Model Selector node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…