| | import os
|
| |
|
| | 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 = [
|
| | 'stabilityai/stable-diffusion-xl-base-1.0',
|
| | 'cagliostrolab/animagine-xl-3.1',
|
| | 'misri/epicrealismXL_v7FinalDestination',
|
| | 'misri/juggernautXL_juggernautX',
|
| | 'misri/zavychromaxl_v80',
|
| | 'SG161222/RealVisXL_V4.0',
|
| | 'misri/newrealityxlAllInOne_Newreality40',
|
| | 'eienmojiki/Anything-XL',
|
| | 'eienmojiki/Starry-XL-v5.2',
|
| | 'gsdf/CounterfeitXL',
|
| | 'kitty7779/ponyDiffusionV6XL',
|
| | 'John6666/ebara-mfcg-pony-mix-v12-sdxl',
|
| | 'John6666/t-ponynai3-v51-sdxl',
|
| | 'yodayo-ai/clandestine-xl-1.0',
|
| | 'yodayo-ai/kivotos-xl-2.0',
|
| | 'yodayo-ai/holodayo-xl-2.1',
|
| | 'digiplay/majicMIX_sombre_v2',
|
| | 'digiplay/majicMIX_realistic_v6',
|
| | 'digiplay/majicMIX_realistic_v7',
|
| | 'digiplay/DreamShaper_8',
|
| | 'digiplay/BeautifulArt_v1',
|
| | 'digiplay/DarkSushi2.5D_v1',
|
| | 'digiplay/darkphoenix3D_v1.1',
|
| | 'digiplay/BeenYouLiteL11_diffusers',
|
| | 'rubbrband/revAnimated_v2Rebirth',
|
| | 'youknownothing/cyberrealistic_v50',
|
| | 'votepurchase/counterfeitV30_v30',
|
| | 'Meina/MeinaMix_V11',
|
| | 'Meina/MeinaUnreal_V5',
|
| | 'Meina/MeinaPastel_V7',
|
| | 'rubbrband/realcartoon3d_v16',
|
| | 'rubbrband/realcartoonRealistic_v14',
|
| | 'KBlueLeaf/Kohaku-XL-Epsilon-rev2',
|
| | 'KBlueLeaf/Kohaku-XL-Epsilon-rev3',
|
| | 'KBlueLeaf/Kohaku-XL-Zeta',
|
| | 'kayfahaarukku/UrangDiffusion-1.2',
|
| | 'Eugeoter/artiwaifu-diffusion-1.0',
|
| | 'Raelina/Rae-Diffusion-XL-V2',
|
| | 'Raelina/Raemu-XL-V4',
|
| | ]
|
| |
|
| |
|
| | 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'
|
| | os.makedirs(directory_models, exist_ok=True)
|
| | directory_loras = 'loras'
|
| | os.makedirs(directory_loras, exist_ok=True)
|
| | directory_vaes = 'vaes'
|
| | os.makedirs(directory_vaes, exist_ok=True)
|
| | directory_embeds = 'embedings'
|
| | os.makedirs(directory_embeds, exist_ok=True)
|
| |
|
| | directory_embeds_sdxl = 'embedings_xl'
|
| | os.makedirs(directory_embeds_sdxl, exist_ok=True)
|
| | directory_embeds_positive_sdxl = 'embedings_xl/positive'
|
| | os.makedirs(directory_embeds_positive_sdxl, 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'
|
| |
|