total-disruption/svor-text-remove

SVOR video text removal with Wan2.1-VACE-1.3B and Stage 1 + Stage 2 LoRA. Apache 2.0. https://github.com/xiaomi-research/SVOR

Public
22 runs

SVOR text removal

Remove burned-in text or other masked objects with SVOR — Stable Video Object Removal, Wan2.1-VACE-1.3B and both SVOR Stage 1 / Stage 2 LoRAs.

Code and public weights: Apache 2.0. See the SVOR license and upstream model cards.

Inputs and output

  • video: source video with constant frame rate.
  • mask: matching binary video mask, or a static PNG. White (grayscale >127) defines the allowable edit support S. Outside S, decoded source RGB pixels are preserved exactly.
  • Optional inpaint_mask: a smaller binary erase core C, contained in S in every frame. Cover the actual letters, including outlines and fades, or the entire opaque caption plate. With C, neural inference uses C and the final composite feathers its boundary within S. Without C, S is both the neural mask and the hard replacement area.
  • num_inference_steps=20, seed=43, crop_margin=64. Optional scene_cuts contains comma-separated boundary frame indices.

For C/S, the composite alpha is Gaussian 11×11, sigma 3, after ellipse 9×9 dilation of C; alpha is forced to 1 on C and 0 outside S. To allow its full transition, construct S as ellipse 9×9 dilation of C followed by square 11×11 binary dilation. A smaller S clips that transition.

Each worker loads the model once in setup. Inference uses native-resolution mask bounding boxes with context, 81-frame windows and 16-frame overlaps. There is no automatic scene detector.

Output is a lossless RGB H.264 MP4 retaining dimensions, frame rate, decoded frame count and original audio streams. Some browser/mobile players do not support this profile; download for editing or transcode for playback. Variable frame rate, non-square pixels and rotation metadata are rejected.

Validation status

Experimental: cloud inference and exact outside-mask compositing have been verified. Inpainting quality has not passed production acceptance: visible tone seams and altered fabric details can occur inside the mask. Inspect results before use.

A five-clip validation batch at 720×416 (63 seconds total; one clip at 60 fps, four at 30 fps) used 20 steps, seed 43 and margin 64. Measured processing was 1,445.15 seconds: 22.94 processing seconds per video second, or $1.342 of L40S processing per minute of this particular video mix. This excludes optional external OCR/vision classification. Request creation to predict start ranged from 159.79 to 313.78 seconds; queue and setup could not be separated. These measurements do not guarantee performance or quality on other inputs.

Hardware: NVIDIA L40S (gpu-l40s), public community model, no dedicated deployment or minimum instances. Public-model setup and idle time are not billed; processing time is billed by Replicate at $0.000975/second.

This model card and container contain no private customer footage. Use private API predictions for private inputs; do not publish them as examples. Any author-published sample must be synthetic or openly licensed.

Model created