Fix Krea patch duplicate source_latent

This commit is contained in:
GenorTG
2026-11-10 11:24:57 +01:00
parent df4838cc58
commit b75e1cb50e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -156,11 +156,11 @@ class PROMPTFORGE_KreaEditModelPatch:
common = dict(source_latent=source_latent, source_latent_b=source_latent_b, ref_boost=ref_boost,
ref_boost_a=ref_boost_a, fit_mode=fit_mode, vae=vae, source_image=source_image,
target_latent=target_latent)
rest = {key: value for key, value in common.items() if key != "source_latent"}
if use_nag and nag_negative is not None:
rest = {key: value for key, value in common.items() if key != "source_latent"}
return comfy_nodes.NODE_CLASS_MAPPINGS["Krea2EditNormalizedAttentionGuidance"]().patch(
model, nag_negative, source_latent, phi, tau, alpha, 1000.0, 0.0, **rest)
return comfy_nodes.NODE_CLASS_MAPPINGS["Krea2EditModelPatch"]().patch(model, source_latent, **common)
return comfy_nodes.NODE_CLASS_MAPPINGS["Krea2EditModelPatch"]().patch(model, source_latent, **rest)
class PROMPTFORGE_SkipLayerGuidance:
+1 -1
View File
@@ -1,7 +1,7 @@
[project]
name = "ComfyUI-PromptForge"
description = "ComfyUI prompt enhancement suite: model/config node with GPU-aware auto settings, prompt enhancer with a preset catalog, and a standalone config finder."
version = "1.28.19"
version = "1.28.20"
license = { file = "LICENSE" }
dependencies = [
"transformers",