GithubHelp home page GithubHelp logo

scalingscattering's Introduction

Scaling The Scattering Transform : Deep Hybrid Networks

This repository contains the experiments found in the paper: https://arxiv.org/pdf/1703.08961.pdf

Requirements

In order to run our experiments you will need at minimum the following python packages: pytorch,opencv,pyscatwave package. The simplest way to install pytorch and opencv is through anaconda. We recommend python 2.7 + anaconda. The pyscatwave package can be found here https://github.com/edouardoyallon/pyscatwave

Imagenet

We provide a pre-trained model similar to the one described in the paper.

To run the trained model of scattering+resnet on imagenet ILSVRC validation set:

  1. Make sure you have downloaded at least the validation set of ILSVRC2012 and have it organized by class categories Note: due to problems with pytorch dataset constructors make sure your imagenet directory has no hidden files, or extra directories besides the 1000 ILSVRC categories.. otherwise all the images will be mislabeled
  2. Download the model file from http://www.di.ens.fr/~oyallon/scatter_resnet_10_model.pt7
  3. Add this to the imagenet/ directory
  4. Run the script main_test.py to evaluate on the ILSVRC validation set specifying --imagenetpath to point to your imagenet directory

Training scripts for imagenet and SLE feature extractor will be added soon

STL-10

Simply run python main_STL.py script in the STL directory

CIFAR-10

To run the small sample experiments Example:

python main_small_sample_class_normalized.py --model resnet12_8_scat --save "test"  --seed 1 --sampleSize 500 --mul 20

scalingscattering's People

Contributors

eugenium avatar edouardoyallon avatar

Stargazers

 avatar

Watchers

James Cloos avatar Soumith Chintala avatar  avatar paper2code - bot 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.