Change categories
Browse files- app.py +5 -5
- 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=
|
| 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",
|
| 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
|