Files
ComfyGen/README.md
Michi 9b35c3a7cc Take over the tools of the other projects
AquaNova, AquaNovaAndroid, Atlas Legends, TinyWold and XP-Battleship now
use ComfyGen instead of their own copies. Added from them, with paths
taken from the project's config: generate_mesh (Hunyuan3D), mesh_prep,
trim, largest, uncut, level. generate.py defaults to the "prompts"
module; generate_audio and level honour AUDIO_SUBDIR (Atlas Legends
keeps its tracks in output/music).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 09:56:45 +02:00

34 lines
2.2 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` |
| `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 | – |
| `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` (Vorlage: ein beliebiges Projekt kopieren), z. B. `gen generate <name>`.
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 (`Spritegenerator\`), AquaNova, AquaNovaAndroid, Atlas Legends,
TinyWold, XP-Battleship (je `sprite-generator\`).