Giter Site home page Giter Site logo

vip-scale-invariant-s-cnn's Introduction

Scale-steerable filters for the locally-scale invariant convolutional neural network (PyTorch)

Scale-Steerable CNN (SS-CNN) Implementation for PyTorch. This is the official code repository for the paper "Scale Steerable Filters for Locally Scale-Invariant Convolutional Neural Networks" (https://arxiv.org/abs/1906.03861)

Please refer to ScaleSteerableInvariant_Network.py for the network library which contains the SS-CNN layer along with various network architectures. The scale steerable basis functions are being created in scale_steering_lite.py. The dataset splits for MNIST-Scale, FMNIST-Scale and MNIST-Scale-local are provided as well.

The main code where the SS-CNN is trained is in main_test.py. The dataset class is also included in that file, where the images are being resized to twice their size and max-normalized (optional).

To run on the different datasets, one can simply change the dataset_name paramter in the main function of main_test.py, along with the training size, batch size and total_epochs.

Important: Note that there are predefined networks for each of the datasets in ScaleSteerableInvariant_Network.py, any of which can be used by changing the Networks_to_train parameter in main_test.py. Also, note that the current implementation assumes availability of cuda. To change to a non-cuda based implementation, you will need to remove all mentions of .cuda() for a start.

vip-scale-invariant-s-cnn's People

Contributors

rghosh92 avatar

Stargazers

allenwang avatar

Forkers

allenwangusd

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.