question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

module 'tensorflow.contrib.data' has no attribute 'parallel_interleave'

See original GitHub issue

Hello! When run python3 train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/faster_rcnn_inception_v2_pets.config i get error AttributeError: module 'tensorflow.contrib.data' has no attribute 'parallel_interleave'

how i can fix this?? Please help

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
levinwilcommented, Jul 12, 2018

In case anyone else runs into this problem and the above solution did not fix your problem, below are some other possible solutions:

Try updating tensorflow to the latest version using ‘pip install --upgrade tensorflow’ (or if you are using GPU, ‘pip install --upgrade tensorflow-gpu’)

If you need to be using your current version of tensorflow, perhaps for compatability with CUDA 8, you can change the line to the following: “records_dataset = filename_dataset.interleave(file_read_func, cycle_length=config.num_readers, block_length=config.read_block_length)”

1reaction
shubhajitmlcommented, Jul 9, 2018

@levinwil the problem in my case INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:global_step/sec: INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:global_step/sec: 0 INFO:tensorflow:global_step/sec: 0 was due to the fact that, I have not recompiled the csv and image files using generate_tfrecord.py to get the new .record files after adding new images. Just by recompiling, solved the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

AttributeError: module 'tensorflow.contrib.data' has no attribute ...
i meet this issue too in tf1.4, could you tell me how to fix it,please? All reactions.
Read more >
python - AttributeError: type object 'DatasetV2' has no attribute ...
Simply use dataset = dataset.interleave() instead of dataset.apply(tf.data.experimental.parallel_interleave ()).
Read more >
tf.data.experimental.parallel_interleave | TensorFlow v2.11.0
parallel_interleave () maps map_func across its input to produce nested datasets, and outputs their elements interleaved. Unlike tf.data.Dataset.
Read more >
Tensorflow with ContribLearn - Kaggle
Python · No attached data sources ... import tensorflow.contrib.learn.python from ... AttributeError: module 'tensorflow' has no attribute 'contrib'.
Read more >
AttributeError: module 'tensorflow' has no attribute 'Session'
But one cannot benefit many improvements made from TF 2.0. If you are a beginner and want to know more about Data Science...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found