Spaces:
Running
on
Zero
Running
on
Zero
File size: 1,377 Bytes
fdb19bf 2a44f07 fdb19bf e456dc4 fdb19bf 0180c38 fdb19bf 53d01ea fdb19bf e456dc4 51296be fdb19bf 46b1a94 e63b057 46b1a94 fdb19bf f18b716 0f75e18 a882f77 f18b716 e456dc4 fdb19bf e456dc4 6ace0ed 2a44f07 0f75e18 cd5c205 53d01ea cd5c205 202af21 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
import torch
class Config:
# Hardware
DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
DTYPE = torch.float16 if DEVICE == "cuda" else torch.float32
# Base Model & LoRA (from primerz/pixagram)
REPO_ID = "primerz/pixagram"
CHECKPOINT_FILENAME = "horizon.safetensors"
LORA_FILENAME = "retroart.safetensors"
LORA_STRENGTH = 1.25 # Fixed strength for fusion
# Trigger Words for the LoRA
STYLE_TRIGGER = "p1x3l4rt, pixel art"
# Default Negative Prompt
DEFAULT_NEGATIVE_PROMPT = "Ugly, artifacts, blurry, disformed, photo-realistic, photo, photography, realistic, low-quality, pixelart, pixel art, text."
# InstantID Assets
INSTANTID_REPO = "InstantX/InstantID"
# ControlNet Repos
CN_ZOE_REPO = "diffusers/controlnet-zoE-depth-sdxl-1.0"
CN_LINEART_REPO = "ShermanG/ControlNet-Standard-Lineart-for-SDXL"
# Preprocessor (Annotator) Repo
ANNOTATOR_REPO = "lllyasviel/Annotators"
# Captioning Model
CAPTIONER_REPO = "Salesforce/blip-image-captioning-base"
# InsightFace Model (HF Hub mirror)
ANTELOPEV2_REPO = "DIAMONIK7777/antelopev2"
ANTELOPEV2_ROOT = "." # Parent folder
ANTELOPEV2_NAME = "antelopev2"
# Gradio Parameters
CGF_SCALE = 1.5
STEPS_NUMBER = 12
IMG_STRENGTH = 0.8
DEPTH_STRENGTH = 0.8
EDGE_STRENGTH = 0.8
|