Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix visualize activations #1211

Merged
merged 4 commits into from
Jan 22, 2019

Conversation

keineahnung2345
Copy link
Contributor

# Get activations of a few sample layers
activations = model.run_graph([image], [
    ("input_image",        model.keras_model.get_layer("input_image").output)
])

leads to the error:

InvalidArgumentError: input_image:0 is both fed and fetched.

Revise the code according to https://stackoverflow.com/questions/39307108/placeholder-20-is-both-fed-and-fetched.

This PR fixes #934.

# Get activations of a few sample layers
activations = model.run_graph([image], [
    ("input_image",        model.keras_model.get_layer("input_image").output)
])
leads to the error:
InvalidArgumentError: input_image:0 is both fed and fetched.

Revise the code according to https://stackoverflow.com/questions/39307108/placeholder-20-is-both-fed-and-fetched
@waleedka waleedka merged commit 6fe7db7 into matterport:master Jan 22, 2019
@waleedka
Copy link
Collaborator

Good fix. Thank you!

luccauchon added a commit to luccauchon/Mask_RCNN that referenced this pull request Feb 4, 2019
* Fix visualize activations (matterport#1211)

Fix visualize activations (Squashed 4 commits by @keineahnung2345)

# Get activations of a few sample layers
activations = model.run_graph([image], [
    ("input_image",        model.keras_model.get_layer("input_image").output)
])
leads to the error:
InvalidArgumentError: input_image:0 is both fed and fetched.

Revise the code according to https://stackoverflow.com/questions/39307108/placeholder-20-is-both-fed-and-fetched

* Fix typo in config.py

* Fix typo in rpn_class_loss_graph

Fix matterport#870

* Reversed order (1) and (2) in installation

Reference to matterport#1255

* remove unused code (matterport#1227)

Remove unused code
@luccauchon luccauchon mentioned this pull request Feb 4, 2019
aneeshchauhan pushed a commit to aneeshchauhan/Mask_RCNN that referenced this pull request Jul 9, 2019
Fix visualize activations (Squashed 4 commits by @keineahnung2345)

# Get activations of a few sample layers
activations = model.run_graph([image], [
    ("input_image",        model.keras_model.get_layer("input_image").output)
])
leads to the error:
InvalidArgumentError: input_image:0 is both fed and fetched.

Revise the code according to https://stackoverflow.com/questions/39307108/placeholder-20-is-both-fed-and-fetched
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visualize Activations
2 participants