GithubHelp home page GithubHelp logo

inception.torch's People

Contributors

soumith avatar szagoruyko 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

Watchers

 avatar  avatar  avatar  avatar  avatar

inception.torch's Issues

Question on normalization in example.lua

Hi

sorry for bothering. In the example.lua I saw the following:
img:mul(255):clamp(0, 255):add(-117)
The mul(255) is to blow up the values from the range 0...1 to 0...255.
The add(-117) is to remove the mean of all the imagenet images I suppose.
I noticed that you do not divide by the std-deviation. Is this just a simplification for this example or not needed in general? If we should do the normalization, what value do you suggest to take (std_dev over all imagenet images)?

Regards, Felix

Difference in prediction scores

Hi @soumith,

Thanks for providing a torch version of google/inception. I made predictions on the same image using caffe2-based ipython notebook and example.lua in this repository. I encountered a difference in the prediction score:

Input image is an example image in ILSVRC12 validation set whose ID is 00048000

th example.lua 

RESULTS (top-5):
----------------
score = 0.260391: n07720875 bell pepper (735)
score = 0.195900: n03461385 grocery store, grocery, food market, market (703)
score = 0.097373: n07753275 pineapple, ananas (322)
score = 0.091731: n07747607 orange (319)
score = 0.073422: n07717410 acorn squash (741)
# inception.ipynb'
Top five predictions:
   735 (prob 0.7066) synset n07720875 bell pepper
   741 (prob 0.0866) synset n07717410 acorn squash
   703 (prob 0.0740) synset n03461385 grocery store, grocery, food market, market
   322 (prob 0.0556) synset n07753275 pineapple, ananas
   840 (prob 0.0183) synset n03482405 hamper

Is there any reason why I'm noticing the difference? Thanks

Convert to gModule

Is it possible (easy?) to wrap the Sequential container as an nngraph gModule without explicitly adding the input on each line? For instance, if you were to pass multiple inputs to the net?

Thanks.

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.