HelloSun commited on
Commit
dc9d400
1 Parent(s): 46c0537

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,7 +19,7 @@ model_id = "OpenVINO/LCM_Dreamshaper_v7-int8-ov"
19
  #pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
20
  pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
21
 
22
- batch_size, num_images, height, width = 1, 1, 1024, 1024
23
  pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
24
 
25
  #不可用lora
@@ -104,7 +104,7 @@ with gr.Blocks(css=css) as demo:
104
  minimum=1,
105
  maximum=10,
106
  step=1,
107
- value=8,
108
  )
109
 
110
  gr.Examples(
 
19
  #pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
20
  pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
21
 
22
+ batch_size, num_images, height, width = 1, 1, 512, 512
23
  pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
24
 
25
  #不可用lora
 
104
  minimum=1,
105
  maximum=10,
106
  step=1,
107
+ value=4,
108
  )
109
 
110
  gr.Examples(