Skip to content

pycaffe net.forward() assumes end blobs have the same name as their layers #2829

Description

@cdoersch

If you call net.forward(end='somelayer') from python, where somelayer is a layer that has a different name for its output blob, _Net_forward() will attempt to access net.blobs['somelayer'] (and in fact, returns this as the output). This happens because this line appends the end layer name to the list of blobs to be output. If the appended name doesn't exist as a blob, the result is an exception.

Note that there may also be multiple outputs for the end layer, in which case the current behavior doesn't make sense either.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions