GithubHelp home page GithubHelp logo

haitian2du / pytorch-stn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aicaffeinelife/pytorch-stn

0.0 0.0 0.0 29 KB

Spatial Transformer Networks in Pytorch.

License: MIT License

Python 100.00%

pytorch-stn's Introduction

Pytorch-STN

Spatial Transformer Networks in Pytorch.

This repository contains a PyTorch implementation of Spatial Transformer Networks by Jaderberg et al. The results are reported on the CIFAR-10 dataset and SVHN results will be coming up shortly.

Training your own model

Training is made to be very simple. You define your own experiment directory under experiments folder and populate it with a params.json. Example configs can be found in experiments\base_svhn and experiments\stn_svhn. To train a model in models folder:

python train.py --param_path <path_to_experiment> --resume_path <last checkpoint> 

The code frequently stores the checkpoints as last.pth.tar corresponding to the last epoch run and best.pth.tar corresponding to the checkpoint which had the best validation set accuracy. Training can be resumed by giving that parameter to the train script.

For example if you want to train a base Network and want to fine tune from the last best checkpoint you can write:

python train.py -- param_path experiments/base_svhn --resume_path best

Results

Dataset Model Hardware Epochs Validation Accuracy
CIFAR-10 Base Gtx-1080 150 70.9%
CIFAR-10 STN-Net Gtx-1080 150 76.96%

pytorch-stn's People

Contributors

aicaffeinelife avatar akimoto-cris 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.