Skip to content

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

Description

@elyselam

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.

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions