Spaces:
Running
on
Zero
Running
on
Zero
🐛 Fix: ensure DeepFashion2 model is downloaded before loading
Browse files
app.py
CHANGED
|
@@ -88,23 +88,23 @@ with gr.Blocks() as demo:
|
|
| 88 |
|
| 89 |
gr.Markdown("### Step 1: Headshot Refinement (LoRA)")
|
| 90 |
with gr.Row():
|
| 91 |
-
prompt_1 = gr.Textbox(label="Headshot Prompt", value="a professional headshot of a confident woman in her 30s with
|
| 92 |
-
neg_1 = gr.Textbox(label="Headshot Negative Prompt", value="
|
| 93 |
with gr.Row():
|
| 94 |
strength_1 = gr.Slider(0.1, 1.0, value=0.2, step=0.05, label="Refinement Strength")
|
| 95 |
guidance_1 = gr.Slider(1, 20, value=17, step=0.5, label="Guidance Scale (Headshot)")
|
| 96 |
|
| 97 |
gr.Markdown("### Step 2: Background Inpainting (SDXL)")
|
| 98 |
with gr.Row():
|
| 99 |
-
prompt_2 = gr.Textbox(label="Background Prompt", value="modern
|
| 100 |
-
neg_2 = gr.Textbox(label="Background Negative Prompt", value="fantasy, cartoon,
|
| 101 |
with gr.Row():
|
| 102 |
guidance_2 = gr.Slider(1, 20, value=10, step=0.5, label="Guidance Scale (Background)")
|
| 103 |
|
| 104 |
gr.Markdown("### Step 3: Clothing Replacement")
|
| 105 |
with gr.Row():
|
| 106 |
-
prompt_3 = gr.Textbox(label="Clothing Prompt", value="white
|
| 107 |
-
neg_3 = gr.Textbox(label="Clothing Negative Prompt", value="hoodie,
|
| 108 |
with gr.Row():
|
| 109 |
guidance_3 = gr.Slider(1, 20, value=17.0, step=0.5, label="Clothing Guidance Scale")
|
| 110 |
|
|
|
|
| 88 |
|
| 89 |
gr.Markdown("### Step 1: Headshot Refinement (LoRA)")
|
| 90 |
with gr.Row():
|
| 91 |
+
prompt_1 = gr.Textbox(label="Headshot Prompt", value="a professional corporate headshot of a confident woman in her 30s with blow dried hair, natural smile, soft lighting, clean studio background, realistic photo, high detail, shallow depth of field")
|
| 92 |
+
neg_1 = gr.Textbox(label="Headshot Negative Prompt", value="cartoon, anime, painting, illustration, low quality, overexposed, distorted face, exaggerated features, blurry background")
|
| 93 |
with gr.Row():
|
| 94 |
strength_1 = gr.Slider(0.1, 1.0, value=0.2, step=0.05, label="Refinement Strength")
|
| 95 |
guidance_1 = gr.Slider(1, 20, value=17, step=0.5, label="Guidance Scale (Headshot)")
|
| 96 |
|
| 97 |
gr.Markdown("### Step 2: Background Inpainting (SDXL)")
|
| 98 |
with gr.Row():
|
| 99 |
+
prompt_2 = gr.Textbox(label="Background Prompt", value="modern startup office, open-plan layout, natural daylight, glass walls, minimalistic decor, desks with computers, warm soft lighting, realistic environment")
|
| 100 |
+
neg_2 = gr.Textbox(label="Background Negative Prompt", value="cluttered space, fantasy architecture, cartoon, low-res textures, empty background, distorted shapes, harsh shadowsh")
|
| 101 |
with gr.Row():
|
| 102 |
guidance_2 = gr.Slider(1, 20, value=10, step=0.5, label="Guidance Scale (Background)")
|
| 103 |
|
| 104 |
gr.Markdown("### Step 3: Clothing Replacement")
|
| 105 |
with gr.Row():
|
| 106 |
+
prompt_3 = gr.Textbox(label="Clothing Prompt", value="tailored women's business suit, white blouse, blazer and pencil skirt, elegant corporate style, modern, professional lighting")
|
| 107 |
+
neg_3 = gr.Textbox(label="Clothing Negative Prompt", value="casual clothes, hoodie, jeans, fantasy outfit, cartoon, distorted textures, glitch, unrealistic proportions")
|
| 108 |
with gr.Row():
|
| 109 |
guidance_3 = gr.Slider(1, 20, value=17.0, step=0.5, label="Clothing Guidance Scale")
|
| 110 |
|