ValueError when checking input: expected input_image_meta to have shape (14,) but got array with shape (15,)
See original GitHub issueI’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:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, you’re correct. I made a mistake while annotating my images. i have fixed it
The problem is the type is not the correct count.