All Projects β†’ twke18 β†’ Adaptive_affinity_fields

twke18 / Adaptive_affinity_fields

Licence: other
Adaptive Affinity Fields for Semantic Segmentation

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Adaptive affinity fields

Seg Uncertainty
IJCAI2020 & IJCV 2020 πŸŒ‡ Unsupervised Scene Adaptation with Memory Regularization in vivo
Stars: ✭ 202 (-15.83%)
Mutual labels:  semantic-segmentation
Deeplabv3.pytorch
PyTorch implementation of DeepLabv3
Stars: ✭ 211 (-12.08%)
Mutual labels:  semantic-segmentation
Deep Learning In Production
Develop production ready deep learning code, deploy it and scale it
Stars: ✭ 216 (-10%)
Mutual labels:  semantic-segmentation
Semantic Segmentation Suite
Semantic Segmentation Suite in TensorFlow. Implement, train, and test new Semantic Segmentation models easily!
Stars: ✭ 2,395 (+897.92%)
Mutual labels:  semantic-segmentation
Intrada
Unsupervised Intra-domain Adaptation for Semantic Segmentation through Self-Supervision (CVPR 2020 Oral)
Stars: ✭ 211 (-12.08%)
Mutual labels:  semantic-segmentation
Tensorflow Deeplab Lfov
DeepLab-LargeFOV implemented in tensorflow
Stars: ✭ 218 (-9.17%)
Mutual labels:  semantic-segmentation
Keras Unet
Helper package with multiple U-Net implementations in Keras as well as useful utility tools helpful when working with image semantic segmentation tasks. This library and underlying tools come from multiple projects I performed working on semantic segmentation tasks
Stars: ✭ 196 (-18.33%)
Mutual labels:  semantic-segmentation
Decouplesegnets
Implementation of Our ECCV2020-work: Improving Semantic Segmentation via Decoupled Body and Edge Supervision
Stars: ✭ 232 (-3.33%)
Mutual labels:  semantic-segmentation
Fcn
Chainer Implementation of Fully Convolutional Networks. (Training code to reproduce the original result is available.)
Stars: ✭ 211 (-12.08%)
Mutual labels:  semantic-segmentation
Cylinder3d
Rank 1st in the leaderboard of SemanticKITTI semantic segmentation (both single-scan and multi-scan) (Nov. 2020) (CVPR2021 Oral)
Stars: ✭ 221 (-7.92%)
Mutual labels:  semantic-segmentation
Dsrg
Weakly-Supervised Semantic Segmentation Network with Deep Seeded Region Growing (CVPR 2018).
Stars: ✭ 206 (-14.17%)
Mutual labels:  semantic-segmentation
Computervisiondatasets
Stars: ✭ 207 (-13.75%)
Mutual labels:  semantic-segmentation
Smoothly Blend Image Patches
Using a U-Net for image segmentation, blending predicted patches smoothly is a must to please the human eye.
Stars: ✭ 218 (-9.17%)
Mutual labels:  semantic-segmentation
Fast Semantic Segmentation
ICNet and PSPNet-50 in Tensorflow for real-time semantic segmentation
Stars: ✭ 203 (-15.42%)
Mutual labels:  semantic-segmentation
Asis
Associatively Segmenting Instances and Semantics in Point Clouds, CVPR 2019
Stars: ✭ 228 (-5%)
Mutual labels:  semantic-segmentation
Fastseg
πŸ“Έ PyTorch implementation of MobileNetV3 for real-time semantic segmentation, with pretrained weights & state-of-the-art performance
Stars: ✭ 202 (-15.83%)
Mutual labels:  semantic-segmentation
Lightnetplusplus
LightNet++: Boosted Light-weighted Networks for Real-time Semantic Segmentation
Stars: ✭ 218 (-9.17%)
Mutual labels:  semantic-segmentation
Fast Scnn Pytorch
A PyTorch Implementation of Fast-SCNN: Fast Semantic Segmentation Network
Stars: ✭ 239 (-0.42%)
Mutual labels:  semantic-segmentation
Unet Pytorch
U-Net implementation for PyTorch based on https://arxiv.org/abs/1505.04597
Stars: ✭ 229 (-4.58%)
Mutual labels:  semantic-segmentation
Nncf
PyTorch*-based Neural Network Compression Framework for enhanced OpenVINOβ„’ inference
Stars: ✭ 218 (-9.17%)
Mutual labels:  semantic-segmentation

Adaptive Affinity Fields for Semantic Segmentation

By Tsung-Wei Ke*, Jyh-Jing Hwang*, Ziwei Liu, and Stella X. Yu (* equal contribution)

Semantic segmentation has made much progress with increasingly powerful pixel-wise classifiers and incorporating structural priors via Conditional Random Fields (CRF) or Generative Adversarial Networks (GAN). We propose a simpler alternative that learns to verify the spatial structure of segmentation during training only. Unlike existing approaches that enforce semantic labels on individual pixels and match labels between neighbouring pixels, we propose the concept of Adaptive Affinity Fields (AAF) to capture and match the semantic relations between neighbouring pixels in the label space. We use adversarial learning to select the optimal affinity field size for each semantic category. It is formulated as a minimax problem, optimizing our segmentation neural network in a best worst-case learning scenario. AAF is versatile for representing structures as a collection of pixel-centric relations, easier to train than GAN and more efficient than CRF without run-time inference. Our extensive evaluations on PASCAL VOC 2012, Cityscapes, and GTA5 datasets demonstrate its above-par segmentation performance and robust generalization across domains.

AAF is published in ECCV 2018, see our paper for more details.

  • Multi-GPU SyncBatchNorm has been released!

Prerequisites

  1. Linux
  2. Python2.7 or Python3 (>=3.5)
  3. Cuda 8.0 and Cudnn 6

Required Python Packages

  1. tensorflow 1.4 (for versions >= 1.6 might cause OOM error)
  2. numpy
  3. scipy
  4. tqdm
  5. PIL
  6. opencv

Data Preparation

ImageNet Pre-Trained Models

Download ResNet101.v1 from Tensorflow-Slim.

Training

  • Baseline Models:
python pyscripts/train/train.py
  • Baseline Models (Multi-GPUs):
python pyscripts/train/train_mgpu.py
  • Affinity
python pyscripts/train/train_affinity.py
  • Affinity (Multi-GPUs)
python pyscripts/train/train_affinity_mgpu.py
  • AAF
python pyscripts/train/train_aaf.py
  • AAF (Multi-GPUs)
python pyscripts/train/train_aaf_mgpu.py

Inference

  • Single-Scale Input only
python pyscripts/inference/inference.py
  • Multi-Scale Inputs and Left-Right Flipping (opencv is required)
python pyscripts/inference/inference_msc.py

Benchmarking

  • mIoU
python pyscripts/benchmark/benchmark_by_mIoU.py
  • instance-wise mIoU
python pyscripts/benchmark/benchmark_by_instance.py

See our bash script examples for the corresponding input arguments.

Citation

If you find this code useful for your research, please consider citing our paper Adaptive Affinity Fields for Semantic Segmentation.

@inproceedings{aaf2018,
 author = {Ke, Tsung-Wei and Hwang, Jyh-Jing and Liu, Ziwei and Yu, Stella X.},
 title = {Adaptive Affinity Fields for Semantic Segmentation},
 booktitle = {European Conference on Computer Vision (ECCV)},
 month = {September},
 year = {2018} 
}

License

AAF is released under the MIT License (refer to the LICENSE file for details).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].