pablovela5620 commited on
Commit
ab31b2b
·
verified ·
1 Parent(s): 992f9e4

Update src/sam3d_body/gradio_ui/sam3d_body_ui.py

Browse files
src/sam3d_body/gradio_ui/sam3d_body_ui.py CHANGED
@@ -121,6 +121,34 @@ def main():
121
 
122
  with gr.Blocks() as demo, gr.Tab("SAM3D Body Estimation"):
123
  pending_cleanup = gr.State([], time_to_live=10, delete_callback=cleanup_rrds)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
124
  with gr.Row():
125
  with gr.Column(scale=1):
126
  tabs = gr.Tabs(selected="inputs")
@@ -149,7 +177,7 @@ def main():
149
  cache_examples=False,
150
  examples_per_page=2,
151
  )
152
- with gr.Column(scale=5):
153
  viewer.render()
154
 
155
  create_rrd.click(
 
121
 
122
  with gr.Blocks() as demo, gr.Tab("SAM3D Body Estimation"):
123
  pending_cleanup = gr.State([], time_to_live=10, delete_callback=cleanup_rrds)
124
+ gr.Markdown(
125
+ """
126
+ # SAM3D Body with Rerun
127
+ An unofficial playground for Meta's SAM3D Body (DINOv3) with promptable SAM3 masks and live Rerun visualization. Uses **Rerun** for 3D inspection, **Gradio** for the UI, and **Pixi** for one-command setup.
128
+
129
+ <div style="display:flex; gap:8px; justify-content:center; align-items:center; flex-wrap:wrap; margin:12px 0;">
130
+ <a title="Rerun" href="https://rerun.io" target="_blank" rel="noopener noreferrer">
131
+ <img src="https://img.shields.io/badge/Rerun-0.27%2B-0b82f9" alt="Rerun badge">
132
+ </a>
133
+ <a title="Pixi" href="https://pixi.sh/latest/" target="_blank" rel="noopener noreferrer">
134
+ <img src="https://img.shields.io/badge/Install%20with-Pixi-16A34A" alt="Pixi badge">
135
+ </a>
136
+ <a title="CUDA" href="https://developer.nvidia.com/cuda-toolkit" target="_blank" rel="noopener noreferrer">
137
+ <img src="https://img.shields.io/badge/CUDA-12.9%2B-76b900" alt="CUDA badge">
138
+ </a>
139
+ <a title="GitHub" href="https://github.com/rerun-io/sam3d-body-rerun" target="_blank" rel="noopener noreferrer">
140
+ <img src="https://img.shields.io/github/stars/rerun-io/sam3d-body-rerun?label=GitHub%20%E2%98%85&logo=github&color=C8C" alt="GitHub stars">
141
+ </a>
142
+ </div>
143
+ """
144
+ )
145
+ gr.HTML(
146
+ """
147
+ <style>
148
+ .sam3d-viewer-col { margin-top: 20px; }
149
+ </style>
150
+ """
151
+ )
152
  with gr.Row():
153
  with gr.Column(scale=1):
154
  tabs = gr.Tabs(selected="inputs")
 
177
  cache_examples=False,
178
  examples_per_page=2,
179
  )
180
+ with gr.Column(scale=5, elem_classes=["sam3d-viewer-col"]):
181
  viewer.render()
182
 
183
  create_rrd.click(