NikhilJoson commited on
Commit
bf2bb6f
·
verified ·
1 Parent(s): 6993038

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -64,10 +64,10 @@ def generate_image(category, img1, img2, img3, height, width, img_guidance_scale
64
  wears = predict_clothing(input_images[1:])
65
  if len(wears)==1:
66
  dress = wears[0]
67
- text = f"""A {category} wearing {dress}, with a completely white background. The {category} is in <img><|image_1|></img>. The {dress} is in <img><|image_2|></img>."""
68
  elif len(wears)==2:
69
  topwear, bottomwear = wears[0], wears[1]
70
- text = f"""A {category} wearing {topwear} and {bottomwear}, with a completely white background. The {category} is in <img><|image_1|></img>. The {topwear} is in <img><|image_2|></img>. The {bottomwear} is in <img><|image_3|></img>."""
71
  else:
72
  input_images = None
73
 
 
64
  wears = predict_clothing(input_images[1:])
65
  if len(wears)==1:
66
  dress = wears[0]
67
+ text = f"""The {category} in <img><|image_1|></img> wearing {dress}, with a completely white background. The {dress} is in <img><|image_2|></img>. Ensure realistic alignment, proportions, and texture adaptation to fit the person's body shape and pose. Maintain the person's original features, such as face, hairstyle, and accessories, without distortion. Blend the clothing naturally with proper lighting and shadows to ensure photorealism. Keep the background of the first image intact."""
68
  elif len(wears)==2:
69
  topwear, bottomwear = wears[0], wears[1]
70
+ text = f"""A {category} in <img><|image_1|></img> wearing {topwear} and {bottomwear}, with a completely white background. The {topwear} is in <img><|image_2|></img>. The {bottomwear} is in <img><|image_3|></img>. Ensure realistic alignment, proportions, and texture adaptation to fit the person's body shape and pose. Maintain the person's original features, such as face, hairstyle, and accessories, without distortion. Blend the clothing naturally with proper lighting and shadows to ensure photorealism. Keep the background of the first image intact."""
71
  else:
72
  input_images = None
73