EasyUse/Loadersgenerated
EasyDiffusionModelLoader(diffusionModelLoader)
EasyDiffusionModelLoader (class diffusionModelLoader) is an all-in-one loader in the EasyUse/Loaders category.
diffusion Model Loader
model_override
clip_override
vae_override
pipe
model
vae
clip
positive
negative
latent
model_name
COMBO
vae_name
None
clip_name
None
resolution
1024 x 1024
empty_latent_width
INT
empty_latent_height
INT
positive
STRING
negative
STRING
batch_size
1
Easy Use
Description
EasyDiffusionModelLoader (class diffusionModelLoader) is an all-in-one loader in the EasyUse/Loaders category. It loads a diffusion model together with selected VAE and CLIP files, encodes positive and negative prompts using that CLIP, and builds an empty latent with the requested dimensions and batch size. Its outputs include a packed Easy Use pipeline as well as the individual model, VAE, CLIP, conditioning, and latent objects, so it can be used with Easy Use pipeline nodes or standard ComfyUI nodes.
Inputs
Required Inputs
- model_name (
COMBO, required): Diffusion model file to load. This is the primary model selection. - vae_name (
COMBO, required, default"None"): VAE file to load. The default"None"means no separate VAE file is selected; choose a VAE or connectvae_overridewhen you need a VAE result. - clip_name (
COMBO, required, default"None"): CLIP file to load. The default"None"means no separate CLIP file is selected; choose a CLIP or connectclip_overridewhen you need prompt encoding and CLIP/conditioning results. - resolution (
COMBO, required, default"1024 x 1024"): Preset for common output resolutions. It is a convenience selector; the actual empty latent size is set byempty_latent_widthandempty_latent_height. - empty_latent_width (
INT, required): Width of the empty latent to create. - empty_latent_height (
INT, required): Height of the empty latent to create. - positive (
STRING, required, default""): Positive prompt text, encoded with the loaded/overridden CLIP to produce the positiveCONDITIONINGoutput. - negative (
STRING, required, default""): Negative prompt text, encoded with the loaded/overridden CLIP to produce the negativeCONDITIONINGoutput. - batch_size (
INT, required, default1, min1, max64): Number of latent samples to create in the outputLATENT.
Optional Inputs
- model_override (
MODEL, optional): Connect an already-loaded model to use instead of the model selected bymodel_name. - clip_override (
CLIP, optional): Connect an already-loaded CLIP to use instead of the CLIP selected byclip_name. - vae_override (
VAE, optional): Connect an already-loaded VAE to use instead of the VAE selected byvae_name.
Outputs
- PIPE_LINE: Packed Easy Use pipeline output for chaining into other Easy Use nodes.
- MODEL: The loaded or overridden diffusion model.
- VAE: The loaded or overridden VAE.
- CLIP: The loaded or overridden CLIP.
- CONDITIONING (positive): Positive prompt encoded with the CLIP.
- CONDITIONING (negative): Negative prompt encoded with the CLIP.
- LATENT: Empty latent with the specified
empty_latent_width,empty_latent_height, andbatch_size.
Usage Notes
- This node consolidates model/VAE/CLIP loading, prompt encoding, and empty-latent creation into a single step, which is useful for keeping Easy Use workflows compact.
- Use
PIPE_LINEwhen connecting to Easy Use pipeline nodes; use the individualMODEL,VAE,CLIP,CONDITIONING, andLATENToutputs when wiring into standard ComfyUI nodes. - The
resolutionpreset provides a quick size choice. For non-standard sizes, setempty_latent_widthandempty_latent_heightexplicitly and confirm they match the intended canvas. - Override inputs are helpful when a component has already been loaded elsewhere; connecting them lets you reuse that component instead of loading another copy from the corresponding name selector.
- The name selectors are required inputs. The optional overrides are provided in addition to those selectors.
- Prompt encoding needs a valid CLIP. If
clip_nameis left at"None", connectclip_overrideor select a CLIP file before depending on theCLIPorCONDITIONINGoutputs. batch_sizeis limited to 1–64. Larger batches create more latent samples and generally increase memory usage.
Comments
Sign in with GitHub to join the discussion.