Surn commited on
Commit
5927cff
·
1 Parent(s): 468c078

Update labels and description

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -159,9 +159,9 @@ def create_3d_obj(rgb_image, raw_depth, image_path, depth=10, z_scale=200):
159
 
160
 
161
  # Define Gradio interface components
162
- title = "Demo: Zero-Shot Depth Estimation with DPT + 3D Point Cloud"
163
  description = (
164
- "This demo is a variation from the original "
165
  "<a href='https://huggingface.co/spaces/nielsr/dpt-depth-estimation' target='_blank'>DPT Demo</a>. "
166
  "It uses the DPT model to predict the depth of an image and then uses 3D Point Cloud to create a 3D object."
167
  )
@@ -172,7 +172,7 @@ resized_width_slider = gr.Slider(
172
  step=16,
173
  value=800,
174
  label="Resized Width",
175
- info="Adjust the width to which the input image is resized."
176
  )
177
 
178
  z_scale_slider = gr.Slider(
@@ -181,7 +181,7 @@ z_scale_slider = gr.Slider(
181
  step=0.01,
182
  value=0.5,
183
  label="Z-Scale",
184
- info="Adjust the scaling factor for the Z-axis in the 3D model."
185
  )
186
  examples = [["examples/" + img] for img in os.listdir("examples/")]
187
 
 
159
 
160
 
161
  # Define Gradio interface components
162
+ title = "Zero-Shot Depth Estimation with DPT + 3D Point Cloud"
163
  description = (
164
+ "This demo by <a href='https://huggingface.co/Surn' target='_blank'>Charles Fettinger</a> is an update to the original "
165
  "<a href='https://huggingface.co/spaces/nielsr/dpt-depth-estimation' target='_blank'>DPT Demo</a>. "
166
  "It uses the DPT model to predict the depth of an image and then uses 3D Point Cloud to create a 3D object."
167
  )
 
172
  step=16,
173
  value=800,
174
  label="Resized Width",
175
+ info="Resize the image based upon width, preserving the aspect ratio"
176
  )
177
 
178
  z_scale_slider = gr.Slider(
 
181
  step=0.01,
182
  value=0.5,
183
  label="Z-Scale",
184
+ info="Scale the amount of 3D model depth, short or tall (can distort)."
185
  )
186
  examples = [["examples/" + img] for img in os.listdir("examples/")]
187