Cleanup
This commit is contained in:
@@ -1,12 +1,22 @@
|
||||
import logging
|
||||
from pathlib import Path
|
||||
|
||||
# --- Project Root ---
|
||||
# Get the directory where config.py is located
|
||||
ROOT_DIR = Path(__file__).parent.resolve()
|
||||
|
||||
# --- Server & Logs ---
|
||||
HOST = "127.0.0.1"
|
||||
PORT = 8000
|
||||
LOG_LEVEL = "WARNING" # Options: "DEBUG", "INFO", "WARNING", "ERROR"
|
||||
LOG_FILE = "debug.log"
|
||||
LOG_FILE = str(ROOT_DIR / "debug.log")
|
||||
USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0" # Stealth User-Agent to bypass Wikipedia's bot detection
|
||||
|
||||
# --- Stable Diffusion Config ---
|
||||
SD_URL = "http://127.0.0.1:7860"
|
||||
MODEL_PRESETS_PATH = str(ROOT_DIR / "model_presets.toml")
|
||||
RES_PRESETS_PATH = str(ROOT_DIR / "resolution_presets.toml")
|
||||
|
||||
# --- Model Specific Token Tuning (Tuned for Gemma 4) ---
|
||||
# Patch size is typically (clip.vision.patch_size * n_merge)
|
||||
# For Gemma 4, this is 48px.
|
||||
|
||||
Reference in New Issue
Block a user