Demo: predictions of this checkpoint on NYUv2 test scenes from our dataset mirror (RGB, depth input, prediction overlay; per-frame pixel accuracy vs. ground truth), rendered with the official code.
Unofficial mirror of the official TokenFusion weights from yikaiw/TokenFusion. The weights are unchanged; this repository adds a weights-only
model.safetensorscopy and aconfig.json.
SegFormer-B3 (MiT-B3) backbone with multimodal token fusion. The training args.json and logs from the official release are included under training/.
| Metric | Value |
|---|---|
| Pixel Acc. (%) | 78.7 |
| Mean Acc. (%) | 67.5 |
| Mean IoU (%) | 54.8 |
See the official repository for full tables and evaluation details.
| File | Content |
|---|---|
model-best.pth.tar |
original checkpoint, exactly as released |
model.safetensors |
the model weights only (bit-exact copy of the checkpoint's segmenter tensors; no optimizer state) |
config.json |
architecture, dataset, results and provenance |
training/args.json |
training arguments |
training/log.txt |
training log |
import json
from huggingface_hub import hf_hub_download
repo = "dronefreak/tokenfusion-segformer-b3-nyuv2"
config = json.load(open(hf_hub_download(repo, "config.json")))
ckpt = hf_hub_download(repo, "model-best.pth.tar") # original format: use it with the official code
print(config["architecture"], config["dataset"], ckpt)
Build the network with the official code (https://github.com/yikaiw/TokenFusion) using the matching config for this variant, then load
model-best.pth.tar exactly as you would the original download, or load model.safetensors with
safetensors.torch.load_file into the same model.
If you use these weights, please cite the original work:
@inproceedings{wang2022tokenfusion,
title = {Multimodal Token Fusion for Vision Transformers},
author = {Wang, Yikai and Chen, Xinghao and Cao, Lele and Huang, Wenbing and Sun, Fuchun and Wang, Yunhe},
booktitle = {CVPR},
year = {2022}
}
This is not an official release. All credit goes to the original authors (Yikai Wang, Xinghao Chen, Lele Cao, Wenbing Huang, Fuchun Sun, Yunhe Wang; Tsinghua University / Huawei Noah's Ark Lab). The weights are redistributed under the MIT license of the official repository. If you are an author and want this mirror changed or removed, please open a discussion.