r3gm commited on
Commit
f376159
·
verified ·
1 Parent(s): fac052b

Upload 3 files

Browse files
Files changed (3) hide show
  1. app.py +0 -0
  2. constants.py +5 -10
  3. requirements.txt +1 -1
app.py CHANGED
The diff for this file is too large to render. See raw diff
 
constants.py CHANGED
@@ -7,12 +7,13 @@ from stablepy import (
7
  ALL_BUILTIN_UPSCALERS,
8
  IP_ADAPTERS_SD,
9
  IP_ADAPTERS_SDXL,
 
10
  )
11
 
12
  IS_ZERO_GPU = bool(os.getenv("SPACES_ZERO_GPU"))
13
 
14
  # - **Download Models**
15
- DOWNLOAD_MODEL = "https://huggingface.co/TechnoByte/MilkyWonderland/resolve/main/milkyWonderland_v40.safetensors"
16
 
17
  # - **Download VAEs**
18
  DOWNLOAD_VAE = "https://huggingface.co/fp16-guy/anything_kl-f8-anime2_vae-ft-mse-840000-ema-pruned_blessed_clearvae_fp16_cleaned/resolve/main/vae-ft-mse-840000-ema-pruned_fp16.safetensors?download=true"
@@ -321,15 +322,9 @@ DIFFUSERS_CONTROLNET_MODEL = [
321
  # "InstantX/FLUX.1-dev-Controlnet-Canny",
322
  ]
323
 
324
- PROMPT_W_OPTIONS = [
325
- ("Compel format: (word)weight", "Compel"),
326
- ("Classic format: (word:weight)", "Classic"),
327
- ("Classic-original format: (word:weight)", "Classic-original"),
328
- ("Classic-no_norm format: (word:weight)", "Classic-no_norm"),
329
- ("Classic-sd_embed format: (word:weight)", "Classic-sd_embed"),
330
- ("Classic-ignore", "Classic-ignore"),
331
- ("None", "None"),
332
- ]
333
 
334
  WARNING_MSG_VAE = (
335
  "Use the right VAE for your model to maintain image quality. The wrong"
 
7
  ALL_BUILTIN_UPSCALERS,
8
  IP_ADAPTERS_SD,
9
  IP_ADAPTERS_SDXL,
10
+ PROMPT_WEIGHT_OPTIONS_PRIORITY,
11
  )
12
 
13
  IS_ZERO_GPU = bool(os.getenv("SPACES_ZERO_GPU"))
14
 
15
  # - **Download Models**
16
+ DOWNLOAD_MODEL = "https://huggingface.co/zuv0/test/resolve/main/milkyWonderland_v40.safetensors"
17
 
18
  # - **Download VAEs**
19
  DOWNLOAD_VAE = "https://huggingface.co/fp16-guy/anything_kl-f8-anime2_vae-ft-mse-840000-ema-pruned_blessed_clearvae_fp16_cleaned/resolve/main/vae-ft-mse-840000-ema-pruned_fp16.safetensors?download=true"
 
322
  # "InstantX/FLUX.1-dev-Controlnet-Canny",
323
  ]
324
 
325
+ PROMPT_W_OPTIONS = [(pwf, pwf) for pwf in PROMPT_WEIGHT_OPTIONS_PRIORITY]
326
+ PROMPT_W_OPTIONS[0] = ("Classic format: (word:weight)", "Classic")
327
+ PROMPT_W_OPTIONS[1] = ("Compel format: (word)weight", "Compel")
 
 
 
 
 
 
328
 
329
  WARNING_MSG_VAE = (
330
  "Use the right VAE for your model to maintain image quality. The wrong"
requirements.txt CHANGED
@@ -1,4 +1,4 @@
1
- stablepy==0.6.4
2
  torch==2.5.1
3
  diffusers
4
  gdown
 
1
+ stablepy==0.6.5
2
  torch==2.5.1
3
  diffusers
4
  gdown