Tech-Meld commited on
Commit
10b626b
1 Parent(s): a0ff319

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -8,15 +8,15 @@ model_id = "stabilityai/stable-diffusion-xl-base-1.0"
8
  pipe = DiffusionPipeline.from_pretrained(model_id)
9
 
10
  # Setting the scheduler
11
- pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
12
 
13
  # Loading LoRA weights
14
  pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
15
 
16
- # Converting the model to OpenVINO format
17
  pipeline = OVStableDiffusionXLPipeline.from_pretrained(
18
- pipe,
19
- export=True
20
  )
21
 
22
  def generate_images(prompt, batch_size, num_inference_steps, guidance_scale):
 
8
  pipe = DiffusionPipeline.from_pretrained(model_id)
9
 
10
  # Setting the scheduler
11
+ pipe.scheduler = LCMScheduler.from_config(pipe.scheduler.config)
12
 
13
  # Loading LoRA weights
14
  pipe.load_lora_weights("latent-consistency/lcm-lora-sdxl")
15
 
16
+ # Convert the model to OpenVINO format
17
  pipeline = OVStableDiffusionXLPipeline.from_pretrained(
18
+ model_id,
19
+ export=True
20
  )
21
 
22
  def generate_images(prompt, batch_size, num_inference_steps, guidance_scale):