Spaces:
Running
on
Zero
Running
on
Zero
xiaoyuxi
commited on
Commit
·
56adfdb
1
Parent(s):
4b0c025
vggt_da
Browse files
app.py
CHANGED
|
@@ -1084,7 +1084,7 @@ with gr.Blocks(
|
|
| 1084 |
# Advanced Point Selection with SAM - Collapsed by default
|
| 1085 |
with gr.Row():
|
| 1086 |
gr.Markdown("### 🎯 Advanced: Manual Point Selection with SAM")
|
| 1087 |
-
with gr.Accordion("SAM Point Selection Controls", open=False):
|
| 1088 |
gr.HTML("""
|
| 1089 |
<div style='margin-bottom: 15px;'>
|
| 1090 |
<ul style='color: #4a5568; font-size: 14px; line-height: 1.6; margin: 0; padding-left: 20px;'>
|
|
@@ -1130,13 +1130,13 @@ with gr.Blocks(
|
|
| 1130 |
visible=False
|
| 1131 |
)
|
| 1132 |
|
| 1133 |
-
#
|
| 1134 |
gr.HTML("""
|
| 1135 |
<div style='background: linear-gradient(135deg, #e8eaff 0%, #f0f2ff 100%);
|
| 1136 |
border-radius: 8px; padding: 20px; margin: 15px 0;
|
| 1137 |
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
|
| 1138 |
border: 1px solid rgba(102, 126, 234, 0.15);'>
|
| 1139 |
-
<div style='text-align: center;
|
| 1140 |
<h3 style='color: #4a5568; margin: 0 0 10px 0; font-size: 18px; font-weight: 600;'>
|
| 1141 |
⭐ Love SpatialTracker? Give us a Star! ⭐
|
| 1142 |
</h3>
|
|
@@ -1155,36 +1155,44 @@ with gr.Blocks(
|
|
| 1155 |
Star SpatialTracker V2 on GitHub
|
| 1156 |
</a>
|
| 1157 |
</div>
|
| 1158 |
-
|
| 1159 |
-
|
| 1160 |
-
|
| 1161 |
-
|
| 1162 |
-
|
| 1163 |
-
|
| 1164 |
-
|
| 1165 |
-
|
| 1166 |
-
|
| 1167 |
-
|
| 1168 |
-
|
| 1169 |
-
|
| 1170 |
-
|
| 1171 |
-
|
| 1172 |
-
|
| 1173 |
-
|
| 1174 |
-
|
| 1175 |
-
|
| 1176 |
-
|
| 1177 |
-
|
| 1178 |
-
|
| 1179 |
-
|
| 1180 |
-
|
| 1181 |
-
|
| 1182 |
-
|
| 1183 |
-
|
| 1184 |
-
</span>
|
| 1185 |
</div>
|
| 1186 |
</div>
|
| 1187 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1188 |
|
| 1189 |
# Hidden state variables
|
| 1190 |
original_image_state = gr.State(None)
|
|
|
|
| 1084 |
# Advanced Point Selection with SAM - Collapsed by default
|
| 1085 |
with gr.Row():
|
| 1086 |
gr.Markdown("### 🎯 Advanced: Manual Point Selection with SAM")
|
| 1087 |
+
with gr.Accordion("🔬 SAM Point Selection Controls", open=False):
|
| 1088 |
gr.HTML("""
|
| 1089 |
<div style='margin-bottom: 15px;'>
|
| 1090 |
<ul style='color: #4a5568; font-size: 14px; line-height: 1.6; margin: 0; padding-left: 20px;'>
|
|
|
|
| 1130 |
visible=False
|
| 1131 |
)
|
| 1132 |
|
| 1133 |
+
# GitHub Star Section
|
| 1134 |
gr.HTML("""
|
| 1135 |
<div style='background: linear-gradient(135deg, #e8eaff 0%, #f0f2ff 100%);
|
| 1136 |
border-radius: 8px; padding: 20px; margin: 15px 0;
|
| 1137 |
box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
|
| 1138 |
border: 1px solid rgba(102, 126, 234, 0.15);'>
|
| 1139 |
+
<div style='text-align: center;'>
|
| 1140 |
<h3 style='color: #4a5568; margin: 0 0 10px 0; font-size: 18px; font-weight: 600;'>
|
| 1141 |
⭐ Love SpatialTracker? Give us a Star! ⭐
|
| 1142 |
</h3>
|
|
|
|
| 1155 |
Star SpatialTracker V2 on GitHub
|
| 1156 |
</a>
|
| 1157 |
</div>
|
| 1158 |
+
</div>
|
| 1159 |
+
""")
|
| 1160 |
+
|
| 1161 |
+
# Acknowledgments Section
|
| 1162 |
+
gr.HTML("""
|
| 1163 |
+
<div style='background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
|
| 1164 |
+
border-radius: 8px; padding: 20px; margin: 15px 0;
|
| 1165 |
+
box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1);
|
| 1166 |
+
border: 1px solid rgba(255, 193, 7, 0.2);'>
|
| 1167 |
+
<div style='text-align: center;'>
|
| 1168 |
+
<h3 style='color: #5d4037; margin: 0 0 10px 0; font-size: 18px; font-weight: 600;'>
|
| 1169 |
+
📚 Acknowledgments
|
| 1170 |
+
</h3>
|
| 1171 |
+
<p style='color: #5d4037; margin: 0 0 15px 0; font-size: 14px; line-height: 1.5;'>
|
| 1172 |
+
Our 3D visualizer is adapted from <strong>TAPIP3D</strong>. We thank the authors for their excellent work and contribution to the computer vision community!
|
| 1173 |
+
</p>
|
| 1174 |
+
<a href="https://github.com/zbw001/TAPIP3D" target="_blank"
|
| 1175 |
+
style='display: inline-flex; align-items: center; gap: 8px;
|
| 1176 |
+
background: rgba(255, 193, 7, 0.15); color: #5d4037;
|
| 1177 |
+
padding: 10px 20px; border-radius: 25px; text-decoration: none;
|
| 1178 |
+
font-weight: bold; font-size: 14px; border: 1px solid rgba(255, 193, 7, 0.3);
|
| 1179 |
+
transition: all 0.3s ease;'
|
| 1180 |
+
onmouseover="this.style.background='rgba(255, 193, 7, 0.25)'; this.style.transform='translateY(-2px)'"
|
| 1181 |
+
onmouseout="this.style.background='rgba(255, 193, 7, 0.15)'; this.style.transform='translateY(0)'">
|
| 1182 |
+
📚 Visit TAPIP3D Repository
|
| 1183 |
+
</a>
|
|
|
|
| 1184 |
</div>
|
| 1185 |
</div>
|
| 1186 |
""")
|
| 1187 |
+
|
| 1188 |
+
# Footer
|
| 1189 |
+
gr.HTML("""
|
| 1190 |
+
<div style='text-align: center; margin: 20px 0 10px 0;'>
|
| 1191 |
+
<span style='font-size: 12px; color: #888; font-style: italic;'>
|
| 1192 |
+
Powered by SpatialTracker V2 | Built with ❤️ for the Computer Vision Community
|
| 1193 |
+
</span>
|
| 1194 |
+
</div>
|
| 1195 |
+
""")
|
| 1196 |
|
| 1197 |
# Hidden state variables
|
| 1198 |
original_image_state = gr.State(None)
|