module 'tensorflow.contrib.data' has no attribute 'parallel_interleave'
See original GitHub issueHello! 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:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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)”
@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 usinggenerate_tfrecord.py
to get the new.record
files after adding new images. Just by recompiling, solved the issue.