Skip to content

ValueError: Input 0 is incompatible with layer model_1 #13

Description

@islamshahil

Received the below error while running eval_model.py

raise ValueError('Input ' + str(input_index) +

    ValueError: Input 0 is incompatible with layer model_1: expected shape=(None, 4096), found shape=(None, 1000)

The error is on:

File "eval_model.py", line 134, in <module>
    captions = generate_desc(model, tokenizer, photo, index_word, max_length)
  File "eval_model.py", line 56, in generate_desc
    y_pred = model.predict([photo,sequence], verbose=0)[0]

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