JoPmt commited on
Commit
4cdb669
1 Parent(s): a64b669

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from accelerate import Accelerator
6
  from diffusers import StableDiffusionXLPipeline, EulerDiscreteScheduler
7
  accelerator = Accelerator(cpu=True)
8
 
9
- pipe = StableDiffusionXLPipeline.from_single_file("https://huggingface.co/lllyasviel/fav_models/fav/realisticStockPhoto_v10.safetensors", torch_dtype=torch.bfloat16, use_safetensors=True, variant=None, safety_checker=False)
10
  pipe.load_lora_weights("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors", local_files_only="True")
11
  pipe.fuse_lora(fuse_unet=True,fuse_text_encoder=False)
12
  ##pipe = accelerator.prepare(pipe.unet.load_attn_procs("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))
 
6
  from diffusers import StableDiffusionXLPipeline, EulerDiscreteScheduler
7
  accelerator = Accelerator(cpu=True)
8
 
9
+ pipe = StableDiffusionXLPipeline.from_single_file("https://huggingface.co/lllyasviel/fav_models/fav/realisticStockPhoto_v10.safetensors", torch_dtype=torch.bfloat16, use_safetensors=True, variant=None, safety_checker=None)
10
  pipe.load_lora_weights("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors", local_files_only="True")
11
  pipe.fuse_lora(fuse_unet=True,fuse_text_encoder=False)
12
  ##pipe = accelerator.prepare(pipe.unet.load_attn_procs("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))