← 开源
VCIP-RGBD

DFormer

DFormers for Multimodal Semantic Segmentation

Model DevelopmentArchitecturePython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
514
Star
63
Fork
+2
本周
2
贡献者
创建于 2023-09-11 · 更新于 2026-10-13 · 今日第 17988 名
主要开发者
yinbowcaojiaolong

VCIP-RGBD/DFormer 排名第 17,988,有 514 个星标。

同类别比较

VCIP-RGBD/DFormer 排名第 17,988,此处有 8 个同类条目;XiuzeZhou/RUL 排名第 17,990。

同类别比较
名称排名指标
apple-aiml-research/ml-mdm17,966
语言:
Python
星标数:
515
分叉数:
37
简介:
Train high-quality text-to-image diffusion models in a data & compute efficient manner
circuitnet/CircuitNet17,967
语言:
Python
星标数:
515
分叉数:
86
简介:
CircuitNet: An Open-Source Dataset for Machine Learning Applications in Electronic Design Automation (EDA)
clvrai/SSGAN-Tensorflow17,968
语言:
Python
星标数:
515
分叉数:
164
简介:
A Tensorflow implementation of Semi-supervised Learning Generative Adversarial Networks (NIPS 2016: Improved Techniques for Training GANs).
Lizhen0628/text_classification17,985
语言:
Python
星标数:
514
分叉数:
73
简介:
使用rnn,lstm,gru,fasttext,textcnn,dpcnn,rnn-att,lstm-att,兼容huggleface/transformers,以及以transforemrs作为词嵌入模型,后面接入cnn、rnn、attention等等做文本分类。以及各个模型的对比
XiuzeZhou/RUL17,990
语言:
Jupyter Notebook
星标数:
514
分叉数:
83
简介:
Transformer Network for Remaining Useful Life Prediction of Lithium-Ion Batteries
alteryx/compose17,992
语言:
Python
星标数:
514
分叉数:
51
简介:
A machine learning tool for automated prediction engineering. It allows you to easily structure prediction problems and generate labels for supervised learning.
chaiyujin/glow-pytorch17,995
语言:
Python
星标数:
514
分叉数:
81
简介:
pytorch implementation of openai paper "Glow: Generative Flow with Invertible 1×1 Convolutions"
google-deepmind/dqn_zoo18,000
语言:
Python
星标数:
514
分叉数:
86
简介:
DQN Zoo is a collection of reference implementations of reinforcement learning agents developed at DeepMind based on the Deep Q-Network (DQN) agent.
关键参数与规格
关键参数与规格
参数值
语言Python
类别Model Development
子类别Architecture
关键词Computer vision
星标数514
分叉数63
贡献者2
创建日期2023-09-11
更新日期2026-10-13
1 天星标数0
7 天星标数2
排名17,988
上次排名17,760
排名变化-228
7 天星标排名8,909
上次 7 天星标排名8,964
7 天星标排名变化55
总星标排名18,955
上次总星标排名18,926
总星标排名变化-29
国家China
README 摘录

非常荣幸我们收到3D视觉工坊的邀请,我们在6月19日晚上19:00开展了关于DFormerv2的论文直播,有兴趣的同学可以观看直播回放,有问题欢迎在这个项目下提issue交流讨论,直播用到的PPT可以在这里

下载BaiduNetDisk。 >Paper Link | >Homepage | >公众号解读(集智书童) | >DFormer-SOD | >Jittor-Version(国产框架) | DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentation Bo-Wen Yin, Jiao-Long Cao, Ming-Ming Cheng, Qibin Hou* CVPR 2025. Paper Link | 中文版 | 直播回放 | PPT | Geometry prior demo | Jittor-Version(国产框架) | DFormer++: Improving RGBD Representation Learning for Semantic Segmentation Bo-Wen Yin, Jiao-Long Cao, Dan Xu, Ming

