mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-05-06 16:36:45 -03:00
fix(recipe): support ComfyUI-Easy-Use nodes in runtime metadata extraction (#920)
- Add EasyComfyLoaderExtractor for comfyLoader (easy comfyLoader): extracts checkpoint, optional_lora_stack as LoRA apply node, prompt text, clip_skip, and latent dimensions - Add EasyPreSamplingExtractor for samplerSettings (easy preSampling): extracts steps, cfg, sampler_name, scheduler, denoise, seed - Add EasySeedExtractor for easySeed - Fix clip_skip hardcoded to '1' — now searched from SAMPLING metadata - Lora Stacker nodes intentionally excluded from extraction to prevent double-counting; LoRAs only recorded at apply nodes
This commit is contained in:
@@ -560,8 +560,14 @@ class MetadataProcessor:
|
||||
|
||||
params["loras"] = " ".join(lora_parts)
|
||||
|
||||
# Set default clip_skip value
|
||||
params["clip_skip"] = "1" # Common default
|
||||
# Extract clip_skip from any SAMPLING node that provides it
|
||||
for sampler_info in metadata.get(SAMPLING, {}).values():
|
||||
clip_skip = sampler_info.get("parameters", {}).get("clip_skip")
|
||||
if clip_skip is not None:
|
||||
params["clip_skip"] = clip_skip
|
||||
break
|
||||
if params["clip_skip"] is None:
|
||||
params["clip_skip"] = "1"
|
||||
|
||||
return params
|
||||
|
||||
|
||||
Reference in New Issue
Block a user