Giter Club home page Giter Club logo

open's Introduction

OPeN

Shiran Zada, Michal Irani


This is the unofficial implementation of OPeN in the paper Pure Noise to the Rescue of Insufficient Data: Improving Imbalanced Classification by Training on Random Noise Images (ICML 2022 spotlight) in pytorch.

No official implementation code yet exists

Code structures are similar with the code in https://github.com/kaidic/LDAM-DRW.git

How to run the code

1. Setting up the python environment

  • PyTorch 1.2
  • TensorboardX
  • scikit-learn


2. Dataset

  • Imbalanced CIFAR. The original data will be downloaded and converted by imbalancec_cifar.py.


3. Run the code on CIFAR-10/100 long-tail datasets

Use the following command to run the code on CIFAR-10/100 long-tail datasets. For comparison, other loss_type & train_rule(train methods) are prepared in the code.

  • To train the ERM baseline on long-tailed imbalance with ratio of 100
python cifar_train.py --gpu 0 --imb_type exp --imb_factor 0.01 --loss_type CE --train_rule None --arch wide_resnet28_10
  • To train the ERM Loss along with OPeN on long-tailed imbalance with ratio of 100
python cifar_train.py --gpu 0 --imb_type exp --imb_factor 0.01 --loss_type CE --train_rule OPeN --arch wide_resnet28_10

Results

Baseline (ERM) OPeN + AA
CIFAR-10 LT 79.6 85.25
CIFAR-100 LT -- --

Reference

@article{DBLP:journals/corr/abs-2112-08810,
  author    = {Shiran Zada and
               Itay Benou and
               Michal Irani},
  title     = {Pure Noise to the Rescue of Insufficient Data: Improving Imbalanced
               Classification by Training on Random Noise Images},
  journal   = {CoRR},
  volume    = {abs/2112.08810},
  year      = {2021},
  url       = {https://arxiv.org/abs/2112.08810},
  eprinttype = {arXiv},
  eprint    = {2112.08810},
  timestamp = {Mon, 03 Jan 2022 15:45:35 +0100},
  biburl    = {https://dblp.org/rec/journals/corr/abs-2112-08810.bib},
  bibsource = {dblp computer science bibliography, https://dblp.org}
}

open's People

Contributors

bodhitrii avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.