C2_W1_HW1 code runs successfully, but grader saying: 'images' must have either 3 or 4 dimensions

Hello,

Grader keep giving me this error message, not sure how to get passed it if given the code works as expected when I run it. Any hints or ideas would be appreciated!

Sorry, your submission was incorrect. Please try again. ‘images’ must have either 3 or 4 dimensions.

Here is the training summary

Here is the output of my model.summary()

And lastly here is the predictions

Regards,
Ghazi

1 Like

I saw a similar post but no suggestion or solution were provided there. It would be really great if we can get help, as few other people might facing the same situation

1 Like

here is the other thread link 'images' must have either 3 or 4 dimensions

1 Like

Hi! Kindly check your inbox. Thanks!

1 Like

Hi! The issue is in the format_example function. You don’t need to resize the image. Simply normalize it so it will have the expected dimensions by the grader. We’ll consider putting a unit test here to avoid this bug in the future. Thank you!

1 Like

Thank you, that worked

1 Like