-Ming Cheng, Qibin Hou* IEEE TPAMI 2026. Paper Link | [Code (busy with work recently, and we will release it soon)] | :robot:RGB-D ImageNet and Pretrain(You can train your own encoders) :anchor:Application to new datasets(添加新数据集) We provide the geometry prior generation manner in DFormerv2, and you can further develope it and enhance the depth-related reasearch.

常见问题

记录了多少星标和分叉?

VCIP-RGBD/DFormer 有 514 个星标和 63 个分叉。

仓库排名是多少?

VCIP-RGBD/DFormer 排名第 17,988。

记录的语言和类别是什么?

VCIP-RGBD/DFormer 有 514 个星标,语言为 Python,类别为 Model Development。

哪个仓库排名最接近?

VCIP-RGBD/DFormer 与 XiuzeZhou/RUL 比较,后者排名第 17,990,有 514 个星标。

README

DFormer for RGBD Semantic Segmentation

非常荣幸我们收到3D视觉工坊的邀请,我们在6月19日晚上19:00开展了关于DFormerv2的论文直播,有兴趣的同学可以观看直播回放,有问题欢迎在这个项目下提issue交流讨论,直播用到的PPT可以在这里下载BaiduNetDisk。

This repository contains the official implementation of the following papers:

DFormer: Rethinking RGBD Representation Learning for Semantic Segmentation

Bowen Yin, Xuying Zhang, Zhongyu Li, Li Liu, Ming-Ming Cheng, Qibin Hou*

ICLR 2024. Paper Link | Homepage | 公众号解读(集智书童) | DFormer-SOD | Jittor-Version(国产框架) |

DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentation

Bo-Wen Yin, Jiao-Long Cao, Ming-Ming Cheng, Qibin Hou*

CVPR 2025. Paper Link | 中文版 | 直播回放 | PPT | Geometry prior demo | Jittor-Version(国产框架) |

DFormer++: Improving RGBD Representation Learning for Semantic Segmentation

Bo-Wen Yin, Jiao-Long Cao, Dan Xu, Ming-Ming Cheng, Qibin Hou*

IEEE TPAMI 2026. Paper Link | Code

OmniSegmentor: A Flexible Multi-Modal Learning Framework for Semantic Segmentation

Bo-Wen Yin, Jiao-Long Cao, Xuying Zhang, Yuming Chen, Ming-Ming Cheng, Qibin Hou*

Neurips 2025. Paper Link | [Code (busy with work recently, and we will release it soon)] |

:robot:RGB-D ImageNet and Pretrain(You can train your own encoders)

:anchor:Application to new datasets(添加新数据集)

We provide the geometry prior generation manner in DFormerv2, and you can further develope it and enhance the depth-related reasearch. We provide the RGBD pretraining code in RGBD-Pretrain. You can pretrain more powerful RGBD encoders and contribute to the RGBD research.

We invite all to contribute in making it more acessible and useful. If you have any questions about our work, feel free to contact us via e-mail (bowenyin@mail.nankai.edu.cn, caojiaolong@mail.nankai.edu.cn). If you are using our code and evaluation toolbox for your research, please cite this paper (BibTeX).

 ![](figs/DFormer.png)    

 
Figure 1: Comparisons between the existing methods and our DFormer (RGB-D Pre-training).






 ![](figs/manner.jpg)    

 
Figure 2: Comparisons among the main RGBD segmentation pipelines and our approach. (a) Use dual encoders to encode RGB and depth respectively and design fusion modules to fusion them, like CMX and GeminiFUsion; (b) Adopt an unified RGBD encoder to extract and
fuse RGBD features, like DFormer; (c) DFormerv2 use depth to form
a geometry prior of the scene and then enhance the visual features.






 ![](figs/geo_attention.png)    

 
