NeWCRFs (Swin-L) trained on NYUv2

Demo: predicted vs. ground-truth depth on NYUv2 test scenes from our dataset mirror (per-frame AbsRel, Eigen crop); rendered with the official code.

Unofficial mirror of the official NeWCRFs weights from aliyun/NeWCRFs. The weights are unchanged; this repository adds a weights-only model.safetensors copy and a config.json.

Model

Swin Transformer encoder with neural-window fully-connected CRF decoder.

Results (reported by the authors)

Metric Value
Abs Rel 0.0952
Sq Rel 0.0443
RMSE 0.331
RMSE log 0.1185
delta<1.25 0.923
delta<1.25^2 0.992
delta<1.25^3 0.998
SILog 9.1023

See the official repository for full tables and evaluation details.

Files

File Content
model_nyu.ckpt original checkpoint, exactly as released
model.safetensors the model weights only (bit-exact copy of the checkpoint's model tensors; no optimizer state)
config.json architecture, dataset, results and provenance

Usage

import json
from huggingface_hub import hf_hub_download

repo = "dronefreak/newcrfs-nyuv2"
config = json.load(open(hf_hub_download(repo, "config.json")))
ckpt = hf_hub_download(repo, "model_nyu.ckpt")   # original format: use it with the official code
print(config["architecture"], config["dataset"], ckpt)

Build the network with the official code (https://github.com/aliyun/NeWCRFs) using the matching config for this variant, then load model_nyu.ckpt exactly as you would the original download, or load model.safetensors with safetensors.torch.load_file into the same model.

Citation

If you use these weights, please cite the original work:

@inproceedings{yuan2022newcrfs,
  title     = {NeWCRFs: Neural Window Fully-connected CRFs for Monocular Depth Estimation},
  author    = {Yuan, Weihao and Gu, Xiaodong and Dai, Zuozhuo and Zhu, Siyu and Tan, Ping},
  booktitle = {CVPR},
  year      = {2022}
}

Disclaimer

This is not an official release. All credit goes to the original authors (Weihao Yuan, Xiaodong Gu, Zuozhuo Dai, Siyu Zhu, Ping Tan; Alibaba Group). 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.

Downloads last month
-
Safetensors
Model size
0.3B params
Tensor type
I64
·
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Dataset used to train dronefreak/newcrfs-nyuv2

Collection including dronefreak/newcrfs-nyuv2

Paper for dronefreak/newcrfs-nyuv2