All Projects → LiYingwei → ShapeTextureDebiasedTraining

LiYingwei / ShapeTextureDebiasedTraining

Licence: MIT license
Code and models for the paper Shape-Texture Debiased Neural Network Training (ICLR 2021)

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ShapeTextureDebiasedTraining

Texture Vs Shape
Pre-trained models, data, code & materials from the paper "ImageNet-trained CNNs are biased towards texture; increasing shape bias improves accuracy and robustness" (ICLR 2019 Oral)
Stars: ✭ 556 (+485.26%)
Mutual labels:  shape, texture
Triplet Attention
Official PyTorch Implementation for "Rotate to Attend: Convolutional Triplet Attention Module." [WACV 2021]
Stars: ✭ 222 (+133.68%)
Mutual labels:  paper, imagenet
euclid
Vector math, geometry, reference frame, and shapes 2D & 3D
Stars: ✭ 22 (-76.84%)
Mutual labels:  shape
SKNet-PyTorch
Nearly Perfect & Easily Understandable PyTorch Implementation of SKNet
Stars: ✭ 62 (-34.74%)
Mutual labels:  imagenet
imagenet-autoencoder
Autoencoder trained on ImageNet Using Torch 7
Stars: ✭ 18 (-81.05%)
Mutual labels:  imagenet
NotQuests
Flexible, open & solid paper Quest Plugin [with GUI]
Stars: ✭ 32 (-66.32%)
Mutual labels:  paper
RxCocoa-Texture
RxCocoa Extension Library for Texture.
Stars: ✭ 98 (+3.16%)
Mutual labels:  texture
flPapers
Paper collection of federated learning. Conferences and Journals Collection for Federated Learning from 2019 to 2021, Accepted Papers, Hot topics and good research groups. Paper summary
Stars: ✭ 76 (-20%)
Mutual labels:  paper
PyTorch-AdaIN-StyleTransfer
This project is an unofficial implementation of the paper: Arbitrary Style Transfer in Real-time with Adaptive Instance Normalization
Stars: ✭ 28 (-70.53%)
Mutual labels:  paper
Stochastic-Quantization
Training Low-bits DNNs with Stochastic Quantization
Stars: ✭ 70 (-26.32%)
Mutual labels:  imagenet
paper-terminal
Print Markdown to a paper in your terminal
Stars: ✭ 33 (-65.26%)
Mutual labels:  paper
bpmn-layout-generators
Tools for generating missing BPMNDiagram elements in BPMN files
Stars: ✭ 27 (-71.58%)
Mutual labels:  shape
SkyWarsReloaded
The most popular Skywars plugin ever built for Spigot and Bukkit!
Stars: ✭ 34 (-64.21%)
Mutual labels:  paper
DeepCAD
code for our ICCV 2021 paper "DeepCAD: A Deep Generative Network for Computer-Aided Design Models"
Stars: ✭ 74 (-22.11%)
Mutual labels:  paper
Neural-Architecture-Search
This repo is about NAS
Stars: ✭ 26 (-72.63%)
Mutual labels:  paper
FieldedSDM
Fielded Sequential Dependence Model (code and runs)
Stars: ✭ 32 (-66.32%)
Mutual labels:  paper
SharpPeleeNet
ImageNet pre-trained SharpPeleeNet can be used in real-time Semantic Segmentation/Objects Detection
Stars: ✭ 13 (-86.32%)
Mutual labels:  imagenet
deeplearning-paper-notes
Reading notes on deep learning papers---深度学习论文阅读笔记
Stars: ✭ 36 (-62.11%)
Mutual labels:  paper
datumaro
Dataset Management Framework, a Python library and a CLI tool to build, analyze and manage Computer Vision datasets.
Stars: ✭ 274 (+188.42%)
Mutual labels:  imagenet
AutoInAgda
Proof automation – for Agda, in Agda.
Stars: ✭ 38 (-60%)
Mutual labels:  paper

Shape-Texture Debiased Neural Network Training

Code and models for the paper Shape-Texture Debiased Neural Network Training (ICLR 2021).

Introduction

Convolutional Neural Networks are often biased towards either texture or shape, depending on the training dataset (Geirhos et al. 2019). Our ablation shows that such bias degenerates model performance. Motivated by this observation, we develop a simple algorithm for shape-texture debiased learning.

Experiments show that our method successfully improves model performance on several image recognition benchmarks and adversarial robustness. For example, by training on ImageNet, it helps ResNet-152 achieve substantial improvements on ImageNet (+1.2%), ImageNet-A (+5.2%), ImageNet-C (+8.3%) and Stylized-ImageNet (+11.1%), and on defending against FGSM adversarial attacker on ImageNet (+14.4%). Our method also claims to be compatible to other advanced data augmentation strategies, eg, Mixup and CutMix.

Dependencies:

  • PyTorch = 1.4.0 with GPU support

Model Zoo:

Shape-Texture Debiased Models ImageNet (Top-1 Acc.)
ResNet-50 ⬇️ 76.9
ResNet-101 ⬇️ 78.9
ResNet-152 ⬇️ 79.8
Mixup-ResNeXt-101 ⬇️ 80.5
CutMix-ResNeXt-101 ⬇️ 81.2

We also provide the checkpoint for the Shape-Biased ResNet-50 ⬇️ and the Texture-Biased ResNet-50 ⬇️. See issue#2 for more details.

Training & Testing:

Please see the Training recipes / Testing recipes for how to train / test the models.

Acknowledgements

Part of this code comes from pytorch-classification and AdaIN.

Citation

If you use our code, models or wish to refer to our results, please use the following BibTex entry:

@article{li2020shapetexture,
  author  = {Li, Yingwei and Yu, Qihang and Tan, Mingxing and Mei, Jieru and Tang, Peng and Shen, Wei and Yuille, Alan and Xie, Cihang},
  title   = {Shape-Texture Debiased Neural Network Training},
  journal = {arXiv preprint arXiv:2010.05981},
  year    = {2020}
}
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].