Files
ComfyGen/template/config.py
2026-11-13 00:57:30 +01:00

39 lines
1.4 KiB
Python
Raw Permalink 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.
"""Projekt-Konfiguration für die ComfyGen-Werkzeuge. Diesen Ordner (template/) in das neue
Projekt kopieren, z. B. als <Projekt>\\sprite-generator\\, und die Pfade unten anpassen."""
import os
HERE = os.path.dirname(os.path.abspath(__file__))
# ComfyUI-Server (lokal).
HOST = "http://127.0.0.1:8188"
# Workflow aus ComfyGen\workflows\ – Flux.2 Klein ist der empfohlene Standard.
WORKFLOW_FILE = "Text to Image - Flux Klein.json"
UNET_NAME = "flux-2-klein-4b-fp8.safetensors"
CLIP_NAME = "qwen_3_4b.safetensors"
CLIP_TYPE = "flux2"
VAE_NAME = "flux2-vae.safetensors"
CHECKPOINT = "" # nur für workflows/default.json (SDXL o. ä.)
# Roh-Ergebnisse (nicht in git).
OUTPUT_DIR = os.path.join(HERE, "output")
# Wird genutzt, wenn ein Prompt keinen eigenen Negativ-Prompt hat.
NEGATIVE_PROMPT = "text, watermark, signature, blurry, low quality, extra limbs"
# Ziel für adopt*.py (schreibt nach ASSETS_DIR\Sprites, \Audio, \Video).
PROJECT_ROOT = os.path.join(HERE, "..")
ASSETS_DIR = os.path.join(PROJECT_ROOT, "Assets")
# Listen-Module in diesem Ordner.
PROMPTS_MODULE = "prompts"
AUDIO_MODULE = "audio"
# Optional, nur wenn gebraucht:
# AUDIO_SUBDIR = "audio"
# VIDEO_MODULE = "video"
# PORTRAITS_MODULE = "portraits"
# VINTAGE_MODULE = "vintage"
# VOICE_MODULE = "voice"
# LANG_DIR = os.path.join(PROJECT_ROOT, "Languages")
# CARDS_FILE = os.path.join(PROJECT_ROOT, "cards.json")