Nodes/ComfyUI-Lora-Sweeper/Lora Epoch Sweeper
ComfyUI Node

Lora Epoch Sweeper

Loads a range of one LoRA's epochs from a folder and outputs them as lists, so a single queue samples one image per epoch.

By ethanfel·Created 2 months ago·Updated 2 months ago· 0
Lora Epoch Sweeper
  • model
  • clip
  • model
  • clip
  • step_label
  • lora_name
folder_path
lora_basename
start_step0
end_step0
step_interval0
strength_model1.00
strength_clip1.00
include_basetrue
max_count0
Categoryloaders/LoraSweeper

Inputs (11)

NameTypeDefaultDescription
modelMODELBase diffusion model to apply each epoch to.
folder_pathSTRINGAbsolute path to a folder of LoRA epochs (or a sub-folder name inside the loras dir).
lora_basenameSTRINGWhich LoRA in the folder to sweep (substring of its name). Leave empty to auto-pick the LoRA with the most epochs.
start_stepINT00–18446744073709550000Lowest training step to include (inclusive).
end_stepINT00–18446744073709550000Highest training step to include. 0 = no upper limit.
step_intervalINT00–18446744073709550000Thin the range to ~one checkpoint per this many training steps (e.g. 500). 0 = keep every epoch.
strength_modelFLOAT1.00-100–100
strength_clipFLOAT1.00-100–100
clipoptCLIPOptional CLIP/text-encoder to also patch.
include_baseoptBOOLEANtrueAlso include the final, suffix-less .safetensors.
max_countoptINT00–1000Cap the number of epochs swept. 0 = unlimited.

Outputs (4)

NameTypeDescription
modelMODELList of models, one per selected epoch.
clipCLIPList of CLIPs, one per selected epoch (passthrough if no clip given).
step_labelSTRINGTraining step of each epoch as a string ('final' for the suffix-less file).
lora_nameSTRINGFilename (without extension) of each epoch.