Skip to content

Commit 00d878f

Browse files
committed
Fix crash in script mode, fix gradio deprecation warnings
Also bump gradio for standalone to support columns parameter
1 parent 89d6a5b commit 00d878f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
# pip install -r requirements.txt
66
torch
7-
gradio>=3.32.0,<4.0 # User UI
7+
gradio>=3.38.0,<4.0 # User UI
88
timm~=0.9.2 # For midas
99
matplotlib
1010
trimesh # For creating simple meshes

scripts/depthmap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def run(self, p, *inputs):
3636
# sd process
3737
processed = processing.process_images(p)
3838
processed.sampler = p.sampler # for create_infotext
39+
processed.tiling = p.tiling # for create_infotext
3940

4041
inputimages = []
4142
for count in range(0, len(processed.images)):

src/common_ui.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def depthmap_mode_video(inp):
260260
def on_ui_tabs():
261261
inp = GradioComponentBundle()
262262
with gr.Blocks(analytics_enabled=False, title="DepthMap", css=custom_css) as depthmap_interface:
263-
with gr.Row().style(equal_height=False):
263+
with gr.Row(equal_height=False):
264264
with gr.Column(variant='panel'):
265265
inp += 'depthmap_mode', gr.HTML(visible=False, value='0')
266266
with gr.Tabs():
@@ -299,7 +299,7 @@ def on_ui_tabs():
299299
with gr.TabItem('Depth Output'):
300300
with gr.Group():
301301
result_images = gr.Gallery(label='Output', show_label=False,
302-
elem_id=f"depthmap_gallery").style(grid=4)
302+
elem_id=f"depthmap_gallery", columns=4)
303303
with gr.Column():
304304
html_info = gr.HTML()
305305
folder_symbol = '\U0001f4c2' # 📂

0 commit comments

Comments
 (0)