GithubHelp home page GithubHelp logo

vlomonaco / core50 Goto Github PK

View Code? Open in Web Editor NEW
118.0 7.0 26.0 65.06 MB

CORe50: a new Dataset and Benchmark for Continual Learning

Home Page: http://vlomonaco.github.io/core50

License: Other

Python 91.16% Shell 8.84%
benchmark caffe dataset deep-learning computer-vision object-recognition continuous-learning paper convolutional-neural-networks

core50's Introduction

CORe50

License: CC BY 4.0 built with Python2.7 built with Caffe built with Sacred

A new Dataset and Benchmark for Continual Learning and Object Recognition, Detection and Segmentation


  • CORe50 core code-base
  • CORe50 benchmark configuration files
  • Easy-to-access results data and batches configurations
  • Easy-setup, getting started and Python data loader
  • Experiments ported to Python 3.x
  • New realease and additional baselines within Avalanche

In this page we provide the code and all the materials related to the CORe50 benchmark. If you plan to use this dataset or other resources you'll find in this page, please cite our latest papers "CORe50: a New Dataset and Benchmark for Continuous Object Recognition" and "Fine-Grained Continual Learning":

@InProceedings{lomonaco2017core50,
   title = {CORe50: a New Dataset and Benchmark for Continuous Object Recognition},
   author = {Vincenzo Lomonaco and Davide Maltoni},
   booktitle = {Proceedings of the 1st Annual Conference on Robot Learning},
   pages = {17--26},
   year = {2017},
   volume = {78}
}

@article{lomonaco2019nicv2,
   title = {Fine-Grained Continual Learning},
   author = {Vincenzo Lomonaco and Davide Maltoni and Lorenzo Pellegrini},
   journal = {Arxiv preprint arXiv:1907.03799},
   year = {2019}
}

You can find more information about the dataset/benchmark as well as additional data to download at: vlomonaco.github.io/core50.


Dependencies

In order to extecute the code in the repository you'll need to install the following dependencies in a Python 3.x environment:

  • Numpy: Matrices operations and stuff
pip install numpy
pip install sacred
  • Caffe: Current DL back-end (easily interchangeable)

Follow the step-by-step guide for installing caffe here.


Project Structure

Up to now the projects is structured as follows:

  • confs/: In this folder you can find all the experiments configurations and the caffe definition files. sI, sII and sIII stand for the NI, NC and NIC scenarios, respectively.
  • core/: The actual code of the benchmark.
  • data/: After the setup it will be created and filled with data needed for the experiments. It will also be used for storing partial computations.
  • extras/: Results and configuration files you can download without delving into the code.
  • scripts/: It contains useful scripts to help you downloading the necessary materials, setup the environment or load the data for your experiments in Python.
  • LICENSE: Standard Creative Commons Attribution 4.0 International License.
  • README.md: This instructions file.
  • run_sI_exps.sh: Simple bash script for running the "New Instances (NI)" experiments with the different architectures and strategies
  • run_sII_exps.sh: Simple bash script for running the "New Classes (NC)" experiments with the different architectures and strategies
  • run_sIII_exps.sh: Simple bash script for running the "New Instances and Classes (NIC)" experiments with the different architectures and strategies

Getting Started

First of all, let's clone the repository:

git clone https://github.com/vlomonaco/core50.git

Then, in order to run the experiments and reproduce the benchmark we need to download the pre-trained models and the CORe50 dataset. This can be automatically done using the script provided:

cd core50
./scripts/bash/fetch_data_and_setup.sh

All the data will be downloaded in the data/ directory. After this initial step you can directly run the experiments with the bash scripts run_sI_exps.sh, run_sII_exps.sh and run_sIII_exps.sh for the NI, NC and NIC scenarios respectively.

For example, reproducing the first scenario experiments can be as easy as running:

./run_sI_exps.sh

Since this experiments can take a while (also more than 24h depending on the scenario) you can also disable some experiments just by commenting them in the bash script.


Troubleshooting

  • If you find different results from out benchmark (for a few percentage points) that is to be expected! First of all because we use the cudnn engine which is not fully deterministic for convolutions. Second because the error may be accumulated during the incremental learning process. If you want full reproducibility (which means a ~2x in terms of time needed) just set the engine param of convolutions to 1.

  • If you find some trouble with the freezeweights strategy this is probably because you need to reset the learning rate multipliers in the prototxt (sorry, my bad.. I'm currently working on a new version of the code for creating the prototxt files instead of modifying them on the fly.).

  • Hey! If you find any trouble don't get frustrated, just ask, we'll answer in a few hours! :-)


License

This work is licensed under a Creative Commons Attribution 4.0 International License.


Author

core50's People

Contributors

vlomonaco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

core50's Issues

Download URL broken

Hi, the download URLs seem broken (HTTP ERROR 503 at 3/1/2023), could authors provide some other links (e.g., Google Drive) to download?

Train on the entire dataset without CL

Hello Vlomonaco,
I would like to ask if you have ever trained on the entire dataset without CL? I tried to get some baselines but the accuracy is only around 50%. I already used the models which are from simple to complex, for instance, ConvNet, Resnet, and ViT but the accuracies are just around 50%.

Can't download data - broken link

Seems like your link is broken

wget http://bias.csr.unibo.it/maltoni/download/core50/core50_imgs.npz
--2021-02-04 12:54:18--  http://bias.csr.unibo.it/maltoni/download/core50/core50_imgs.npz
Resolving bias.csr.unibo.it (bias.csr.unibo.it)... 137.204.72.188
Connecting to bias.csr.unibo.it (bias.csr.unibo.it)|137.204.72.188|:80... failed: No route to host.

Result on the paper

Hello,

캑처

In my understanding Table 2 in your paper, CORe50: a New Dataset and Benchmark for Continuous Object Recognition, is the result after only 1epoch training(Online Learning setting) on CORe50. Am I right? Or is it the result after multi-epoch training? If it is, how many epochs did you train?

Best,

Sunil

pytorch support

Hello,

I am working with models in pytorch. This is an awesome benchmark. Can you help me benchmark my pytorch model? Can you help me set up this environment? Awesome work I'm kinda surprised no ones tried to get a good score on this.

Let's get a high score!

Best,

Aidan

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.