update scale
Browse files
app.py
CHANGED
|
@@ -597,8 +597,8 @@ def _resolve_content_style_scales(style_present: bool, prompt_present: bool) ->
|
|
| 597 |
if not style_present:
|
| 598 |
return 0.0, 0.0
|
| 599 |
if not prompt_present:
|
| 600 |
-
return 0.
|
| 601 |
-
return 0.
|
| 602 |
|
| 603 |
|
| 604 |
def run_one(paths: Paths, prompt: str, steps: int = DEFAULT_STEPS, category: str = "Dress"):
|
|
@@ -785,7 +785,8 @@ def infer_web(person_fp, sketch_fp, style_fp, prompt, steps, seed, category):
|
|
| 785 |
|
| 786 |
|
| 787 |
with gr.Blocks(title="VISTA Demo (HF Spaces)") as demo:
|
| 788 |
-
gr.Markdown("첫
|
|
|
|
| 789 |
|
| 790 |
category_toggle = gr.Radio(
|
| 791 |
choices=["Dress", "Upper-body", "Lower-body"],
|
|
@@ -829,7 +830,10 @@ with gr.Blocks(title="VISTA Demo (HF Spaces)") as demo:
|
|
| 829 |
out_img = gr.Image(label="Output", type="pil")
|
| 830 |
|
| 831 |
with gr.Accordion("Sketch / Guide (optional)", open=False):
|
| 832 |
-
sketch_in = gr.Image(
|
|
|
|
|
|
|
|
|
|
| 833 |
if sketch_examples:
|
| 834 |
gr.Markdown("#### Examples")
|
| 835 |
gr.Examples(
|
|
|
|
| 597 |
if not style_present:
|
| 598 |
return 0.0, 0.0
|
| 599 |
if not prompt_present:
|
| 600 |
+
return 0.35, 0.65
|
| 601 |
+
return 0.3, 0.5
|
| 602 |
|
| 603 |
|
| 604 |
def run_one(paths: Paths, prompt: str, steps: int = DEFAULT_STEPS, category: str = "Dress"):
|
|
|
|
| 785 |
|
| 786 |
|
| 787 |
with gr.Blocks(title="VISTA Demo (HF Spaces)") as demo:
|
| 788 |
+
gr.Markdown("첫 실행은 모델 로딩 때문에 시간이 오래 걸릴 수 있습니다.")
|
| 789 |
+
gr.Markdown("category랑 try-on 하려는 옷 종류를 꼭 맞춰주세요.")
|
| 790 |
|
| 791 |
category_toggle = gr.Radio(
|
| 792 |
choices=["Dress", "Upper-body", "Lower-body"],
|
|
|
|
| 830 |
out_img = gr.Image(label="Output", type="pil")
|
| 831 |
|
| 832 |
with gr.Accordion("Sketch / Guide (optional)", open=False):
|
| 833 |
+
sketch_in = gr.Image(
|
| 834 |
+
label="Sketch / Guide (person과 같은 번호로 매칭하세요: person 1 ↔ sketch 1). 스케치는 person 인체와 정렬되어야 합니다.",
|
| 835 |
+
type="filepath",
|
| 836 |
+
)
|
| 837 |
if sketch_examples:
|
| 838 |
gr.Markdown("#### Examples")
|
| 839 |
gr.Examples(
|