primerz commited on
Commit
e456dc4
·
verified ·
1 Parent(s): 1ab3dd2

Update config.py

Browse files
Files changed (1) hide show
  1. config.py +14 -8
config.py CHANGED
@@ -5,23 +5,29 @@ class Config:
5
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
6
  DTYPE = torch.float16 if DEVICE == "cuda" else torch.float32
7
 
8
- # Base Model & LoRA
9
  REPO_ID = "primerz/pixagram"
10
  CHECKPOINT_FILENAME = "horizon.safetensors"
11
  LORA_FILENAME = "retroart.safetensors"
12
 
13
- # Trigger Words
14
  STYLE_TRIGGER = "p1x3l4rt, pixel art"
15
 
16
  # InstantID Assets
17
  INSTANTID_REPO = "InstantX/InstantID"
18
- FACE_ADAPTER_REPO = "InstantX/InstantID"
19
- FACE_ADAPTER_FILENAME = "ip-adapter.bin" # Usually auto-loaded by diffusers helper
20
 
21
  # ControlNet Repos
22
  CN_ZOE_REPO = "diffusers/controlnet-zoe-depth-sdxl-1.0"
23
- CN_LINEART_REPO = "xinsir/controlnet-lineart-sdxl-1.0" # High quality lineart
24
- CN_INSTANTID_REPO = "InstantX/InstantID" # Contains the ControlNet part
 
 
 
 
 
25
 
26
- # Vision Models (for InsightFace)
27
- ANTELOPEV2_PATH = "./models/antelopev2" # You might need to download this manually in utils
 
 
 
5
  DEVICE = "cuda" if torch.cuda.is_available() else "cpu"
6
  DTYPE = torch.float16 if DEVICE == "cuda" else torch.float32
7
 
8
+ # Base Model & LoRA (from primerz/pixagram)
9
  REPO_ID = "primerz/pixagram"
10
  CHECKPOINT_FILENAME = "horizon.safetensors"
11
  LORA_FILENAME = "retroart.safetensors"
12
 
13
+ # Trigger Words for the LoRA
14
  STYLE_TRIGGER = "p1x3l4rt, pixel art"
15
 
16
  # InstantID Assets
17
  INSTANTID_REPO = "InstantX/InstantID"
18
+ CN_INSTANTID_REPO = "InstantX/InstantID" # Contains the ControlNet part
 
19
 
20
  # ControlNet Repos
21
  CN_ZOE_REPO = "diffusers/controlnet-zoe-depth-sdxl-1.0"
22
+ CN_LINEART_REPO = "xinsir/controlnet-lineart-sdxl-1.0"
23
+
24
+ # Preprocessor (Annotator) Repo
25
+ ANNOTATOR_REPO = "lllyasviel/Annotators"
26
+
27
+ # Captioning Model
28
+ CAPTIONER_REPO = "Salesforce/blip-image-captioning-base"
29
 
30
+ # InsightFace Model (HF Hub mirror)
31
+ ANTELOPEV2_REPO = "casperhansen/antelopev2"
32
+ ANTELOPEV2_ROOT = "./models" # Parent folder
33
+ ANTELOPEV2_NAME = "antelopev2"