Spaces:
Runtime error
Runtime error
Zhenyu Li
commited on
Commit
·
a732259
1
Parent(s):
365aa43
update
Browse files
app.py
CHANGED
@@ -216,13 +216,13 @@ with gr.Blocks() as demo:
|
|
216 |
run_button = gr.Button("Run")
|
217 |
with gr.Accordion("Advanced options", open=False):
|
218 |
# mode = gr.Radio(["P49", "R"], label="Tiling mode", info="We recommand using P49 for fast evaluation and R with 1024 patches for best visualization results, respectively", elem_id='mode', value='R'),
|
219 |
-
mode = gr.Radio(["P49", "R"], label="Tiling mode", info="We recommand using P49 for fast evaluation and R with 1024 patches for best visualization results, respectively", elem_id='mode', value='
|
220 |
patch_number = gr.Slider(1, 1024, label="Please decide the number of random patches (Only useful in mode=R)", step=1, value=256)
|
221 |
resolution = gr.Textbox(label="PatchFusion proccessing resolution (Default 4K. Use 'x' to split height and width.)", elem_id='mode', value='2160x3840')
|
222 |
patch_size = gr.Textbox(label="Patch size (Default 1/4 of image resolution. Use 'x' to split height and width.)", elem_id='mode', value='540x960')
|
223 |
|
224 |
num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
|
225 |
-
image_resolution = gr.Slider(label="ControlNet image resolution", minimum=256, maximum=
|
226 |
strength = gr.Slider(label="Control strength", minimum=0.0, maximum=2.0, value=1.0, step=0.01)
|
227 |
guess_mode = gr.Checkbox(label='Guess Mode', value=False)
|
228 |
# detect_resolution = gr.Slider(label="Depth Resolution", minimum=128, maximum=1024, value=384, step=1)
|
|
|
216 |
run_button = gr.Button("Run")
|
217 |
with gr.Accordion("Advanced options", open=False):
|
218 |
# mode = gr.Radio(["P49", "R"], label="Tiling mode", info="We recommand using P49 for fast evaluation and R with 1024 patches for best visualization results, respectively", elem_id='mode', value='R'),
|
219 |
+
mode = gr.Radio(["P49", "R"], label="Tiling mode", info="We recommand using P49 for fast evaluation and R with 1024 patches for best visualization results, respectively", elem_id='mode', value='P49'),
|
220 |
patch_number = gr.Slider(1, 1024, label="Please decide the number of random patches (Only useful in mode=R)", step=1, value=256)
|
221 |
resolution = gr.Textbox(label="PatchFusion proccessing resolution (Default 4K. Use 'x' to split height and width.)", elem_id='mode', value='2160x3840')
|
222 |
patch_size = gr.Textbox(label="Patch size (Default 1/4 of image resolution. Use 'x' to split height and width.)", elem_id='mode', value='540x960')
|
223 |
|
224 |
num_samples = gr.Slider(label="Images", minimum=1, maximum=12, value=1, step=1)
|
225 |
+
image_resolution = gr.Slider(label="ControlNet image resolution (higher resolution will lead to OOM)", minimum=256, maximum=1024, value=896, step=64)
|
226 |
strength = gr.Slider(label="Control strength", minimum=0.0, maximum=2.0, value=1.0, step=0.01)
|
227 |
guess_mode = gr.Checkbox(label='Guess Mode', value=False)
|
228 |
# detect_resolution = gr.Slider(label="Depth Resolution", minimum=128, maximum=1024, value=384, step=1)
|