Skip to content
/ DDFP Public

[CVPR 2024] Towards the Uncharted: Density-Descending Feature Perturbation for Semi-supervised Semantic Segmentation

License

Notifications You must be signed in to change notification settings

Gavinwxy/DDFP

Repository files navigation

Towards the Uncharted: Density-Descending Feature Perturbation for Semi-supervised Semantic Segmentation

Towards the Uncharted: Density-Descending Feature Perturbation for Semi-supervised Semantic Segmentation
Xiaoyang Wang, Huihui Bai, Limin Yu, Yao Zhao, and Jimin Xiao.
In CVPR 2024.


Abstract: Semi-supervised semantic segmentation allows model to mine effective supervision from unlabeled data to complement label-guided training. Recent research has primarily focused on consistency regularization techniques, exploring perturbation-invariant training at both the image and feature levels. In this work, we proposed a novel feature-level consistency learning framework named Density-Descending Feature Perturbation (DDFP). Inspired by the low-density separation assumption in semisupervised learning, our key insight is that feature density can shed a light on the most promising direction for the segmentation classifier to explore, which is the regions with lower density. We propose to shift features with confident predictions towards lower-density regions by perturbation injection. The perturbed features are then supervised by the predictions on the original features, thereby compelling the classifier to explore less dense regions to effectively regularize the decision boundary. Central to our method is the estimation of feature density. To this end, we introduce a lightweight density estimator based on normalizing flow, allowing for efficient capture of the feature density distribution in an online manner. By extracting gradients from the density estimator, we can determine the direction towards less dense regions for each feature.

Getting Started

Installation

cd DDFP
conda create -n ddfp python=3.10
conda activate ddfp
pip install -r requirements.txt

Pretrained Weights

Download pretrained wegiths ResNet-101

├── DDFP/
    └── resnet101.pth

Data Preparation

├── Path_to_Pascal
    ├── JPEGImages
    └── SegmentationClass
    
├── Path_to_Cityscapes
    ├── leftImg8bit
    └── gtFine

Training

Navigate into exp/pascal/1464 and modify config.yaml and train.sh accordingly. By default, model is trained under Distributed Data Parallel mode.

sh train.sh <num_gpu> <port>

Citation

@inproceedings{wang2024ddfp,
  title= {Towards the Uncharted: Density-Descending Feature Perturbation for Semi-supervised Semantic Segmentation},
  author={Wang, Xiaoyang and Bai, Huihui and Yu, Limin and Zhao, Yao and Xiao, Jimin},
  booktitle={CVPR},
  year={2024},
}

Acknowledgement

This project is inspired by FlowGMM and our implementation borrows codes from FrEIA and UniMatch. We thank them for their effort in open-sourcing and maintaining the codes.

Contact

For questions, please contact: [email protected]

Update

Current repo requires further modifications and will be fixed and tested shortly.

About

[CVPR 2024] Towards the Uncharted: Density-Descending Feature Perturbation for Semi-supervised Semantic Segmentation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published