GithubHelp home page GithubHelp logo

rah-man / coscl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lywang3081/coscl

0.0 0.0 0.0 4.75 MB

Official Implementation of CoSCL: Cooperation of Small Continual Learners is Stronger than a Big One (ECCV2022).

License: MIT License

Shell 0.31% Python 46.38% HTML 26.93% Jupyter Notebook 26.36% Dockerfile 0.02%

coscl's Introduction


This code is the official implementation of our paper.

Execution Details

Requirements

  • Python 3
  • GPU 1080Ti / Pytorch 1.3.1+cu9.2 / CUDA 9.2

Download Dataset

Please download the datasets and put them into ./dat/CUB_200_2011 and ./dat/tiny-imagenet-200, respectively.

Execution command

The commands to run most of the experiments are included in script_classification.sh.

Below, we present the demo commands for our method with EWC as the default continual learner.

For small-scale images:

# CIFAR-100-SC
$ python3 ./main.py --experiment split_cifar100_sc_5 --approach ewc_coscl --lamb 40000 --lamb1 0.02 --use_TG --s_gate 100 --seed 0

# CIFAR-100-RS
$ python3 ./main.py --experiment split_cifar100_rs_5 --approach ewc_coscl --lamb 10000 --lamb1 0.02 --use_TG --s_gate 100 --seed 0

For large-scale images:

$ cd LargeScale_Image

# CUB-200-2011
$ python3 ./main.py --dataset CUB200 --trainer ewc_coscl --lamb 1 --lamb1 0.0001 --s_gate 100 --tasknum 10 --seed 0

# Tiny-ImageNet
$ python3 ./main.py --dataset tinyImageNet --trainer ewc_coscl --lamb 320 --lamb1 0.001 --s_gate 100 --tasknum 10 --seed 0

coscl's People

Contributors

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