Repository navigation
ViTMatte (base) for Redlamp, v2
Pre-releaseViTMatte (base) converted to Core ML for the edges of Redlamp's Subject, Background and People masks: stray hairs and fine edges. Redlamp downloads it from Settings › Models; nothing here needs downloading by hand. It replaces version 1, which Redlamp removes once it has this one.
Source: hustvl/vitmatte-base-composition-1k (ViTMatte, by J. Yao, X. Wang, S. Yang and B. Wang), weights licensed under the Apache License 2.0 (LICENSE.txt). They were trained on Composition-1k, made from Adobe's Deep Image Matting dataset (distributed by its authors on request, for research), and on Distinctions-646; those datasets' terms are their authors'.
Changes: converted by research/prototypes/masking/convert_vitmatte.py (fixed 1024 × 1024 tiles, with the backbone's position embeddings frozen for that size) and compress_vitmatte.py (8-bit weights in blocks of 32), as version 1 was; then decompress_vitmatte.py puts the 24 relative-position tables that attention's matmuls take as constants back in float16 (111.1 MB, against version 1's 108.8 MB). On macOS 27.0.1, Metal Performance Shaders Graph at times aborted as it prepared version 1's 8-bit tables for the GPU (MSK-33, #445). On the GPU this version's mattes are version 1's, bit for bit.
Files: each asset is named by its path in the model's folder, with / as __. Sizes and SHA-256 hashes are in packages/RedlampMasking/Resources/Models/vitmatte-base.json.