Benrise commited on
Commit
3d0e28a
·
1 Parent(s): 2835d45

Change categories

Browse files
Files changed (2) hide show
  1. app.py +5 -5
  2. test/output_mask.png +3 -0
app.py CHANGED
@@ -154,9 +154,9 @@ with gr.Blocks(theme=gr.themes.Soft(), css=".gradio-container") as demo:
154
  gr.Markdown("Загрузите фото человека и одежды для виртуальной примерки")
155
 
156
  clothing_classes = [
157
- "фон", "шляпа", "волосы", "сумка", "рюкзак", "верхняя одежда",
158
- "рубашка", "футболка", "брюки", "короткие штаны", "платье",
159
- "юбка", "носки", "обувь", "водолазка", "аксессуары", "руки", "ноги"
160
  ]
161
 
162
  with gr.Row():
@@ -166,7 +166,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=".gradio-container") as demo:
166
  clothing_label = gr.Dropdown(
167
  choices=[(f"{i}: {desc}", i) for i, desc in enumerate(clothing_classes)],
168
  label="Класс одежды для маски",
169
- value=7
170
  )
171
 
172
  outfit_prompt = gr.Textbox(label="Описание образа (опционально)", placeholder="Например: man in casual outfit")
@@ -176,7 +176,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=".gradio-container") as demo:
176
 
177
  gr.Examples(
178
  examples=[
179
- ["./test/person2.png", "./test/00008_00.jpg", "man in skirt", "black longsleeve", 7]
180
  ],
181
  inputs=[person_input, cloth_input, outfit_prompt, clothing_prompt, clothing_label],
182
  label="Примеры для быстрого тестирования"
 
154
  gr.Markdown("Загрузите фото человека и одежды для виртуальной примерки")
155
 
156
  clothing_classes = [
157
+ "фон", "шляпа", "волосы", "очки", "верхняя одежда", "юбка", "брюки", "платье",
158
+ "ремень", "левая обувь", "правая обувь", "лицо", "левая нога", "правая нога",
159
+ "левая рука", "правая рука", "сумка", "шарф"
160
  ]
161
 
162
  with gr.Row():
 
166
  clothing_label = gr.Dropdown(
167
  choices=[(f"{i}: {desc}", i) for i, desc in enumerate(clothing_classes)],
168
  label="Класс одежды для маски",
169
+ value=4
170
  )
171
 
172
  outfit_prompt = gr.Textbox(label="Описание образа (опционально)", placeholder="Например: man in casual outfit")
 
176
 
177
  gr.Examples(
178
  examples=[
179
+ ["./test/person2.png", "./test/00008_00.jpg", "man in skirt", "black longsleeve", 4]
180
  ],
181
  inputs=[person_input, cloth_input, outfit_prompt, clothing_prompt, clothing_label],
182
  label="Примеры для быстрого тестирования"
test/output_mask.png ADDED

Git LFS Details

  • SHA256: 56a4a2991f73a18ee05f5e3b0144ec944aaeff4c6e6fc4e5f74236147c02c6ca
  • Pointer size: 129 Bytes
  • Size of remote file: 2.81 kB