Skip to content

ValueError: Input 0 is incompatible with layer model_1 #13

@islamshahil

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]

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