change CLIP links to allow anonymous downloading

This commit is contained in:
AUTOMATIC1111 2024-06-16 14:31:43 +03:00
parent 06d0a5ab4d
commit 58dc35a64a
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ from modules.models.sd3.sd3_impls import BaseModel, SDVAE, SD3LatentFormat
from modules import shared, modelloader, devices from modules import shared, modelloader, devices
CLIPG_URL = "https://huggingface.co/stabilityai/stable-diffusion-3-medium/resolve/main/text_encoders/clip_g.safetensors" CLIPG_URL = "https://huggingface.co/AUTOMATIC/stable-diffusion-3-medium-text-encoders/resolve/main/clip_g.safetensors"
CLIPG_CONFIG = { CLIPG_CONFIG = {
"hidden_act": "gelu", "hidden_act": "gelu",
"hidden_size": 1280, "hidden_size": 1280,
@ -20,7 +20,7 @@ CLIPG_CONFIG = {
"num_hidden_layers": 32, "num_hidden_layers": 32,
} }
CLIPL_URL = "https://huggingface.co/stabilityai/stable-diffusion-3-medium/resolve/main/text_encoders/clip_l.safetensors" CLIPL_URL = "https://huggingface.co/AUTOMATIC/stable-diffusion-3-medium-text-encoders/resolve/main/clip_l.safetensors"
CLIPL_CONFIG = { CLIPL_CONFIG = {
"hidden_act": "quick_gelu", "hidden_act": "quick_gelu",
"hidden_size": 768, "hidden_size": 768,
@ -29,7 +29,7 @@ CLIPL_CONFIG = {
"num_hidden_layers": 12, "num_hidden_layers": 12,
} }
T5_URL = "https://huggingface.co/stabilityai/stable-diffusion-3-medium/resolve/main/text_encoders/t5xxl_fp16.safetensors" T5_URL = "https://huggingface.co/AUTOMATIC/stable-diffusion-3-medium-text-encoders/resolve/main/t5xxl_fp16.safetensors"
T5_CONFIG = { T5_CONFIG = {
"d_ff": 10240, "d_ff": 10240,
"d_model": 4096, "d_model": 4096,