Update app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,7 @@ vaeX=AutoencoderKL.from_pretrained("ford442/stable-diffusion-3.5-large-fp32", us
|
|
66 |
pipe = StableDiffusion3Pipeline.from_pretrained(
|
67 |
#"stabilityai # stable-diffusion-3.5-large",
|
68 |
"ford442/stable-diffusion-3.5-large-bf16",
|
|
|
69 |
#vae=AutoencoderKL.from_pretrained("ford442/stable-diffusion-3.5-large-fp32", use_safetensors=True, subfolder='vae',token=True),
|
70 |
#scheduler = FlowMatchHeunDiscreteScheduler.from_pretrained('ford442/stable-diffusion-3.5-large-bf16', subfolder='scheduler',token=True),
|
71 |
# text_encoder=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder', token=True),
|
@@ -82,7 +83,7 @@ pipe.load_lora_weights("ford442/sdxl-vae-bf16", weight_name="LoRA/UltraReal.safe
|
|
82 |
|
83 |
pipe.to(device=device, dtype=torch.bfloat16)
|
84 |
#pipe.to(device)
|
85 |
-
pipe.vae=vaeX
|
86 |
upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device('cpu'))
|
87 |
|
88 |
MAX_SEED = np.iinfo(np.int32).max
|
|
|
66 |
pipe = StableDiffusion3Pipeline.from_pretrained(
|
67 |
#"stabilityai # stable-diffusion-3.5-large",
|
68 |
"ford442/stable-diffusion-3.5-large-bf16",
|
69 |
+
vae=None,
|
70 |
#vae=AutoencoderKL.from_pretrained("ford442/stable-diffusion-3.5-large-fp32", use_safetensors=True, subfolder='vae',token=True),
|
71 |
#scheduler = FlowMatchHeunDiscreteScheduler.from_pretrained('ford442/stable-diffusion-3.5-large-bf16', subfolder='scheduler',token=True),
|
72 |
# text_encoder=CLIPTextModelWithProjection.from_pretrained("ford442/stable-diffusion-3.5-large-bf16", subfolder='text_encoder', token=True),
|
|
|
83 |
|
84 |
pipe.to(device=device, dtype=torch.bfloat16)
|
85 |
#pipe.to(device)
|
86 |
+
#pipe.vae=vaeX.to('cpu')
|
87 |
upscaler_2 = UpscaleWithModel.from_pretrained("Kim2091/ClearRealityV1").to(torch.device('cpu'))
|
88 |
|
89 |
MAX_SEED = np.iinfo(np.int32).max
|