GithubHelp home page GithubHelp logo

nishkum / tf-squeezenet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from avoroshilov/tf-squeezenet

0.0 1.0 0.0 4.4 MB

TensorFlow version of SqueezeNet with converted pretrained weights

Python 100.00%

tf-squeezenet's Introduction

tf-squeezenet

TensorFlow version of SqueezeNet with converted pretrained weights. The official github of SqueezeNet creators has some information on SqueezeNet v1.1.

Usage: squeezenet_tf.py --in identity.jpg

Current implementation is SqueezeNet v 1.1 (signature pool 1/3/5) without bypasses.

synset_words.txt file is a copy from either caffe or torch tutorials.

Model weights are converted from keras HDF5 model file from https://github.com/rcmalli/keras-squeezenet

Originally, this SqueezeNet was implemented for style transfer, see the original repository here: https://github.com/avoroshilov/neural-style/tree/dev The style transfer version contains pretrained weights with classifier chopped off, resulting in even smaller file (<3MB).

Fooling the classifier

The netowork can modify images that will fool the classifier into recognizing the modified image as desired class. Usage: squeezenet_tf.py --in identity.jpg --fool 8 will take the input image identity.jpg and generate new image bnased on it, which will be classified as 'n01514859 hen'. Class number is the number of line in the 'synset_words.txt' file minus 1, i.e. starting with 0.

Dependencies

tf-squeezenet's People

Contributors

avoroshilov avatar

Watchers

 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.