patrickligardes commited on
Commit
66d6ff3
β€’
1 Parent(s): 8b67a1c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -182,8 +182,8 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
182
  # Extract the images
183
  with torch.cuda.amp.autocast():
184
  with torch.no_grad():
185
- prompt = "model is wearing " + garment_des + "Keep hands same, dont change their position"
186
- negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, hands position"
187
  with torch.inference_mode():
188
  (
189
  prompt_embeds,
@@ -197,8 +197,8 @@ def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_ste
197
  negative_prompt=negative_prompt,
198
  )
199
 
200
- prompt = "a photo of " + garment_des + "Keep hands same, dont change their position"
201
- negative_prompt = "monochrome, lowres, bad anatomy, worst quality, low quality, hands position"
202
  if not isinstance(prompt, List):
203
  prompt = [prompt] * 1
204
  if not isinstance(negative_prompt, List):
 
182
  # Extract the images
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"
187
  with torch.inference_mode():
188
  (
189
  prompt_embeds,
 
197
  negative_prompt=negative_prompt,
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"
202
  if not isinstance(prompt, List):
203
  prompt = [prompt] * 1
204
  if not isinstance(negative_prompt, List):