Vision-aware text conditioning for the Krea2/K2 model (Qwen3-VL-4B text encoder). Forces the Krea2 descriptor template even with images, omits the no-op VAE input (Krea2 has no reference-latent pathway), and accepts an unbounded, auto-growing set of image+mask reference pairs. Optional per-image mask crops the image to the masked bounding box before the vision encoder. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
9 lines
334 B
Python
9 lines
334 B
Python
"""ComfyUI-Krea2TexTEncoder — vision-aware text conditioning for the Krea2 / K2 model."""
|
|
|
|
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
|
|
|
|
# Serves web/ as a frontend extension (auto-growing image inputs).
|
|
WEB_DIRECTORY = "./web"
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "WEB_DIRECTORY"]
|