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 connect vae_override when 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 connect clip_override when 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 by empty_latent_width and empty_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 positive CONDITIONING output.
  • negative (STRING, required, default ""): Negative prompt text, encoded with the loaded/overridden CLIP to produce the negative CONDITIONING output.
  • batch_size (INT, required, default 1, min 1, max 64): Number of latent samples to create in the output LATENT.

Optional Inputs

  • model_override (MODEL, optional): Connect an already-loaded model to use instead of the model selected by model_name.
  • clip_override (CLIP, optional): Connect an already-loaded CLIP to use instead of the CLIP selected by clip_name.
  • vae_override (VAE, optional): Connect an already-loaded VAE to use instead of the VAE selected by vae_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, and batch_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_LINE when connecting to Easy Use pipeline nodes; use the individual MODEL, VAE, CLIP, CONDITIONING, and LATENT outputs when wiring into standard ComfyUI nodes.
  • The resolution preset provides a quick size choice. For non-standard sizes, set empty_latent_width and empty_latent_height explicitly 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_name is left at "None", connect clip_override or select a CLIP file before depending on the CLIP or CONDITIONING outputs.
  • batch_size is limited to 1–64. Larger batches create more latent samples and generally increase memory usage.

Comments

Sign in with GitHub to join the discussion.

Loading comments…