Figure 3: The geometry attention map in our DFormerv2 and the effect of other attention mechanisms. Our geometry attention is endowed with the 3D geometry perception ability and can focus on the related regions of the whole scene. 
A simple visualization demo is provided at 
https://huggingface.co/spaces/bbynku/DFormerv2.







 ![](figs/dformerpp/fig2_perf_cost.png)    


Figure 4: Performance–efficiency trade-off on NYU Depth v2. DFormer++ reaches 59.0% mIoU
with a stronger accuracy–MACs balance than prior RGB-D segmentation methods.

1. 🌟 NEWS

  • [2026/01] DFormer++ is published in IEEE TPAMI 2026. Code is available in this repo (models/encoders/DFormerPP.py).
  • [2025/09/19] Our OmniSegmentor has been accepted by Neurips 2025, the code are coming soon.
  • [2025/04/08] The code of DFormerv2 is available.
  • [2025/03/09] Our DFormerv2 has been accpeted by CVPR 2025.
  • [2025/02/19] The jittor implementation of DFormer is avaiable at Jittor-Version.
  • [2024/10/12] Based on our DFormer, Wu's method UBCRCL has won the RUNNER-up at Endoscopic Vision Challenge SegSTRONG-C Subchallenge of MICCAI 24. Congratulation!
  • [2024/04/21] We have upgraded and optimized the framework, greatly reducing training time, i.e., training duration for DFormer-L is reduced to ~12h from over 1day.
  • [2024/01/16] Our DFormer has been accpeted by The International Conference on Learning Representations (ICLR 2024).

2. 🚀 Get Start

0. Install

conda create -n dformer python=3.10 -y
conda activate dformer

# CUDA 11.8
conda install pytorch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 pytorch-cuda=11.8 -c pytorch -c nvidia

pip install mmcv==2.1.0 -f https://download.openmmlab.com/mmcv/dist/cu118/torch2.1/index.html

pip install tqdm opencv-python scipy tensorboardX tabulate easydict ftfy regex timm

Optional: install the TransNeXt swattention CUDA extension for faster local attention in DFormer++. Without it, a pure-PyTorch unfold fallback is used automatically.

1. Download Datasets and Checkpoints.

  • Datasets:

By default, you can put datasets into the folder 'datasets' or use 'ln -s path_to_data datasets'.

Datasets GoogleDrive OneDrive BaiduNetdisk

Compred to the original datasets, we map the depth (.npy) to .png via 'plt.imsave(save_path, np.load(depth), cmap='Greys_r')', reorganize the file path to a clear format, and add the split files (.txt).

  • Checkpoints:

ImageNet-1K Pre-trained and NYUDepth / SUNRGBD trained DFormer, DFormerv2, and DFormer++ checkpoints can be downloaded at:

Weights DFormer DFormerv2 DFormer++
Pretrained GoogleDrive, OneDrive, BaiduNetdisk BaiduNetdisk, HuggingFace Coming soon
NYUDepthv2 GoogleDrive, OneDrive, BaiduNetdisk BaiduNetdisk, HuggingFace Coming soon
SUNRGBD GoogleDrive, OneDrive, BaiduNetdisk BaiduNetdisk, HuggingFace Coming soon

Orgnize the checkpoints and dataset folder in the following structure:


|-- 
    |-- 
    |-- 
    |-- 
    |-- 
    |-- 
    |-- 
    |-- 
    |-- 
    |-- 
    |-- 
|-- 
    |-- 
        |-- ...
    |-- 
        |-- ...

|-- 
    |-- 
        |-- .
        |-- .
        ...
    |-- 
        |-- .
        |-- .
    |-- train.txt
    |-- test.txt
|-- 
|-- ...

2. Train.

You can change the local_config files in the script to choose the model for training.

# DFormer++ (TPAMI 2026) — recommended
bash train.sh local_configs.NYUDepthv2.DFormerPP_B
# bash train.sh local_configs.NYUDepthv2.DFormerPP_S
# bash train.sh local_configs.NYUDepthv2.DFormerPP_T

