Giter Site home page Giter Site logo

pkulwj1994 / ebm-continual-learning Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shuangli59/ebm-continual-learning

0.0 1.0 0.0 1.45 MB

Energy-Based Models for Continual Learning Official Repository (PyTorch)

License: MIT License

Python 98.55% Shell 1.45%

ebm-continual-learning's Introduction

Energy-Based Models for Continual Learning

This project aims at classification continual learning problems using Energy-Based Models. Mainly based on our paper Energy-Based Models for Continual Learning.

  • Project Page

  • [Code] This code is the basic version of our paper. We will release the final version soon.


Requirements

The current version of the code has been tested with:

  • pytorch 1.4.0
  • torchvision 0.2.1

Training (Boundary-aware setting)

Split MNIST:

EBM:

sh scripts/boundary_aware/train_ebm_splitmnist.sh

Softmax-based classifier:

sh scripts/boundary_aware/train_sbc_splitmnist.sh

Permuted MNIST:

EBM:

sh scripts/boundary_aware/train_ebm_permmnist.sh

Softmax-based classifier:

sh scripts/boundary_aware/train_sbc_permmnist.sh

CIFAR-10:

EBM:

sh scripts/boundary_aware/train_ebm_cifar10.sh

Softmax-based classifier:

sh scripts/boundary_aware/train_sbc_cifar10.sh

CIFAR-100:

EBM:

sh scripts/boundary_aware/train_ebm_cifar100.sh

Softmax-based classifier:

sh scripts/boundary_aware/train_sbc_cifar100.sh


Training (Boundary-agnostic setting)

Split MNIST:

EBM:

sh scripts/boundary_agnostic/train_ebm_splitmnist.sh

Softmax-based classifier:

sh scripts/boundary_agnostic/train_sbc_splitmnist.sh

Permuted MNIST:

EBM:

sh scripts/boundary_agnostic/train_ebm_permmnist.sh

Softmax-based classifier:

sh scripts/boundary_agnostic/train_sbc_permmnist.sh

CIFAR-10:

EBM:

sh scripts/boundary_agnostic/train_ebm_cifar10.sh

Softmax-based classifier:

sh scripts/boundary_agnostic/train_sbc_cifar10.sh

CIFAR-100:

EBM:

sh scripts/boundary_agnostic/train_ebm_cifar100.sh

Softmax-based classifier:

sh scripts/boundary_agnostic/train_sbc_cifar100.sh


Acknowledgements

Parts of the code were based on the implementation of https://github.com/GMvandeVen/continual-learning.


Citation

Please consider citing our papers if you use this code in your research:

@article{li2020energy,
  title={Energy-Based Models for Continual Learning},
  author={Li, Shuang and Du, Yilun and van de Ven, Gido M and Torralba, Antonio and Mordatch, Igor},
  journal={arXiv preprint arXiv:2011.12216},
  year={2020}
}

ebm-continual-learning's People

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.