mobilenetv3-tensorflow icon indicating copy to clipboard operation
mobilenetv3-tensorflow copied to clipboard

AttributeError: 'PrefetchDataset' object has no attribute 'output_shapes'

Open joshisr10 opened this issue 3 years ago • 3 comments

Could you please advise on this error?

I tried to resolve it through "tf.compat.v1.", but unsure of this new output_shapes error ---->

line 34, in build_dataset dataset["channels"] = ds_train.output_shapes["image"][-1].value

AttributeError: 'PrefetchDataset' object has no attribute 'output_shapes'

~Sanket

joshisr10 avatar Oct 07 '20 21:10 joshisr10

Hello @joshisr10,

Thank you for reaching out! Have you tried to run the code with TensorFlow 1.13?

Cheers, Martin

martinkersner avatar Oct 09 '20 05:10 martinkersner

Tensorflow 1.13 also generates the same error.

ayeshamkzhh avatar Feb 08 '21 18:02 ayeshamkzhh

I got the same error. Is there a workaround for this? Thanks in advance

manuelmele avatar Mar 21 '21 19:03 manuelmele