File size: 1,453 Bytes
1d8c151
fdb19bf
 
 
2a44f07
fdb19bf
 
3885620
 
8444fe7
3885620
8444fe7
fdb19bf
e456dc4
8444fe7
fdb19bf
3885620
c13b41b
46b1a94
8444fe7
 
 
f18b716
8d98c0c
a882f77
f18b716
e456dc4
 
 
 
 
fdb19bf
8444fe7
 
 
 
 
8d98c0c
22e4131
78f770f
 
8444fe7
 
 
 
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
45
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.0 # Fixed strength for fusion
    
    # Trigger Words for the LoRA
    STYLE_TRIGGER = "HD pixel art artwork and high quality illustration in retroart style of "
    
    # Default Negative Prompt
    DEFAULT_NEGATIVE_PROMPT = "Ugly, artifacts, blurry, disformed, photo-realistic, photo, photography, realistic, low-quality, 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.2
    STEPS_NUMBER = 10
    IMG_STRENGTH = 0.65
    FACE_STRENGTH = 0.75
    DEPTH_STRENGTH = 0.75
    EDGE_STRENGTH = 0.75
    CLIP_SKIP = 2