Spaces:
Running
on
Zero
Running
on
Zero
clean up logging
Browse files
app.py
CHANGED
@@ -82,9 +82,9 @@ def run_rerun(path_to_video):
|
|
82 |
rrb.Spatial3DView(origin="/"),
|
83 |
rrb.Horizontal(
|
84 |
rrb.Spatial2DView(
|
85 |
-
origin="/world/depth",
|
86 |
),
|
87 |
-
rrb.Spatial2DView(origin="/world/
|
88 |
),
|
89 |
),
|
90 |
collapse_panels=True,
|
@@ -115,12 +115,12 @@ def run_rerun(path_to_video):
|
|
115 |
|
116 |
rr.set_time_nanos("video_time", frame_timestamps_ns[i])
|
117 |
rr.log(
|
118 |
-
"world/depth",
|
119 |
-
rr.DepthImage(depth, meter=1),
|
120 |
)
|
121 |
|
122 |
rr.log(
|
123 |
-
"world/frame",
|
124 |
rr.VideoFrameReference(
|
125 |
timestamp=rr.components.VideoTimestamp(seconds=1.0),
|
126 |
video_reference="world/video",
|
@@ -172,11 +172,6 @@ with gr.Blocks() as interface:
|
|
172 |
with gr.Column(variant="compact"):
|
173 |
video = gr.Video(format="mp4", interactive=True, label="Video")
|
174 |
visualize = gr.Button("Visualize ML Depth Pro")
|
175 |
-
# examples = gr.Examples(
|
176 |
-
# example_images,
|
177 |
-
# label="Example Images",
|
178 |
-
# inputs=[image],
|
179 |
-
# )
|
180 |
with gr.Column():
|
181 |
viewer = Rerun(
|
182 |
streaming=True,
|
|
|
82 |
rrb.Spatial3DView(origin="/"),
|
83 |
rrb.Horizontal(
|
84 |
rrb.Spatial2DView(
|
85 |
+
origin="/world/camera/depth",
|
86 |
),
|
87 |
+
rrb.Spatial2DView(origin="/world/camera/frame"),
|
88 |
),
|
89 |
),
|
90 |
collapse_panels=True,
|
|
|
115 |
|
116 |
rr.set_time_nanos("video_time", frame_timestamps_ns[i])
|
117 |
rr.log(
|
118 |
+
"world/camera/depth",
|
119 |
+
rr.DepthImage(depth, meter=1, depth_range=(0, 10)),
|
120 |
)
|
121 |
|
122 |
rr.log(
|
123 |
+
"world/camera/frame",
|
124 |
rr.VideoFrameReference(
|
125 |
timestamp=rr.components.VideoTimestamp(seconds=1.0),
|
126 |
video_reference="world/video",
|
|
|
172 |
with gr.Column(variant="compact"):
|
173 |
video = gr.Video(format="mp4", interactive=True, label="Video")
|
174 |
visualize = gr.Button("Visualize ML Depth Pro")
|
|
|
|
|
|
|
|
|
|
|
175 |
with gr.Column():
|
176 |
viewer = Rerun(
|
177 |
streaming=True,
|