Shape mismatch in tuple component 16. Expected [1,?,?,3], got [1,1,242,640,3]
Finally I checked my dataset and my csv file. The problem was almost all of the images had the same shape, but 3 of them not. So I changed those images and regenerate the csv files and the tfrecord files and now is running. The thing with the shape mismatch threw me off, but finally that was the problem
I'm trying to train an object detection model from tensorflow 1 detection model zoo using python, version 3.7, and when I'm executing it throws all these errors. I'm still learning about this so I haven't any idea about how to solve this problem. Have anyone had the same issue about the different dimensions?
I have checked different questions from this web, like looking for 0 height or width into my csv files and things like that, but It seems like that is not the problem.

tensorflow.python.framework.errors_impl.InvalidArgumentError: Shape
mismatch in tuple component 16. Expected [1,?,?,3], got
[1,1,242,640,3]