ComfyGen: shared generator tools (images, portraits, vintage, video, audio, voice)

Moved from YourlifeisGame/Spritegenerator; projects are found via _bootstrap.py (cwd or --project) and provide config.py plus list modules.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-02 09:41:31 +02:00
commit e3d21e55c9
21 changed files with 1485 additions and 0 deletions

23
README.md Normal file
View File

@@ -0,0 +1,23 @@
# ComfyGen – gemeinsame Generator-Werkzeuge
Erzeugt Bilder, Videos, Klänge und Stimmen für Spiele lokal über ComfyUI (127.0.0.1:8188).
Ein **Projekt** ist ein Ordner mit `config.py` und Listen-Modulen; die Werkzeuge finden es über
das aktuelle Verzeichnis oder `--project <ordner>` (siehe `_bootstrap.py`).
| Werkzeug | Erzeugt | Modell | Projektdaten |
|---|---|---|---|
| `generate.py` / `adopt.py` / `cutout.py` | Sprites, Szenen, Karten | Flux.2 Klein (`workflows/`) | `PROMPTS_MODULE` |
| `generate_portraits.py` | alternde Portraits | Flux.2 Klein + ReferenceLatent | `PORTRAITS_MODULE` |
| `generate_vintage.py` | Vintage-Elemente (Luma-Key) | Flux.2 Klein | `VINTAGE_MODULE` |
| `generate_video.py` / `adopt_video.py` | Clips, Loops | Wan 2.2 I2V | `VIDEO_MODULE` |
| `generate_audio.py` / `adopt_audio.py` | Musik, Effekte | Stable Audio 3 | `AUDIO_MODULE` |
| `generate_voice.py` | Erzählstimme mit Whisper-Prüfung | Chatterbox (+ Kokoro-Referenzen) | `VOICE_MODULE`, `LANG_DIR`, `CARDS_FILE` |
| `make_voice_refs.py` | Referenzstimmen in `voice_refs/` | Kokoro | – |
Benötigte Pfade in der Projekt-`config.py`: `OUTPUT_DIR`, `ASSETS_DIR`, für Stimmen `LANG_DIR`, `CARDS_FILE`.
Stimmen laufen in der gemeinsamen Umgebung `.venv-tts` (torch 2.6 für Chatterbox, ~6 GB, nicht in git).
Neu anlegen: `py -3.12 -m venv .venv-tts`, dann torch 2.6 cu124, `chatterbox-tts`, `faster-whisper`, `kokoro`.
Projekte, die schon umgestellt sind: YourlifeisGame. Ältere Projekte (AquaNova, TinyWold, …) haben noch
eigene Kopien in ihrem `sprite-generator` und können einzeln umziehen.