Update app.py
Browse files
app.py
CHANGED
|
@@ -39,8 +39,8 @@ VOID_MODEL_ID = os.environ.get("VOID_MODEL_ID", "your-hf-username/VOID")
|
|
| 39 |
VOID_CKPT_FILE = "void_pass1.safetensors"
|
| 40 |
|
| 41 |
SAMPLE_SIZE = (384, 672) # H × W
|
| 42 |
-
MAX_VID_LEN =
|
| 43 |
-
TEMPORAL_WIN =
|
| 44 |
FPS = 12
|
| 45 |
WEIGHT_DTYPE = torch.bfloat16
|
| 46 |
NEG_PROMPT = (
|
|
@@ -206,8 +206,8 @@ The quadmask is a **grayscale video** where each pixel value encodes what role t
|
|
| 206 |
| Pixel value | Meaning |
|
| 207 |
|-------------|---------|
|
| 208 |
| **0** (black) | Primary object to remove |
|
| 209 |
-
| **63** (dark grey) | Overlap /
|
| 210 |
-
| **127** (mid grey) | Affected region — shadows, reflections,
|
| 211 |
| **255** (white) | Background — keep as-is |
|
| 212 |
|
| 213 |
Use the **VLM-Mask-Reasoner** pipeline included in the repo to generate quadmasks automatically.
|
|
@@ -261,7 +261,7 @@ with gr.Blocks(title="VOID – Video Object & Interaction Deletion") as demo:
|
|
| 261 |
[🌐 Project Page](https://void-model.github.io/) | [💻 GitHub](https://github.com/void-model/VOID)
|
| 262 |
|
| 263 |
Upload a video and its **quadmask**, enter a prompt describing the scene *after* removal,
|
| 264 |
-
and VOID will erase the object along with its physical interactions
|
| 265 |
|
| 266 |
> Built on **CogVideoX-Fun-V1.5-5B** fine-tuned for interaction-aware video inpainting.
|
| 267 |
"""
|
|
|
|
| 39 |
VOID_CKPT_FILE = "void_pass1.safetensors"
|
| 40 |
|
| 41 |
SAMPLE_SIZE = (384, 672) # H × W
|
| 42 |
+
MAX_VID_LEN = 72
|
| 43 |
+
TEMPORAL_WIN = 60
|
| 44 |
FPS = 12
|
| 45 |
WEIGHT_DTYPE = torch.bfloat16
|
| 46 |
NEG_PROMPT = (
|
|
|
|
| 206 |
| Pixel value | Meaning |
|
| 207 |
|-------------|---------|
|
| 208 |
| **0** (black) | Primary object to remove |
|
| 209 |
+
| **63** (dark grey) | Overlap of primary object / affected zone |
|
| 210 |
+
| **127** (mid grey) | Affected region — shadows, reflections, new and old trajectories |
|
| 211 |
| **255** (white) | Background — keep as-is |
|
| 212 |
|
| 213 |
Use the **VLM-Mask-Reasoner** pipeline included in the repo to generate quadmasks automatically.
|
|
|
|
| 261 |
[🌐 Project Page](https://void-model.github.io/) | [💻 GitHub](https://github.com/void-model/VOID)
|
| 262 |
|
| 263 |
Upload a video and its **quadmask**, enter a prompt describing the scene *after* removal,
|
| 264 |
+
and VOID will erase the object along with its physical interactions.
|
| 265 |
|
| 266 |
> Built on **CogVideoX-Fun-V1.5-5B** fine-tuned for interaction-aware video inpainting.
|
| 267 |
"""
|