# DFormer / DFormerv2
# bash train.sh local_configs.NYUDepthv2.DFormer_Base
# bash train.sh local_configs.NYUDepthv2.DFormerv2_B

After training, the checkpoints will be saved in the path checkpoints/XXX, where the XXX depends on the training config.

3. Eval.

You can change the local_config files and checkpoint path in the script to choose the model for testing.

bash eval.sh

4. Visualize.

bash infer.sh

5. FLOPs & Parameters.

PYTHONPATH="$(dirname $0)/..":$PYTHONPATH python benchmark.py --config local_configs.NYUDepthv2.DFormer_Large

6. Latency.

PYTHONPATH="$(dirname $0)/..":$PYTHONPATH python utils/latency.py --config local_configs.NYUDepthv2.DFormer_Large

ps: The latency highly depends on the devices. It is recommended to compare the latency on the same devices.

🚩 Performance

 ![](figs/Semseg.jpg)    

 
Table 1: Comparisons between the existing methods and our DFormer.






 ![](figs/dformerv2_table.jpg)    

 
Table 2: Comparisons between the existing methods and our DFormerv2.

DFormer++ upgrades the conference DFormer along four axes: a unified depth-guided attention block, fuller RGB-D pretraining analysis, broader benchmarks (e.g., Stanford2D3D / Cityscapes), and stronger accuracy–efficiency trade-offs.

Model Params MACs NYU Depth v2 mIoU
DFormer++-T 17.3 M 29.5 G 57.0
DFormer++-S 37.2 M 56.4 G ~58.1
DFormer++-B 66.7 M 97.5 G 59.0

🕙 ToDo

  • [ ] Tutorial on applying the DFormer encoder to the frameworks of other tasks
  • [-] Release the code of RGB-D pre-training.
  • [-] Tutorial on applying to a new dataset.
  • [-] Release the DFormer code for RGB-D salient obejct detection.

We invite all to contribute in making it more acessible and useful. If you have any questions or suggestions about our work, feel free to contact me via e-mail (bowenyin@mail.nankai.edu.cn) or raise an issue.

Reference

You may want to cite:

@inproceedings{yin2024dformer,
  title={DFormer: Rethinking RGBD Representation Learning for Semantic Segmentation},
  author={Yin, Bowen and Zhang, Xuying and Li, Zhong-Yu and Liu, Li and Cheng, Ming-Ming and Hou, Qibin},
  booktitle={ICLR},
  year={2024}
}

@inproceedings{yin2025dformerv2,
  title={DFormerv2: Geometry Self-Attention for RGBD Semantic Segmentation},
  author={Yin, Bo-Wen and Cao, Jiao-Long and Cheng, Ming-Ming and Hou, Qibin},
  booktitle={Proceedings of the Computer Vision and Pattern Recognition Conference},
  pages={19345--19355},
  year={2025}
}

@article{yin2026dformerpp,
  title={DFormer++: Improving RGBD Representation Learning for Semantic Segmentation},
  author={Yin, Bo-Wen and Cao, Jiao-Long and Xu, Dan and Cheng, Ming-Ming and Hou, Qibin},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  volume={48},
  number={7},
  pages={7195--7208},
  year={2026},
  doi={10.1109/TPAMI.2026.3658114}
}

@article{yin2025omnisegmentor,
  title={OmniSegmentor: A Flexible Multi-Modal Learning Framework for Semantic Segmentation},
  author={Yin, Bo-Wen and Cao, Jiao-Long and Zhang, Xuying and Chen, Yuming and Cheng, Ming-Ming and Hou, Qibin},
  journal={arXiv preprint arXiv:2509.15096},
  year={2025}
}

Acknowledgment

Our implementation is mainly based on mmsegmentaion, CMX and CMNext. Thanks for their authors.

License

Code in this repo is for non-commercial use only.

排名相邻
同类项目