Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ def apply_style(style_name: str, positive: str, negative: str = "") -> Tuple[str
|
|
107 |
def load_and_prepare_model():
|
108 |
#vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None)
|
109 |
vaeX = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae", safety_checker=None, use_safetensors=False, low_cpu_mem_usage=False, torch_dtype=torch.float32, token=True) #.to(device).to(torch.bfloat16) #.to(device=device, dtype=torch.bfloat16)
|
110 |
-
sched = EulerAncestralDiscreteScheduler.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1,use_karras_sigmas=False)
|
111 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
112 |
#'ford442/RealVisXL_V5.0_BF16',
|
113 |
#'ford442/Juggernaut-XI-v11-fp32',
|
|
|
107 |
def load_and_prepare_model():
|
108 |
#vae = AutoencoderKL.from_pretrained("ford442/sdxl-vae-bf16", safety_checker=None)
|
109 |
vaeX = AutoencoderKL.from_pretrained("stabilityai/sdxl-vae", safety_checker=None, use_safetensors=False, low_cpu_mem_usage=False, torch_dtype=torch.float32, token=True) #.to(device).to(torch.bfloat16) #.to(device=device, dtype=torch.bfloat16)
|
110 |
+
#sched = EulerAncestralDiscreteScheduler.from_pretrained('ford442/RealVisXL_V5.0_BF16', subfolder='scheduler',beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1,use_karras_sigmas=False)
|
111 |
pipe = StableDiffusionXLPipeline.from_pretrained(
|
112 |
#'ford442/RealVisXL_V5.0_BF16',
|
113 |
#'ford442/Juggernaut-XI-v11-fp32',
|