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

Asked to get output at node 1, but the layer has only 1 inbound nodes. #1

Open
elyselam opened this issue Jun 30, 2018 · 2 comments
Open

Comments

@elyselam
Copy link

I get this message after python3 photo_stylist.py and chose the pictures I wanted. Thanks.

Total params: 14,714,688
Trainable params: 14,714,688
Non-trainable params: 0


Traceback (most recent call last):
File "photo_stylist.py", line 29, in
content_model = Model(vgg.input, vgg.layers[conv_layers[7]].get_output_at(1))
File "/anaconda3/lib/python3.6/site-packages/keras/engine/base_layer.py", line 741, in get_output_at
'output')
File "/anaconda3/lib/python3.6/site-packages/keras/engine/base_layer.py", line 670, in _get_node_attribute_at_index
str(len(self._inbound_nodes)) + ' inbound nodes.')
ValueError: Asked to get output at node 1, but the layer has only 1 inbound nodes.

@EvilPort2
Copy link
Owner

Not sure why this happened.

@EvilPort2
Copy link
Owner

ok. The error is fixed now. It was happening as I was using an older version of Keras and Tensorflow and you were using the new one. Download the repo again.

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

No branches or pull requests

2 participants