Giter VIP home page Giter VIP logo

Comments (6)

markb729 avatar markb729 commented on May 5, 2024

Any progress on this issue? I had call to implement the same procedure today and am also having trouble identifying the layer names.

from models.

petewarden avatar petewarden commented on May 5, 2024

Sorry you're hitting problems, the output layer names can be hard to figure out. Typically for Inception models they're "softmax" (and you'll need them to run the model too). @shlens do you know what your training script names them in this case?

from models.

shlens avatar shlens commented on May 5, 2024

Sorry for all of the trouble. We keep a track of pointers to all Tensors of
interest in the Python endpoints dict.

For instance, the logits can be found here:
https://github.com/tensorflow/models/blob/master/inception/inception/slim/inception_model.py#L328

And the normalized predictions can be found here:
https://github.com/tensorflow/models/blob/master/inception/inception/slim/inception_model.py#L329

If you run the script and print out endpoints['predictions'].op.name, this
should provide the name of the output layer.

On Mon, Apr 11, 2016 at 8:25 AM, Pete Warden [email protected]
wrote:

Sorry you're hitting problems, the output layer names can be hard to
figure out. Typically for Inception models they're "softmax" (and you'll
need them to run the model too). @shlens https://github.com/shlens do
you know what your training script names them in this case?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#38 (comment)

from models.

girving avatar girving commented on May 5, 2024

@shlens @petewarden Is this resolved?

from models.

kuza55 avatar kuza55 commented on May 5, 2024

I've been trying to do the same thing so that I can run this model, and I must say it's been confusing.

I ended up figuring out that I needed to pass in 'inception_v3/logits/predictions' as the output_node (which I only found by iterating over the graph and dumping the names).

I also ended up getting stuck for a moment since I was confused by how to deal with the fact that the tensor was of shape [32, 299, 299, 3] and I couldn't figure out what I needed to do to get it to accept a tensor of the shape [1, 299, 299, 3]; in the end it just seems to work? But I have no idea if I'm doing the right thing.

from models.

andydavis1 avatar andydavis1 commented on May 5, 2024

@kuza55 These questions might be better posed on StackOverflow. Can you ask them there with the 'tensorflow' tag. Closing this out...

from models.

Related Issues (20)

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.