Files
ComfyGen/README.md
2026-11-13 00:57:30 +01:00

38 lines
2.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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` |
| `adopt_scene.py` | Szene ohne Freistellen → `Sprites/<name>.jpg` (Cover-Zuschnitt) | – | `ASSETS_DIR` |
| `generate_portraits.py` | alternde Portraits | Flux.2 Klein + ReferenceLatent | `PORTRAITS_MODULE` |
| `generate_variants.py` | Varianten einer Render (Pose, Zustand) mit derselben Figur | Flux.2 Klein + ReferenceLatent | `VARIANTS_MODULE` (Standard `variants`) |
| `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 | – |
| `generate_mesh.py` | 3D-Modell (GLB, nur Form) aus einem Bild | Hunyuan3D v2 | – |
| `mesh_prep.py` | Mesh vereinfachen und einfärben (Low-Poly) | trimesh | – |
| `cutout.py <name> --holes` | Ausschnitt per Flood-Fill, auch eingeschlossene Löcher | – | – |
| `trim.py` / `largest.py` / `uncut.py` | Ränder abschneiden, Splitter entfernen, Ausschnitt reparieren | – | – |
| `level.py <name> [peak]` | Lautstärke eines Clips angleichen | ffmpeg | `AUDIO_SUBDIR` |
Projekt-`config.py`:
- immer `OUTPUT_DIR`
- `PROMPTS_MODULE` (Standard `prompts`), `AUDIO_MODULE`, optional `AUDIO_SUBDIR` (Standard `audio`)
- für `adopt*` / Portraits / Vintage `ASSETS_DIR`, für Stimmen `LANG_DIR` und `CARDS_FILE`
Jedes Projekt hat einen Starter `gen.cmd`, z. B. `gen generate <name>`.
Neues Projekt: Inhalt von [`template/`](template/) (`gen.cmd`, `config.py`, `prompts.py`, `audio.py`)
in den Generator-Ordner des Projekts kopieren und `config.py` anpassen.
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`.
Genutzt von: YourlifeisGame, GladiatorIdle (je `Spritegenerator\`), AquaNova, AquaNovaAndroid,
Atlas Legends, Boulder Bound, TinyWold, XP-Battleship (je `sprite-generator\`).