Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ pipe = StableDiffusion3Pipeline.from_single_file(
|
|
81 |
"https://huggingface.co/1inkus/sd35-large-UltraReal-bf16-DDUF/blob/main/sd3-bf16-large.dduf",
|
82 |
#tokenizer_3=T5TokenizerFast.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", add_prefix_space=False, use_fast=True, subfolder="tokenizer_3"),
|
83 |
use_safetensors=True,
|
84 |
-
)
|
85 |
|
86 |
### pipe = StableDiffusion3Pipeline.from_pretrained(
|
87 |
#"stabilityai # stable-diffusion-3.5-large",
|
@@ -107,9 +107,9 @@ pipe = StableDiffusion3Pipeline.from_single_file(
|
|
107 |
#text_encoder_2=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder_2',token=True).to(torch.device("cuda:0")) #, dtype=torch.bfloat16)
|
108 |
#text_encoder_3=T5EncoderModel.from_pretrained("ford442/stable-diffusion-3.5-large-fp32", subfolder='text_encoder_3',token=True).to(torch.device("cuda:0")) #, dtype=torch.bfloat16)
|
109 |
|
110 |
-
pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/UltraReal.safetensors")
|
111 |
|
112 |
-
pipe.to(device=device) #, dtype=torch.bfloat16)
|
113 |
#pipe.to(device)
|
114 |
#pipe.vae=vaeX.to('cpu')
|
115 |
upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device('cpu'))
|
|
|
81 |
"https://huggingface.co/1inkus/sd35-large-UltraReal-bf16-DDUF/blob/main/sd3-bf16-large.dduf",
|
82 |
#tokenizer_3=T5TokenizerFast.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", add_prefix_space=False, use_fast=True, subfolder="tokenizer_3"),
|
83 |
use_safetensors=True,
|
84 |
+
).to(device=device)
|
85 |
|
86 |
### pipe = StableDiffusion3Pipeline.from_pretrained(
|
87 |
#"stabilityai # stable-diffusion-3.5-large",
|
|
|
107 |
#text_encoder_2=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder_2',token=True).to(torch.device("cuda:0")) #, dtype=torch.bfloat16)
|
108 |
#text_encoder_3=T5EncoderModel.from_pretrained("ford442/stable-diffusion-3.5-large-fp32", subfolder='text_encoder_3',token=True).to(torch.device("cuda:0")) #, dtype=torch.bfloat16)
|
109 |
|
110 |
+
#pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/UltraReal.safetensors")
|
111 |
|
112 |
+
#pipe.to(device=device) #, dtype=torch.bfloat16)
|
113 |
#pipe.to(device)
|
114 |
#pipe.vae=vaeX.to('cpu')
|
115 |
upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device('cpu'))
|