Giter Site home page Giter Site logo

modelzoo_continual's Introduction

Model Zoo

Implementation of Model Zoo: A Growing "Brain" That Learns Continually (ICLR 22)

Model Zoo tackles a sequence of tasks and aims to leverage past tasks to better solve new tasks, and use new tasks to improve upon past tasks. Model Zoo explicitly splits the capacity of the model to mitigate task-competition and better exploit the relationship between of tasks.

Setup:

To install a working environment run:

conda env create -f env.yaml

Download the .pkl files for Mini-imagenet (link) and copy the files to ./data/mini_imagenet/

Usage

The file modelzoo.py is used to run the Zoo. The -h flag can be used to list the argparse arguments. For example to run Model Zoo:

python modelzoo.py --data_config ./config/dataset/coarse_cifar100.yaml \
                   --hp_config ./config/hyperparam/wrn.yaml \
                   --epochs 100 --replay_frac 1.0

Directory Structure

├── modelzoo.py                   # Implementation of Model Zoo
├── config:                       # Configuration files
│   ├── dataset                    
│   └── hyperparam                  
├── datasets                      # Datasets and Dataloaders
│   ├── build_dataset.py          
│   ├── cifar.py                 
│   ├── data.py                 
│   ├── mini_imagenet.py           
│   ├── mnist.py               
│   ├── modmnist.py           
├── net                           # Neural network architectures
│   ├── build_net.py
│   └── wideresnet.py
│   └── smallconv.py
└── utils                         # Utilities for logging/training
    ├── config.py
    ├── logger.py
    └── run_net.py

If you find this code useful, consider citing

@inproceedings{
    ramesh2022model,
    title={Model Zoo: A Growing Brain That Learns Continually},
    author={Rahul Ramesh and Pratik Chaudhari},
    booktitle={International Conference on Learning Representations},
    year={2022},
    url={https://openreview.net/forum?id=WfvgGBcgbE7}
}

modelzoo_continual's People

Contributors

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