tf-semantic-segmentation icon indicating copy to clipboard operation
tf-semantic-segmentation copied to clipboard

Shape error when training on custom dataset

Open FSet89 opened this issue 4 years ago • 2 comments

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?

FSet89 avatar Jan 02 '22 09:01 FSet89

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

baudcode avatar Jan 06 '22 13:01 baudcode

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]

xovobobo avatar Aug 14 '22 14:08 xovobobo