Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
b635706
1
Parent(s):
20d2771
backend
Browse files
app.py
CHANGED
|
@@ -1113,39 +1113,7 @@ with gr.Blocks(
|
|
| 1113 |
interactive=False,
|
| 1114 |
visible=True
|
| 1115 |
)
|
| 1116 |
-
|
| 1117 |
-
# 3D Visualization - Make it larger and more prominent
|
| 1118 |
-
with gr.Row():
|
| 1119 |
-
with gr.Column():
|
| 1120 |
-
with gr.Group():
|
| 1121 |
-
gr.Markdown("### 🌐 3D Trajectory Visualization")
|
| 1122 |
-
gr.Markdown("Interactive 3D visualization of 3D point tracking and camera motion:")
|
| 1123 |
-
viz_html = gr.HTML(
|
| 1124 |
-
label="3D Trajectory Visualization",
|
| 1125 |
-
value="""
|
| 1126 |
-
<div style='border: 3px solid #667eea; border-radius: 15px; padding: 40px;
|
| 1127 |
-
background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
|
| 1128 |
-
text-align: center; min-height: 600px; display: flex;
|
| 1129 |
-
flex-direction: column; justify-content: center; align-items: center;
|
| 1130 |
-
box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);'>
|
| 1131 |
-
<div style='font-size: 48px; margin-bottom: 20px;'>🌐</div>
|
| 1132 |
-
<h2 style='color: #667eea; margin-bottom: 15px; font-size: 28px; font-weight: 600;'>
|
| 1133 |
-
3D Trajectory Visualization
|
| 1134 |
-
</h2>
|
| 1135 |
-
<p style='color: #666; font-size: 16px; line-height: 1.6; max-width: 500px; margin-bottom: 25px;'>
|
| 1136 |
-
Perceive the world with Pixel-wise 3D Motions!
|
| 1137 |
-
</p>
|
| 1138 |
-
<div style='background: rgba(102, 126, 234, 0.1); border-radius: 25px;
|
| 1139 |
-
padding: 12px 24px; border: 2px solid rgba(102, 126, 234, 0.2);'>
|
| 1140 |
-
<span style='color: #667eea; font-weight: 600; font-size: 14px;'>
|
| 1141 |
-
⚡ Powered by SpatialTracker V2
|
| 1142 |
-
</span>
|
| 1143 |
-
</div>
|
| 1144 |
-
</div>
|
| 1145 |
-
""",
|
| 1146 |
-
elem_id="viz_container"
|
| 1147 |
-
)
|
| 1148 |
-
|
| 1149 |
# Advanced settings section - changed to open=True
|
| 1150 |
with gr.Accordion("⚙️ Advanced Settings", open=True):
|
| 1151 |
gr.Markdown("Adjust these parameters to optimize tracking performance:")
|
|
@@ -1178,6 +1146,38 @@ with gr.Blocks(
|
|
| 1178 |
# Launch button
|
| 1179 |
with gr.Row():
|
| 1180 |
launch_btn = gr.Button("🚀 Launch Visualization", variant="primary", size="lg")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1181 |
|
| 1182 |
# Hidden state variables
|
| 1183 |
original_image_state = gr.State(None)
|
|
|
|
| 1113 |
interactive=False,
|
| 1114 |
visible=True
|
| 1115 |
)
|
| 1116 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1117 |
# Advanced settings section - changed to open=True
|
| 1118 |
with gr.Accordion("⚙️ Advanced Settings", open=True):
|
| 1119 |
gr.Markdown("Adjust these parameters to optimize tracking performance:")
|
|
|
|
| 1146 |
# Launch button
|
| 1147 |
with gr.Row():
|
| 1148 |
launch_btn = gr.Button("🚀 Launch Visualization", variant="primary", size="lg")
|
| 1149 |
+
|
| 1150 |
+
# 3D Visualization - Make it larger and more prominent
|
| 1151 |
+
with gr.Row():
|
| 1152 |
+
with gr.Column():
|
| 1153 |
+
with gr.Group():
|
| 1154 |
+
gr.Markdown("### 🌐 3D Trajectory Visualization")
|
| 1155 |
+
gr.Markdown("Interactive 3D visualization of 3D point tracking and camera motion:")
|
| 1156 |
+
viz_html = gr.HTML(
|
| 1157 |
+
label="3D Trajectory Visualization",
|
| 1158 |
+
value="""
|
| 1159 |
+
<div style='border: 3px solid #667eea; border-radius: 15px; padding: 40px;
|
| 1160 |
+
background: linear-gradient(135deg, #f8f9ff 0%, #e6f3ff 100%);
|
| 1161 |
+
text-align: center; min-height: 600px; display: flex;
|
| 1162 |
+
flex-direction: column; justify-content: center; align-items: center;
|
| 1163 |
+
box-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);'>
|
| 1164 |
+
<div style='font-size: 48px; margin-bottom: 20px;'>🌐</div>
|
| 1165 |
+
<h2 style='color: #667eea; margin-bottom: 15px; font-size: 28px; font-weight: 600;'>
|
| 1166 |
+
3D Trajectory Visualization
|
| 1167 |
+
</h2>
|
| 1168 |
+
<p style='color: #666; font-size: 16px; line-height: 1.6; max-width: 500px; margin-bottom: 25px;'>
|
| 1169 |
+
Perceive the world with Pixel-wise 3D Motions!
|
| 1170 |
+
</p>
|
| 1171 |
+
<div style='background: rgba(102, 126, 234, 0.1); border-radius: 25px;
|
| 1172 |
+
padding: 12px 24px; border: 2px solid rgba(102, 126, 234, 0.2);'>
|
| 1173 |
+
<span style='color: #667eea; font-weight: 600; font-size: 14px;'>
|
| 1174 |
+
⚡ Powered by SpatialTracker V2
|
| 1175 |
+
</span>
|
| 1176 |
+
</div>
|
| 1177 |
+
</div>
|
| 1178 |
+
""",
|
| 1179 |
+
elem_id="viz_container"
|
| 1180 |
+
)
|
| 1181 |
|
| 1182 |
# Hidden state variables
|
| 1183 |
original_image_state = gr.State(None)
|