JoPmt commited on
Commit
8cfb060
1 Parent(s): 1b9fc96

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,9 +7,9 @@ from diffusers import StableDiffusionXLPipeline, EulerDiscreteScheduler
7
  accelerator = Accelerator(cpu=True)
8
 
9
  pipe = accelerator.prepare(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 = accelerator.prepare(pipe.load_lora_weights("./", local_files_only=False, repo_type="space", adapter_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))
11
  ##pipe = accelerator.prepare(pipe.fuse_lora())
12
- pipe = accelerator.prepare(pipe.unet.load_attn_procs("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))
13
  ##pipe.scheduler = accelerator.prepare(EulerDiscreteScheduler.from_config(pipe.scheduler.config))
14
  ##pipe.unet.to(memory_format=torch.channels_last)
15
  pipe.to("cpu")
 
7
  accelerator = Accelerator(cpu=True)
8
 
9
  pipe = accelerator.prepare(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 = accelerator.prepare(pipe.load_lora_weights("./", local_files_only=False, repo_type="space", adapter_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))
11
  ##pipe = accelerator.prepare(pipe.fuse_lora())
12
+ ##pipe = accelerator.prepare(pipe.unet.load_attn_procs("./", weight_name="SDXL_FILM_PHOTOGRAPHY_STYLE_BetaV0.4.safetensors"))
13
  ##pipe.scheduler = accelerator.prepare(EulerDiscreteScheduler.from_config(pipe.scheduler.config))
14
  ##pipe.unet.to(memory_format=torch.channels_last)
15
  pipe.to("cpu")