Spaces:
Running on Zero
Running on Zero
Note that the default setting trades quality for speed
Browse files
app.py
CHANGED
|
@@ -240,6 +240,8 @@ CSS = """
|
|
| 240 |
#title {text-align: center; margin-bottom: 0;}
|
| 241 |
#links {text-align: center;}
|
| 242 |
#run_btn {font-size: 1.1rem;}
|
|
|
|
|
|
|
| 243 |
"""
|
| 244 |
|
| 245 |
with gr.Blocks(title="VideoMaMa++ demo") as demo:
|
|
@@ -255,6 +257,13 @@ with gr.Blocks(title="VideoMaMa++ demo") as demo:
|
|
| 255 |
"2. Click the object on the first frame (or type what it is, e.g. `person`). "
|
| 256 |
"3. Press **Run matting**: SAM3 tracks the object and VideoMaMa++ turns the mask track into an alpha matte."
|
| 257 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 258 |
|
| 259 |
state = gr.State(None)
|
| 260 |
with gr.Row():
|
|
|
|
| 240 |
#title {text-align: center; margin-bottom: 0;}
|
| 241 |
#links {text-align: center;}
|
| 242 |
#run_btn {font-size: 1.1rem;}
|
| 243 |
+
#note {background: var(--color-accent-soft); border-left: 4px solid var(--color-accent);
|
| 244 |
+
border-radius: 6px; padding: 10px 14px;}
|
| 245 |
"""
|
| 246 |
|
| 247 |
with gr.Blocks(title="VideoMaMa++ demo") as demo:
|
|
|
|
| 257 |
"2. Click the object on the first frame (or type what it is, e.g. `person`). "
|
| 258 |
"3. Press **Run matting**: SAM3 tracks the object and VideoMaMa++ turns the mask track into an alpha matte."
|
| 259 |
)
|
| 260 |
+
gr.Markdown(
|
| 261 |
+
f"**Speed vs. quality:** to keep runs short, the demo starts with a reduced setting of "
|
| 262 |
+
f"**{DEFAULT_FRAMES} frames at {DEFAULT_SCALE} resolution**, so these results are lower in quality than "
|
| 263 |
+
"VideoMaMa++ can produce. For the best mattes, set **Processing resolution** to **100% (original)**. "
|
| 264 |
+
"That takes longer and uses more of your GPU quota.",
|
| 265 |
+
elem_id="note",
|
| 266 |
+
)
|
| 267 |
|
| 268 |
state = gr.State(None)
|
| 269 |
with gr.Row():
|