Spaces:
Running
on
Zero
Running
on
Zero
Commit
Β·
cb6f2d9
1
Parent(s):
1fc7110
adjust duration
Browse files
README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: π
|
| 4 |
colorFrom: purple
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.15.0
|
| 8 |
app_file: app.py
|
|
|
|
| 1 |
---
|
| 2 |
+
title: MoD ControlNet Tile Upscaler SDXL
|
| 3 |
emoji: π
|
| 4 |
colorFrom: purple
|
| 5 |
+
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.15.0
|
| 8 |
app_file: app.py
|
app.py
CHANGED
|
@@ -36,7 +36,7 @@ pipe.enable_vae_tiling() # << Enable this if you have limited VRAM
|
|
| 36 |
pipe.enable_vae_slicing() # << Enable this if you have limited VRAM
|
| 37 |
|
| 38 |
# region functions
|
| 39 |
-
@spaces.GPU
|
| 40 |
def predict(
|
| 41 |
image,
|
| 42 |
prompt,
|
|
@@ -245,7 +245,7 @@ with gr.Blocks(css=css, theme=Platinum(), title="MoD ControlNet Tile Upscaler")
|
|
| 245 |
with gr.Row(elem_id="parameters_row"):
|
| 246 |
gr.Markdown("### General parameters")
|
| 247 |
tile_weighting_method = gr.Dropdown(
|
| 248 |
-
label="Tile Weighting
|
| 249 |
)
|
| 250 |
tile_gaussian_sigma = gr.Slider(label="Gaussian Sigma", minimum=0.05, maximum=1.0, step=0.01, value=0.3, visible=False)
|
| 251 |
max_tile_size = gr.Dropdown(label="Max. Tile Size", choices=[1024, 1280], value=1024)
|
|
|
|
| 36 |
pipe.enable_vae_slicing() # << Enable this if you have limited VRAM
|
| 37 |
|
| 38 |
# region functions
|
| 39 |
+
@spaces.GPU(duration=600)
|
| 40 |
def predict(
|
| 41 |
image,
|
| 42 |
prompt,
|
|
|
|
| 245 |
with gr.Row(elem_id="parameters_row"):
|
| 246 |
gr.Markdown("### General parameters")
|
| 247 |
tile_weighting_method = gr.Dropdown(
|
| 248 |
+
label="Tile Weighting Method", choices=["Cosine", "Gaussian"], value="Cosine"
|
| 249 |
)
|
| 250 |
tile_gaussian_sigma = gr.Slider(label="Gaussian Sigma", minimum=0.05, maximum=1.0, step=0.01, value=0.3, visible=False)
|
| 251 |
max_tile_size = gr.Dropdown(label="Max. Tile Size", choices=[1024, 1280], value=1024)
|