Giter VIP home page Giter VIP logo

cycle's Introduction

Looking through the past

This is a PyTorch implementation of the continual learning experiments with deep neural networks described in the following article:

Short version of this work is presented on Continual Learning worskshop at ICCV2023.

This repository is based on continual learning replay: https://github.com/GMvandeVen/continual-learning

Experiments are performed in the academic continual learning setting, whereby a classification-based problem is split up into multiple, non-overlapping contexts (or tasks, as they are often called) that must be learned sequentially.

Installation & requirements

The current version of the code has been tested with Python 3.10.4 on a Fedora operating system with the following versions of PyTorch and Torchvision:

  • pytorch 1.11.0
  • torchvision 0.12.0

Further Python-packages used are listed in requirements.txt. Assuming Python and pip are set up, these packages can be installed using:

pip install -r requirements.txt

The code in this repository itself does not need to be installed, but a number of scripts should be made executable:

chmod +x exps.sh exps_cycles.sh

Demos

./exps.sh

This runs experiments for BIR, BIR+SI and other methods for comparison for seed=1. Run this command on develop branch.

./exps_cycles.sh

This runs experiments for our method for seed=1. Run this command on laten_match_dist_cycle branch.

Citation

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

@article{khan2023looking,
  title={Looking through the past: better knowledge retention for generative replay in continual learning},
  author={Khan, Valeriya and Cygert, Sebastian and Deja, Kamil and Trzci{\'n}ski, Tomasz and Twardowski, Bart{\l}omiej},
  journal={arXiv preprint arXiv:2309.10012},
  year={2023}
}

cycle's People

Contributors

valeriya-khan 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.