HelloSun commited on
Commit
ca2b570
·
verified ·
1 Parent(s): 2130937

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -18,13 +18,13 @@ pipeline = OVLatentConsistencyModelPipeline.from_pretrained(model_id, compile=Fa
18
  batch_size, num_images, height, width = 1, 1, 1024, 512
19
  pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
20
  #badhandv4
21
- pipeline.load_textual_inversion("./badhandv4.pt", "badhandv4")
22
  #hiten1
23
- pipeline.load_textual_inversion("./hiten1.pt", "hiten1")
24
  pipeline.compile()
25
 
26
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
27
- 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, "
28
 
29
  def infer(prompt, num_inference_steps):
30
 
 
18
  batch_size, num_images, height, width = 1, 1, 1024, 512
19
  pipeline.reshape(batch_size=batch_size, height=height, width=width, num_images_per_prompt=num_images)
20
  #badhandv4
21
+ #pipeline.load_textual_inversion("./badhandv4.pt", "badhandv4")
22
  #hiten1
23
+ #pipeline.load_textual_inversion("./hiten1.pt", "hiten1")
24
  pipeline.compile()
25
 
26
  #TypeError: LatentConsistencyPipelineMixin.__call__() got an unexpected keyword argument 'negative_prompt'
27
+ #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, "
28
 
29
  def infer(prompt, num_inference_steps):
30