Vision & perception
Detection, matting, restoration, erasing, real-time perception and frame-by-frame video work.
5 posts
The video watermark demo samples a dozen frames and checks whether the background behind the watermark moves. If it does, a temporal median rebuilds it and nothing is downloaded; a static background gets a single MI-GAN inpaint. Also covered: re-encoding frame by frame with WebCodecs and muxing the audio back with ffmpeg.wasm.
The watermark, object-removal and inpainting pages share one set of brush controls, and their real weights mostly come down to the same 26.8 MiB MI-GAN ONNX. The exception is the video HD pass, which genuinely loads the 198 MiB LaMa checkpoint.
The super-resolution, restoration and enhancement demos share one set of controls, and with real weights wired up, four differently named cards resolve to three repositories, all Swin2SR exports. Here is how the substitutes map out, and why the task selector stops responding in real mode.
The models in our real-time category add up to under 15 MB. Landmarks, smoothing and tracking all have to fit inside one frame budget, and the skeleton shook until we changed a few things.
The smallest detector in our vision category is 2.5 MiB; the largest matting model is 93.9 MiB. The extra weight shows up along the edge, in two or three pixels. All three demos use the same sample images.