Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,7 @@ def load_and_prepare_model(model_id):
|
|
113 |
#vae = AutoencoderKL.from_pretrained('cross-attention/asymmetric-autoencoder-kl-x-2',use_safetensors=False)
|
114 |
#vae = AutoencoderKL.from_single_file('https://huggingface.co/ford442/sdxl-vae-bf16/mySLR/myslrVAE_v10.safetensors')
|
115 |
#vaeX = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse",use_safetensors=True)
|
116 |
-
vaeX = AutoencoderKL.from_pretrained('ford442/Juggernaut-XI-v11-fp32',subfolder='vae') # ,use_safetensors=True FAILS
|
117 |
#vaeX = AutoencoderKL.from_pretrained('ford442/RealVisXL_V5.0_FP64',subfolder='vae').to(torch.bfloat16) # ,use_safetensors=True FAILS
|
118 |
#unetX = UNet2DConditionModel.from_pretrained('ford442/RealVisXL_V5.0_BF16',subfolder='unet').to(torch.bfloat16) # ,use_safetensors=True FAILS
|
119 |
# vae = AutoencoderKL.from_pretrained("BeastHF/MyBack_SDXL_Juggernaut_XL_VAE/MyBack_SDXL_Juggernaut_XL_VAE_V10(version_X).safetensors",safety_checker=None).to(torch.bfloat16)
|
@@ -162,10 +162,10 @@ def load_and_prepare_model(model_id):
|
|
162 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear",use_karras_sigmas=True, algorithm_type="dpmsolver++")
|
163 |
#pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
164 |
#pipe.scheduler = DPMSolverMultistepScheduler.from_pretrained('SG161222/RealVisXL_V5.0', subfolder='scheduler', algorithm_type='sde-dpmsolver++')
|
165 |
-
pipe.vae = vaeX.to(torch.bfloat16)
|
166 |
#pipe.unet = unetX
|
167 |
|
168 |
-
pipe.vae.do_resize=False
|
169 |
#pipe.vae.do_rescale=False
|
170 |
#pipe.vae.do_convert_rgb=True
|
171 |
|
@@ -243,10 +243,10 @@ def uploadNote():
|
|
243 |
f.write(f"SPACE SETUP: \n")
|
244 |
f.write(f"Use Model Dtype: no \n")
|
245 |
f.write(f"Model Scheduler: Euler_a custom before cuda \n")
|
246 |
-
f.write(f"Model VAE:
|
247 |
f.write(f"Model UNET: default ford442/RealVisXL_V5.0_BF16 \n")
|
248 |
f.write(f"Model HiDiffusion OFF \n")
|
249 |
-
f.write(f"Model do_resize
|
250 |
f.write(f"added torch to prereq and changed accellerate \n")
|
251 |
upload_to_ftp(filename)
|
252 |
|
|
|
113 |
#vae = AutoencoderKL.from_pretrained('cross-attention/asymmetric-autoencoder-kl-x-2',use_safetensors=False)
|
114 |
#vae = AutoencoderKL.from_single_file('https://huggingface.co/ford442/sdxl-vae-bf16/mySLR/myslrVAE_v10.safetensors')
|
115 |
#vaeX = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse",use_safetensors=True)
|
116 |
+
#vaeX = AutoencoderKL.from_pretrained('ford442/Juggernaut-XI-v11-fp32',subfolder='vae') # ,use_safetensors=True FAILS
|
117 |
#vaeX = AutoencoderKL.from_pretrained('ford442/RealVisXL_V5.0_FP64',subfolder='vae').to(torch.bfloat16) # ,use_safetensors=True FAILS
|
118 |
#unetX = UNet2DConditionModel.from_pretrained('ford442/RealVisXL_V5.0_BF16',subfolder='unet').to(torch.bfloat16) # ,use_safetensors=True FAILS
|
119 |
# vae = AutoencoderKL.from_pretrained("BeastHF/MyBack_SDXL_Juggernaut_XL_VAE/MyBack_SDXL_Juggernaut_XL_VAE_V10(version_X).safetensors",safety_checker=None).to(torch.bfloat16)
|
|
|
162 |
#sched = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear",use_karras_sigmas=True, algorithm_type="dpmsolver++")
|
163 |
#pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config, beta_schedule="scaled_linear", beta_start=0.00085, beta_end=0.012, steps_offset=1)
|
164 |
#pipe.scheduler = DPMSolverMultistepScheduler.from_pretrained('SG161222/RealVisXL_V5.0', subfolder='scheduler', algorithm_type='sde-dpmsolver++')
|
165 |
+
#pipe.vae = vaeX.to(torch.bfloat16)
|
166 |
#pipe.unet = unetX
|
167 |
|
168 |
+
#pipe.vae.do_resize=False
|
169 |
#pipe.vae.do_rescale=False
|
170 |
#pipe.vae.do_convert_rgb=True
|
171 |
|
|
|
243 |
f.write(f"SPACE SETUP: \n")
|
244 |
f.write(f"Use Model Dtype: no \n")
|
245 |
f.write(f"Model Scheduler: Euler_a custom before cuda \n")
|
246 |
+
f.write(f"Model VAE: default ford442/RealVisXL_V5.0_BF16 to bfloat before cuda then attn_proc \n")
|
247 |
f.write(f"Model UNET: default ford442/RealVisXL_V5.0_BF16 \n")
|
248 |
f.write(f"Model HiDiffusion OFF \n")
|
249 |
+
f.write(f"Model do_resize ON \n")
|
250 |
f.write(f"added torch to prereq and changed accellerate \n")
|
251 |
upload_to_ftp(filename)
|
252 |
|