Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shape error when training on custom dataset #12

Open
FSet89 opened this issue Jan 2, 2022 · 2 comments
Open

Shape error when training on custom dataset #12

FSet89 opened this issue Jan 2, 2022 · 2 comments

Comments

@FSet89
Copy link

FSet89 commented Jan 2, 2022

python3 -m tf_semantic_segmentation.bin.train -m 'unet' -o 'adam' -bs 4 -l 'categorical_crossentropy' -logdir 'logs' -rd 'tfrecord'

tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 174850048 values, but the requested shape has 262144

I created my own dataset using the provided code. Why do I get this error?

@baudcode
Copy link
Owner

baudcode commented Jan 6, 2022

What image size did you specify when creating the tfrecord?
Do all of your images have the same size?

@xovobobo
Copy link

xovobobo commented Aug 14, 2022

same error. images 1920*1080
Input to reshape is a tensor with 8294400 values, but the requested shape has 2073600
[[{{function_node __inference_read_tfrecord_47}}{{node Reshape_1}}]] [Op:IteratorGetNext]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants