patrickligardes commited on
Commit
55b8b56
β€’
1 Parent(s): f17f040

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -183,7 +183,7 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
183
  with torch.cuda.amp.autocast():
184
  with torch.no_grad():
185
  prompt = "model is wearing " + garment_des
186
- negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, contortionist, amputee, polydactyly, deformed, distorted, misshapen, malformed, abnormal, mutant, defaced, shapeless, missing arms, three feet, bad face, extra fingers, fused crus, ugly fingers, three hands, fused face, extra eyes, bad hands, worst thigh, fused thigh, extra thigh, long fingers, three legs, missing fingers, cloned face, disconnected limbs, bad anatomy, huge eyes, three crus, worst face, amputation, 2girl, missing legs, poorly drawn face, horn, realistic photo, fused feet, worst feet, three thigh, extra crus"
187
  with torch.inference_mode():
188
  (
189
  prompt_embeds,
@@ -198,7 +198,7 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
198
  )
199
 
200
  prompt = "a photo of " + garment_des
201
- negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, contortionist, amputee, polydactyly, deformed, distorted, misshapen, malformed, abnormal, mutant, defaced, shapeless, missing arms, three feet, bad face, extra fingers, fused crus, ugly fingers, three hands, fused face, extra eyes, bad hands, worst thigh, fused thigh, extra thigh, long fingers, three legs, missing fingers, cloned face, disconnected limbs, bad anatomy, huge eyes, three crus, worst face, amputation, 2girl, missing legs, poorly drawn face, horn, realistic photo, fused feet, worst feet, three thigh, extra crus"
202
  if not isinstance(prompt, List):
203
  prompt = [prompt] * 1
204
  if not isinstance(negative_prompt, List):
 
183
  with torch.cuda.amp.autocast():
184
  with torch.no_grad():
185
  prompt = "model is wearing " + garment_des
186
+ negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, contortionist, amputee, polydactyly, deformed, distorted, misshapen, malformed, abnormal, mutant, defaced, shapeless, unreal, missing arms, three hands, bad face, extra fingers, cartoon, fused face, cg, ugly fingers, three legs, bad hands, fused feet, worst face, extra eyes, long fingers, three feet, missing legs, cloned face, worst feet, extra crus, huge eyes, fused crus, three thigh, bad anatomy, disconnected limbs, animate, 3d, worst thigh, extra thigh, fused thigh, missing fingers, amputation, poorly drawn face, three crus, horn, 2girl, bad arms"
187
  with torch.inference_mode():
188
  (
189
  prompt_embeds,
 
198
  )
199
 
200
  prompt = "a photo of " + garment_des
201
+ negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, contortionist, amputee, polydactyly, deformed, distorted, misshapen, malformed, abnormal, mutant, defaced, shapeless, unreal, missing arms, three hands, bad face, extra fingers, cartoon, fused face, cg, ugly fingers, three legs, bad hands, fused feet, worst face, extra eyes, long fingers, three feet, missing legs, cloned face, worst feet, extra crus, huge eyes, fused crus, three thigh, bad anatomy, disconnected limbs, animate, 3d, worst thigh, extra thigh, fused thigh, missing fingers, amputation, poorly drawn face, three crus, horn, 2girl, bad arms"
202
  if not isinstance(prompt, List):
203
  prompt = [prompt] * 1
204
  if not isinstance(negative_prompt, List):