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

Code in README.md doesn't work in other multi_dsprites_dataset #4

Open
maestrojeong opened this issue Dec 6, 2019 · 1 comment
Open

Comments

@maestrojeong
Copy link

maestrojeong commented Dec 6, 2019

Code in 'README.md' works well in 'multi_dsprites_colored_on_colored.tfrecords'.
However, it doesn't work well in 'multi_dsprites_binarized.tfrecords' and 'multi_dsprites_colored_on_grayscale.tfrecords'.
In the code

  from multi_object_datasets import multi_dsprites
  import tensorflow as tf

  tf_records_path = 'path/to/multi_dsprites_binarized.tfrecords'
  batch_size = 32

  dataset = multi_dsprites.dataset(tf_records_path, 'binarized')
  batched_dataset = dataset.batch(batch_size)  # optional batching
  iterator = batched_dataset.make_one_shot_iterator()
  data = iterator.get_next()

  with tf.train.SingularMonitoredSession() as sess:
    d = sess.run(data)

, 'd=sess.run(data)' generates error,

tensorflow.python.framework.errors_impl.DataLossError: inflate() failed with error -3: incorrect header check
[[node IteratorGetNext ]]

The version of tensorflow is 1.14 as in README.md.

Thank you!!

Same error occurs in CLEVR code.

@yamand16
Copy link

Did you use the correct .py file for other datasets? For example, if you try to extract CLEVR, you need to use
from multi_object_datasets import clevr_with_masks

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

2 participants