Skip to content

convert_to_records.py don't write all values into .tfrecords file #370

Closed

Description

@AlexunderMicrocontrol

Hi,
at first i suppose there is a typing mistake in line 56 (dat.shape[0], num_examples) i think it should be (images.shape[0],num_examples). the second thing was that this code did'nt wrote me the depth values into .tfrecords file. I need to pass them as _bytes_feature(str(depth)) after that the value was written into .tfrecords file.

Activity

  1. vrv commented on Dec 1, 2015

    @vrv

    Thanks, we'll fix the typo.

    The format of tfrecords is not a human-readable string: most likely the depth value is encoded as a field in a binary serialized protocol buffer.

    How are you trying to consume the output of tfrecords?

  2. added a commit that references this issue on Dec 1, 2015
  3. AlexunderMicrocontrol commented on Dec 2, 2015

    @AlexunderMicrocontrol
    Author

    I tried the fully connected reader example but it fails. I have string Labels so i have to change this code for string Labels. After that i tried to read the .tfrecords File with the read an decode function but with out success. Acctually I'am a little bit disapointed of tensorflow but i will try it again this weekend.

  4. vrv commented on Dec 2, 2015

    @vrv

    If you don't provide us enough information to help you (or why you are disappointed) we can't really help you. Please feel free to re-open the bug when you have more information that we can use to help you with.

  5. added a commit that references this issue on Dec 6, 2019
    8ffdfd4
  6. added 2 commits that reference this issue on Jan 23, 2020
    301ab0d
    e04d9be
  7. added a commit that references this issue on May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions