|
import os
|
|
from constants import LOAD_DIFFUSERS_FORMAT_MODEL as LOAD_DIFFUSERS_FORMAT_MODEL_DC
|
|
CIVITAI_API_KEY = os.environ.get("CIVITAI_API_KEY")
|
|
HF_TOKEN = os.environ.get("HF_TOKEN")
|
|
HF_READ_TOKEN = os.environ.get('HF_READ_TOKEN')
|
|
|
|
|
|
LOAD_DIFFUSERS_FORMAT_MODEL = [
|
|
'cagliostrolab/animagine-xl-3.1',
|
|
'Laxhar/noobai-XL-1.0',
|
|
'KBlueLeaf/Kohaku-XL-Epsilon-rev2',
|
|
'KBlueLeaf/Kohaku-XL-Epsilon-rev3',
|
|
'KBlueLeaf/Kohaku-XL-Zeta',
|
|
'kkayfahaarukku/UrangDiffusion-2.0',
|
|
'kayfahaarukku/irAsu-1.0',
|
|
'Eugeoter/artiwaifu-diffusion-2.0',
|
|
'comin/IterComp',
|
|
'OnomaAIResearch/Illustrious-xl-early-release-v0',
|
|
'Raelina/Rae-Diffusion-XL-V2',
|
|
'Raelina/Raemu-XL-V4',
|
|
'Raelina/Raehoshi-illust-XL',
|
|
'Raelina/Raehoshi-illust-xl-2',
|
|
'Raelina/Raehoshi-Illust-XL-2.1',
|
|
"camenduru/FLUX.1-dev-diffusers",
|
|
"black-forest-labs/FLUX.1-schnell",
|
|
"sayakpaul/FLUX.1-merged",
|
|
"ostris/OpenFLUX.1",
|
|
"multimodalart/FLUX.1-dev2pro-full",
|
|
"Raelina/Raemu-Flux",
|
|
]
|
|
LOAD_DIFFUSERS_FORMAT_MODEL = LOAD_DIFFUSERS_FORMAT_MODEL + LOAD_DIFFUSERS_FORMAT_MODEL_DC
|
|
|
|
DIFFUSERS_FORMAT_LORAS = [
|
|
"nerijs/animation2k-flux",
|
|
"XLabs-AI/flux-RealismLora",
|
|
"Shakker-Labs/FLUX.1-dev-LoRA-Logo-Design",
|
|
]
|
|
|
|
|
|
HF_MODEL_USER_LIKES = ["votepurchase"]
|
|
HF_MODEL_USER_EX = ["John6666"]
|
|
|
|
|
|
DOWNLOAD_MODEL_LIST = [
|
|
]
|
|
|
|
|
|
DOWNLOAD_VAE_LIST = [
|
|
'https://huggingface.co/madebyollin/sdxl-vae-fp16-fix/resolve/main/sdxl.vae.safetensors?download=true',
|
|
'https://huggingface.co/nubby/blessed-sdxl-vae-fp16-fix/resolve/main/sdxl_vae-fp16fix-c-1.1-b-0.5.safetensors?download=true',
|
|
'https://huggingface.co/nubby/blessed-sdxl-vae-fp16-fix/resolve/main/sdxl_vae-fp16fix-blessed.safetensors?download=true',
|
|
"https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.ckpt",
|
|
"https://huggingface.co/stabilityai/sd-vae-ft-ema-original/resolve/main/vae-ft-ema-560000-ema-pruned.ckpt",
|
|
]
|
|
|
|
|
|
DOWNLOAD_LORA_LIST = [
|
|
]
|
|
|
|
|
|
DOWNLOAD_EMBEDS = [
|
|
'https://huggingface.co/datasets/Nerfgun3/bad_prompt/blob/main/bad_prompt_version2.pt',
|
|
'https://huggingface.co/embed/negative/resolve/main/EasyNegativeV2.safetensors',
|
|
'https://huggingface.co/embed/negative/resolve/main/bad-hands-5.pt',
|
|
]
|
|
|
|
DIRECTORY_MODELS = 'models'
|
|
DIRECTORY_LORAS = 'loras'
|
|
DIRECTORY_VAES = 'vaes'
|
|
DIRECTORY_EMBEDS = 'embedings'
|
|
DIRECTORY_EMBEDS_SDXL = 'embedings_xl'
|
|
DIRECTORY_EMBEDS_POSITIVE_SDXL = 'embedings_xl/positive'
|
|
|
|
directories = [DIRECTORY_MODELS, DIRECTORY_LORAS, DIRECTORY_VAES, DIRECTORY_EMBEDS, DIRECTORY_EMBEDS_SDXL, DIRECTORY_EMBEDS_POSITIVE_SDXL]
|
|
for directory in directories:
|
|
os.makedirs(directory, exist_ok=True)
|
|
|
|
HF_LORA_PRIVATE_REPOS1 = ['John6666/loratest1', 'John6666/loratest3', 'John6666/loratest4', 'John6666/loratest6']
|
|
HF_LORA_PRIVATE_REPOS2 = ['John6666/loratest10', 'John6666/loratest11','John6666/loratest']
|
|
HF_LORA_PRIVATE_REPOS = HF_LORA_PRIVATE_REPOS1 + HF_LORA_PRIVATE_REPOS2
|
|
HF_LORA_ESSENTIAL_PRIVATE_REPO = 'John6666/loratest1'
|
|
HF_VAE_PRIVATE_REPO = 'John6666/vaetest'
|
|
HF_SDXL_EMBEDS_NEGATIVE_PRIVATE_REPO = 'John6666/embeddingstest'
|
|
HF_SDXL_EMBEDS_POSITIVE_PRIVATE_REPO = 'John6666/embeddingspositivetest'
|
|
|