HelloSun commited on
Commit
39c626a
·
verified ·
1 Parent(s): cccff19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -15,14 +15,14 @@ model_id = "stabilityai/stable-diffusion-xl-base-1.0"
15
 
16
  #pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
17
  #pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
18
- pipeline = OVStableDiffusionXLPipeline.from_pretrained(model_id, compile=False, export=True)
19
 
20
  batch_size, num_images, height, width = 1, 1, 1024, 512
21
- pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
22
  #pipeline.load_textual_inversion("./badhandv4.pt", "badhandv4")
23
  #hiten1
24
  #pipeline.load_textual_inversion("./hiten1.pt", "hiten1")
25
- pipeline.compile()
26
 
27
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
28
  negative_prompt="easynegative,bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs, nsfw, nude, censored, "
 
15
 
16
  #pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False, safety_checker=safety_checker)
17
  #pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=False)
18
+ pipeline = OVStableDiffusionXLPipeline.from_pretrained(model_id)
19
 
20
  batch_size, num_images, height, width = 1, 1, 1024, 512
21
+ #pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
22
  #pipeline.load_textual_inversion("./badhandv4.pt", "badhandv4")
23
  #hiten1
24
  #pipeline.load_textual_inversion("./hiten1.pt", "hiten1")
25
+ #pipeline.compile()
26
 
27
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
28
  negative_prompt="easynegative,bad anatomy, bad hands, missing fingers, extra fingers, three hands, three legs, bad arms, missing legs, missing arms, poorly drawn face, bad face, fused face, cloned face, three crus, fused feet, fused thigh, extra crus, ugly fingers, horn, cartoon, cg, 3d, unreal, animate, amputation, disconnected limbs, nsfw, nude, censored, "