Files
kgilper-krea-reference/__init__.py
T
Kevin Gilper 6e52a40bc5 Add Concept Slider V1: training-free attribute sliders for Krea 2
Two new nodes: a Concept Slider Card names an attribute (with optional
custom pole sentences) and a Concept Slider Stack derives the
more-vs-less axis from Krea 2's own text encoder at encode time.
-6..+6 dial, up to 8 sliders, a slider report output, and a study
cache; a slider at 0 is skipped entirely and a cardless stack matches
CLIP Text Encode exactly. Ships with the complete guide, the ten-slider
render audit sheets, a showcase workflow with a with-vs-without
comparison branch, contract tests, and a maintainer smoke test.
2026-07-07 00:55:26 -04:00

32 lines
1.4 KiB
Python

"""ComfyUI Krea Reference custom nodes.
This package registers the Krea 2 V9 and V10 reference-stack nodes and
the Concept Slider V1 nodes.
"""
from .kg_krea_v9 import KGKrea2ImageGuideCardV9, KGTextEncodeKreaImageReferencesV9
from .kg_krea_v10 import KGKrea2ImageGuideCardV10, KGTextEncodeKreaImageReferencesV10
from .kg_krea_slider import KGKrea2ConceptSliderCardV1, KGKrea2ConceptSliderStackV1
WEB_DIRECTORY = "./web"
NODE_CLASS_MAPPINGS = {
"KGKrea2ImageGuideCardV9": KGKrea2ImageGuideCardV9,
"KGTextEncodeKreaImageReferencesV9": KGTextEncodeKreaImageReferencesV9,
"KGKrea2ImageGuideCardV10": KGKrea2ImageGuideCardV10,
"KGTextEncodeKreaImageReferencesV10": KGTextEncodeKreaImageReferencesV10,
"KGKrea2ConceptSliderCardV1": KGKrea2ConceptSliderCardV1,
"KGKrea2ConceptSliderStackV1": KGKrea2ConceptSliderStackV1,
}
NODE_DISPLAY_NAME_MAPPINGS = {
"KGKrea2ImageGuideCardV9": "KG Krea 2 Image Guide Card V9",
"KGTextEncodeKreaImageReferencesV9": "KG Krea 2 Reference Stack Encoder V9",
"KGKrea2ImageGuideCardV10": "KG Krea 2 Image Guide Card V10",
"KGTextEncodeKreaImageReferencesV10": "KG Krea 2 Reference Stack Encoder V10",
"KGKrea2ConceptSliderCardV1": "KG Krea 2 Concept Slider Card V1",
"KGKrea2ConceptSliderStackV1": "KG Krea 2 Concept Slider Stack V1",
}
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]