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

A bug in get_data.py #101

Open
LeeDoYup opened this issue Aug 24, 2020 · 0 comments
Open

A bug in get_data.py #101

LeeDoYup opened this issue Aug 24, 2020 · 0 comments

Comments

@LeeDoYup
Copy link

LeeDoYup commented Aug 24, 2020

I tried to use MS-COCO dataset for training.
After i serialize the MS-COCO image using

img = tf.gfile.FastGFile(img_path, 'rb').read()
or
img = open(img_path, 'rb').read()

and save tfrecords,

i always meets an error, the shape of decoded image is not corresponded to its original shape.

When i change this tf.decode_raw into tf.io.decode_image i solve the problem.

img = tf.decode_raw(data, tf.uint8)

I manually check that bytes files have smaller size than the original size (hxwxc)
What is the reason???

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

1 participant