Giter VIP home page Giter VIP logo

ilm-norm's Introduction

Instance-Level Meta Normalization (ILM-Norm)

This repository contains the implementation of the paper Instance-Level Meta Normalization presented at CVPR 2019.

The code is based on the PyTorch example for training ResNet on Imagenet and Train CIFAR10 with PyTorch.

Table of Contents

  1. Introduction
  2. Requirements
  3. Usage
  4. Checkpoint
  5. Citing

Introduction

This paper presents a normalization mechanism called Instance-Level Meta Normalization (ILM-Norm) to address a learning-to-normalize problem. ILM-Norm learns to predict the normalization parameters via both the feature feed-forward and the gradient back-propagation paths. ILM-Norm provides a meta normalization mechanism and has several good properties. It can be easily plugged into existing instance-level normalization schemes such as Instance Normalization, Layer Normalization, or Group Normalization. ILM-Norm normalizes each instance individually and therefore maintains high performance even when small mini-batch is used. The experimental results show that ILM-Norm well adapts to different network architectures and tasks, and it consistently improves the performance of the original models.

Requirements

This implementation is developed for

  1. Python 3.6.5
  2. PyTorch 1.0.1
  3. CUDA 9.1

For compatibility to newer versions, please make a pull request.

Usage

There are two training files. One for CIFAR-10 and Cifar-100 train.py and the other for ImageNet imageNet.py.

Cifar

The network can be simply trained with python train.py or with optional arguments for different hyperparameters:

python train.py --data [cifar-10/cifar-100 folder]

The network can be also simply infered with the following command:

python train.py --infer [checkpoint folder] --data [cifar-10/cifar-100 folder]

ImageNet

For ImageNet the folder containing the dataset needs to be supplied

python imageNet.py --data [imagenet folder]

You can also infer the network with the following command:

python imageNet.py --infer [checkpoint folder] --data [imagenet folder]

Checkpoint

ilm+gn on imageNet: link

Citing

If you find this helps your research, please consider citing:

@conference{Jia2019,
title = {Instance-Level Meta Normalization},
author = {Songhao Jia and Ding-Jie Chen and Hwann-Tzong Chen},
year = {2019},
journal = {Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
}

ilm-norm's People

Contributors

gasoonjia avatar

Stargazers

Shi LiQing avatar  avatar An-zhi WANG avatar Ji Zhang avatar  avatar Tuhu avatar  avatar El Chapo avatar ZZSSCC  avatar Charles Foster avatar  avatar Senwei Liang avatar Tim avatar sunset avatar Chieh Hubert Lin avatar pp2 avatar Alexandr Kislinskiy avatar Tsu-Jui Fu avatar

Watchers

James Cloos avatar paper2code - bot 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.