Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,6 +22,7 @@ def process_img(
|
|
| 22 |
cfg_scale,
|
| 23 |
steps,
|
| 24 |
img_strength,
|
|
|
|
| 25 |
depth_strength,
|
| 26 |
edge_strength,
|
| 27 |
# tile_strength, # <-- REMOVED
|
|
@@ -40,6 +41,7 @@ def process_img(
|
|
| 40 |
guidance_scale=cfg_scale,
|
| 41 |
num_inference_steps=steps,
|
| 42 |
img2img_strength=img_strength,
|
|
|
|
| 43 |
depth_strength=depth_strength,
|
| 44 |
lineart_strength=edge_strength,
|
| 45 |
# tile_strength=tile_strength, # <-- REMOVED
|
|
@@ -108,6 +110,14 @@ with gr.Blocks(title="Face To Pixel Art", theme=gr.themes.Soft()) as demo:
|
|
| 108 |
value=Config.IMG_STRENGTH,
|
| 109 |
label="Image Strength (Img2Img)"
|
| 110 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 111 |
depth_strength = gr.Slider(
|
| 112 |
elem_id="depth_strength",
|
| 113 |
minimum=0.0,
|
|
@@ -139,7 +149,8 @@ with gr.Blocks(title="Face To Pixel Art", theme=gr.themes.Soft()) as demo:
|
|
| 139 |
negative_prompt,
|
| 140 |
cfg_scale,
|
| 141 |
steps,
|
| 142 |
-
img_strength,
|
|
|
|
| 143 |
depth_strength,
|
| 144 |
edge_strength,
|
| 145 |
# tile_strength, # <-- REMOVED
|
|
|
|
| 22 |
cfg_scale,
|
| 23 |
steps,
|
| 24 |
img_strength,
|
| 25 |
+
face_strength,
|
| 26 |
depth_strength,
|
| 27 |
edge_strength,
|
| 28 |
# tile_strength, # <-- REMOVED
|
|
|
|
| 41 |
guidance_scale=cfg_scale,
|
| 42 |
num_inference_steps=steps,
|
| 43 |
img2img_strength=img_strength,
|
| 44 |
+
face_strength=face_strength,
|
| 45 |
depth_strength=depth_strength,
|
| 46 |
lineart_strength=edge_strength,
|
| 47 |
# tile_strength=tile_strength, # <-- REMOVED
|
|
|
|
| 110 |
value=Config.IMG_STRENGTH,
|
| 111 |
label="Image Strength (Img2Img)"
|
| 112 |
)
|
| 113 |
+
face_strength = gr.Slider(
|
| 114 |
+
elem_id="face_strength",
|
| 115 |
+
minimum=0.0,
|
| 116 |
+
maximum=1.0,
|
| 117 |
+
step=0.05,
|
| 118 |
+
value=Config.FACE_STRENGTH,
|
| 119 |
+
label="Face Strength"
|
| 120 |
+
)
|
| 121 |
depth_strength = gr.Slider(
|
| 122 |
elem_id="depth_strength",
|
| 123 |
minimum=0.0,
|
|
|
|
| 149 |
negative_prompt,
|
| 150 |
cfg_scale,
|
| 151 |
steps,
|
| 152 |
+
img_strength,
|
| 153 |
+
face_strength,
|
| 154 |
depth_strength,
|
| 155 |
edge_strength,
|
| 156 |
# tile_strength, # <-- REMOVED
|