Spaces:
Running
on
Zero
Running
on
Zero
fix examples
Browse files
app.py
CHANGED
@@ -110,9 +110,9 @@ def run_rerun(path_to_image):
|
|
110 |
"world/camera",
|
111 |
rr.Pinhole(
|
112 |
focal_length=focal_length,
|
113 |
-
width=depth.shape[
|
114 |
-
height=depth.shape[
|
115 |
-
principal_point=(depth.shape[
|
116 |
camera_xyz=rr.ViewCoordinates.FLU,
|
117 |
),
|
118 |
)
|
@@ -150,9 +150,7 @@ with gr.Blocks() as interface:
|
|
150 |
examples = gr.Examples(
|
151 |
example_images,
|
152 |
label="Example Images",
|
153 |
-
fn=run_rerun,
|
154 |
inputs=[image],
|
155 |
-
outputs=[visualize],
|
156 |
)
|
157 |
with gr.Column():
|
158 |
viewer = Rerun(
|
|
|
110 |
"world/camera",
|
111 |
rr.Pinhole(
|
112 |
focal_length=focal_length,
|
113 |
+
width=depth.shape[1],
|
114 |
+
height=depth.shape[0],
|
115 |
+
principal_point=(depth.shape[1] / 2, depth.shape[0] / 2),
|
116 |
camera_xyz=rr.ViewCoordinates.FLU,
|
117 |
),
|
118 |
)
|
|
|
150 |
examples = gr.Examples(
|
151 |
example_images,
|
152 |
label="Example Images",
|
|
|
153 |
inputs=[image],
|
|
|
154 |
)
|
155 |
with gr.Column():
|
156 |
viewer = Rerun(
|