Skip to content

Commit 6e29eae

Browse files
committed
Mesh save fix
1 parent deea840 commit 6e29eae

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Changelog
22
### 0.4.7
33
* Tiling mode
4-
* Reduced VRAM consumption for Depth Anything, and ZoeDepth k and nk
4+
* Reduced VRAM consumption for Depth Anything, as well as for ZoeDepth k and nk
55
* Some bugfixes
66
### 0.4.6
77
* Support for [Depth Anything](https://github.com/LiheYoung/Depth-Anything).

inpaint/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import yaml
1010
import time
1111
import sys
12-
from mesh import write_ply, read_ply, output_3d_photo
12+
from mesh import write_mesh, read_ply, output_3d_photo
1313
from utils import get_MiDaS_samples, read_MiDaS_depth
1414
import torch
1515
import cv2
@@ -105,7 +105,7 @@
105105

106106

107107
print(f"Writing depth ply (and basically doing everything) at {time.time()}")
108-
rt_info = write_ply(image,
108+
rt_info = write_mesh(image,
109109
depth,
110110
sample['int_mtx'],
111111
mesh_fi,

src/common_ui.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ def main_ui_panel(is_depth_tab):
4343
with gr.Box() as cur_option_root:
4444
inp -= 'depthmap_gen_row_1', cur_option_root
4545
with gr.Row():
46-
inp += go.BOOST, gr.Checkbox(label="BOOST (multi-resolution merging)")
47-
inp += go.NET_SIZE_MATCH, gr.Checkbox(label="Match net size to input size", visible=False)
46+
inp += go.BOOST, gr.Checkbox(label="BOOST",
47+
info="Generate depth map parts in a mosaic fashion - very slow")
48+
inp += go.NET_SIZE_MATCH, gr.Checkbox(label="Match net size to input size", visible=False,
49+
info="Net size affects quality, performance and VRAM usage")
4850
with gr.Row(visible=False) as options_depend_on_match_size:
4951
inp += go.NET_WIDTH, gr.Slider(minimum=64, maximum=2048, step=64, label='Net width')
5052
inp += go.NET_HEIGHT, gr.Slider(minimum=64, maximum=2048, step=64, label='Net height')

0 commit comments

Comments
 (0)