question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ValueError when checking input: expected input_image_meta to have shape (14,) but got array with shape (15,)

See original GitHub issue

I’m training my model on google colab, but it did not pass 1 Epoch 1/300

Using resnet50 as network backbone For Mask R-CNN model
Applying Default Augmentation on Dataset
Train 300 images
Validate 55 images
Checkpoint Path: /content/mask_rcnn_models
Selecting layers to train
Epoch 1/300
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-7-dd1acad94c9d> in <module>()
      8 train_maskrcnn.load_pretrained_model("mask_rcnn_coco.h5")
      9 train_maskrcnn.load_dataset("fingerlings")
---> 10 train_maskrcnn.train_model(num_epochs = 300, augmentation=True,  path_trained_models = "mask_rcnn_models")

8 frames
/usr/local/lib/python3.7/dist-packages/tensorflow/python/keras/engine/training_utils_v1.py in standardize_input_data(data, names, shapes, check_batch_axis, exception_prefix)
    538                              ': expected ' + names[i] + ' to have shape ' +
    539                              str(shape) + ' but got array with shape ' +
--> 540                              str(data_shape))
    541   return data
    542 

ValueError: Error when checking input: expected input_image_meta to have shape (14,) but got array with shape (15,)

I don’t know what is really wrong. i’ve been on it for hours.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
alic-xccommented, May 22, 2021

Yes, you’re correct. I made a mistake while annotating my images. i have fixed it

0reactions
doubletarocommented, Sep 5, 2022

The problem is the type is not the correct count.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when checking input: expected input_image_meta to ...
ValueError : Error when checking input: expected input_image_meta to have shape (13,) but got array with shape (14,) #410.
Read more >
Error when checking input: expected dense_1_input to have ...
ValueError : Error when checking input: expected dense_1_input to have shape (3,) but got array with shape (2,).
Read more >
input_image_meta shape error while using pixellib custom ...
I have created a dataset whiche can be seen below in link. ... expected input_image_meta to have shape (15,) but got array with...
Read more >
Error when checking input: expected dense_36_input to have ...
Input dimension means the number of features or columns that your input is supposed to have. The neural network will try to adjust...
Read more >
'Error When Checking Model Input: Expected No Data, But Got ...
ValueError: Error when checking input: expected inputimagemeta to have shape None 14 but got ar Programmer Sought the best programmer technical posts.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found