Code Monkey home page Code Monkey logo

zipfls's Introduction

This repo is the official implementation of the ECCV2022 paper: Efficient One Pass Self-distillation with Zipf's Label Smoothing.

Framework & Comparison

[2022.9] Pytorch Zipf's label smoothing is uploaded! CIFAR, TinyImageNet, ImageNet, INAT-21 are now supported by our training codes.

[2022.7] MegEngine Zipf's label smoothing is uploaded!

Main Results

Method DenseNet121 DenseNet121 ResNet18 ResNet18
Arch CIFAR100 TinyImageNet CIFAR100 TinyImageNet
Pytorch Baseline 77.86±0.26 60.31±0.36 75.51±0.28 56.41±0.20
Pytorch Zipf's LS 79.03±0.32 62.64±0.30 77.38±0.32 59.25±0.20
Megengine Baseline 77.97±0.18 60.78±0.31 75.29±0.29 56.03±0.34
Megengine Zipf's LS 79.85±0.27 62.35±0.32 77.08±0.28 59.01±0.23

Training

train_baseline_cifar100_resnet18:

python3 train.py --ngpus 1 --dataset CIFAR100 --data_dir cifar100_data --arch CIFAR_ResNet18 --loss_lambda 0.0 --alpha 0.0 --dense

train_ZipfsLS_cifar100_resnet18:

python3 train.py --ngpus 1 --dataset CIFAR100 --data_dir cifar100_data --arch CIFAR_ResNet18 --loss_lambda 0.1 --alpha 0.1 --dense

See more examples in Makefile.

Liscense

Zipf's LS is released under the Apache 2.0 license. See LICENSE for details.

zipfls's People

Contributors

aaab8b avatar pingguanhua avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  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.