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.

ValueError: If printing histograms, validation_data must be provided, and cannot be a generator.

See original GitHub issue

Hi, Thanks for your software.After creating data as test,there is an issue when i execute dcpg_train.py ./data/c1_000000-001000.h5 --val_files ./data/c13_000000-001000.h5 --cpg_model RnnL1 --out_dir ./models/cpg --nb_epoch 1 --nb_train_sample 1000 --nb_val_sample 1000 Here is the traceback: Traceback (most recent call last): File “/home/ljc/down/deepcpg-keras2/scripts/dcpg_train.py”, line 832, in <module> app.run(sys.argv) File “/home/ljc/down/deepcpg-keras2/scripts/dcpg_train.py”, line 194, in run return self.main(name, opts) File “/home/ljc/down/deepcpg-keras2/scripts/dcpg_train.py”, line 802, in main verbose=0) File “/home/ljc/anaconda3/lib/python3.6/site-packages/keras/legacy/interfaces.py”, line 87, in wrapper return func(*args, **kwargs) File “/home/ljc/anaconda3/lib/python3.6/site-packages/keras/engine/training.py”, line 2082, in fit_generator callbacks.on_epoch_end(epoch, epoch_logs) File “/home/ljc/anaconda3/lib/python3.6/site-packages/keras/callbacks.py”, line 77, in on_epoch_end callback.on_epoch_end(epoch, logs) File “/home/ljc/anaconda3/lib/python3.6/site-packages/keras/callbacks.py”, line 751, in on_epoch_end raise ValueError('If printing histograms, validation_data must be ’ ValueError: If printing histograms, validation_data must be provided, and cannot be a generator.

Could you plz help me?Thanks a lot.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cangermuellercommented, Oct 24, 2017

I added a flag ‘–no_tensorboard’ to dcpg_traing.py to disable Tensorboard summaries during training. Can you update your code (git pull) and check if it works when you are using dcpg_train.py --no_tensorboard?

0reactions
zaocommented, Jan 22, 2018

I recommend using Tensorboard instead of Theano since Theano is dead.

Did you mean TensorFlow here? I must admit that I’m not entirely up to speed with the backends and tools around this field, as I’m a cluster admin, not a user.

My understanding and concern is that if you use ‘tensorflow’ as the Keras backend, DeepCpG just won’t work unless you supply the --no_tensorboard parameter. Is there any scenario where that actually works and shouldn’t just be automatically disabled? Is there any value to be gained from the TensorBoard functionality, or should the builtin output from DeepCpG be quite sufficient to do science with?

As it currently stands with DeepCpG 1.0.5, if the user or the site admin has configured the Keras backend to be TensorFlow, they’re in for an automatic batch queue failure unless they happen to know to pass in --no_tensorboard.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ValueError: If printing histograms, validation_data must be ...
ValueError : If printing histograms, validation_data must be provided, and cannot be a generator. I don't know how to fix this problem, ...
Read more >
Error while creating a log file using TensorBoard with Keras
raise ValueError("If printing histograms, validation_data must be " ValueError: If printing histograms, validation_data must be provided, and ...
Read more >
ValueError: If printing histograms, validation_data ... - AI Pool
ValueError : If printing histograms, validation_data must be provided, and cannot be a generator. I'm using keras 2.1.
Read more >
ValueError: If printing histograms, validation_data must be ...
ValueError : If printing histograms, validation_data must be provided, and cannot be a generator. 1. 2. 3. 4. 5. 6. 7. 8. 9....
Read more >
ValueError: If printing histograms, validation_data must be ...
今天在用tensorboard的时候遇见了下面的错误:. ValueError: If printing histograms, validation_data must be provided, and cannot be a generator.
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