feat: add ComfyUI-style prompt weighting via compel

- Support (word:weight), [word], ((nested)) syntax
- Support BREAK for conditioning chunking (.and() translation)
- Use CompelForSDXL (modern API, avoids deprecation)
- Add --raw flag to bypass weighting and fall back to plain encoding
- Update README with Prompt Syntax section and examples
- Add docs/comfyui-prompt-style.md with design doc
This commit is contained in:
Michele Rossi
2026-07-07 16:16:54 +02:00
parent 2cf58aaa5c
commit 9564202e6d
6 changed files with 355 additions and 22 deletions

View File

@@ -15,6 +15,7 @@ dependencies = [
"pillow",
"pyyaml",
"click",
"compel",
]
[tool.setuptools.packages.find]