LogicGoInfotechSpaces commited on
Commit
e89dadb
·
1 Parent(s): 600df15

Fix beard/mustache editing - clarify that negative values add facial hair

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -107,9 +107,9 @@ ATTRIBUTE_MAP: Dict[str, Tuple[str, Tuple[float, float]]] = {
107
 
108
  # Facial hair
109
  # trimmed_beard removes beard for positive power; use negative to add
110
- "Beard": ("trimmed_beard", (-30.0, 30.0)),
111
  # goatee removes goatee for positive; negative tends to add
112
- "Mustache/Goatee": ("goatee", (-7.0, 7.0)),
113
 
114
  # Accessories & cosmetics
115
  "Glasses": ("fs_glasses", (-20.0, 30.0)),
@@ -177,7 +177,12 @@ def build_ui() -> gr.Blocks:
177
  gr.Markdown("""
178
  **StyleFeatureEditor – Facial Attribute Editing**
179
  Upload a face and apply edits like smile, age, beard, hair style/color, glasses, and makeup.
180
- Tip: For Beard/Goatee, negative strength tends to add facial hair.
 
 
 
 
 
181
  """)
182
 
183
  with gr.Row():
 
107
 
108
  # Facial hair
109
  # trimmed_beard removes beard for positive power; use negative to add
110
+ "Beard": ("trimmed_beard", (-30.0, 30.0)), # Negative values ADD beard
111
  # goatee removes goatee for positive; negative tends to add
112
+ "Mustache/Goatee": ("goatee", (-7.0, 7.0)), # Negative values ADD goatee
113
 
114
  # Accessories & cosmetics
115
  "Glasses": ("fs_glasses", (-20.0, 30.0)),
 
177
  gr.Markdown("""
178
  **StyleFeatureEditor – Facial Attribute Editing**
179
  Upload a face and apply edits like smile, age, beard, hair style/color, glasses, and makeup.
180
+
181
+ **Tips:**
182
+ - **Beard/Goatee**: Use **negative values** to ADD facial hair, positive values to remove
183
+ - **Smile**: Positive values add smile, negative values remove smile
184
+ - **Age**: Positive values make older, negative values make younger
185
+ - **Glasses**: Positive values add glasses, negative values remove glasses
186
  """)
187
 
188
  with gr.Row():