sam-motamed commited on
Commit
3e5f135
Β·
verified Β·
1 Parent(s): 9ac3e91

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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 = 197
43
- TEMPORAL_WIN = 85
44
  FPS = 12
45
  WEIGHT_DTYPE = torch.bfloat16
46
  NEG_PROMPT = (
@@ -120,8 +120,8 @@ def load_quadmask_tensor(path: str) -> torch.Tensor:
120
 
121
  Quadmask pixel values:
122
  0 β†’ primary object (to erase)
123
- 63 β†’ overlap / interaction zone
124
- 127 β†’ affected region (shadows, reflections …)
125
  255 β†’ background (keep)
126
 
127
  After quantisation the mask is inverted so 255 = "erase", 0 = "keep",
@@ -243,7 +243,7 @@ with gr.Blocks(title="VOID – Video Object & Interaction Deletion") as demo:
243
  [🌐 Project Page](https://void-model.github.io/) | [πŸ’» GitHub](https://github.com/void-model/VOID)
244
 
245
  Upload a video and its **quadmask**, enter a prompt describing the scene *after* removal,
246
- and VOID will erase the object along with its physical interactions (shadows, deformations, secondary motion).
247
 
248
  > Built on **CogVideoX-Fun-V1.5-5B** fine-tuned for interaction-aware video inpainting.
249
  """
 
39
  VOID_CKPT_FILE = "void_pass1.safetensors"
40
 
41
  SAMPLE_SIZE = (384, 672) # H Γ— W
42
+ MAX_VID_LEN = 60
43
+ TEMPORAL_WIN = 60
44
  FPS = 12
45
  WEIGHT_DTYPE = torch.bfloat16
46
  NEG_PROMPT = (
 
120
 
121
  Quadmask pixel values:
122
  0 β†’ primary object (to erase)
123
+ 63 β†’ overlap of affected region/ primary object
124
+ 127 β†’ affected region (shadows, reflections, new trajectory)
125
  255 β†’ background (keep)
126
 
127
  After quantisation the mask is inverted so 255 = "erase", 0 = "keep",
 
243
  [🌐 Project Page](https://void-model.github.io/) | [πŸ’» GitHub](https://github.com/void-model/VOID)
244
 
245
  Upload a video and its **quadmask**, enter a prompt describing the scene *after* removal,
246
+ and VOID will erase the object along with its physical interactions.
247
 
248
  > Built on **CogVideoX-Fun-V1.5-5B** fine-tuned for interaction-aware video inpainting.
249
  """