Spaces:
Runtime error
Runtime error
fix
Browse files36 unmodified lines373839404142434445464736 unmodified linesmodel.enable_vae_slicing()except AttributeError:print("enable_vae_slicing is not supported.")if device == 'cuda':try:model.enable_xformers_memory_efficient_attention()except AttributeError:print("enable_xformers_memory_efficient_attention is not supported.")controlnet = ControlNetModel.from_pretrained("diffusers/controlnet-depth-sdxl-1.0", torch_dtype=torch_dtype)vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch_dtype)36 unmodified lines373839404142434445464736 unmodified linesmodel.enable_vae_slicing()except AttributeError:print("enable_vae_slicing is not supported.")# if device == 'cuda':# try:# model.enable_xformers_memory_efficient_attention()# except AttributeError:# print("enable_xformers_memory_efficient_attention is not supported.")controlnet = ControlNetModel.from_pretrained("diffusers/controlnet-depth-sdxl-1.0", torch_dtype=torch_dtype)vae = AutoencoderKL.from_pretrained("madebyollin/sdxl-vae-fp16-fix", torch_dtype=torch_dtype)
app.py+5-5