Giter Site home page Giter Site logo

Comments (11)

mueller91 avatar mueller91 commented on July 22, 2024 66

How is turning histogram_freq to zero a fix?! I need those histograms.

from keras-fcn.

IsaacTegeler avatar IsaacTegeler commented on July 22, 2024 37

Change histogram_freq=10 to histogram_freq=0 you can still use tensor board with this fix rather than removing it all together.

from keras-fcn.

peachthiefmedia avatar peachthiefmedia commented on July 22, 2024 11

It is general issue with keras/tboard that you cannot get histograms with a validation_generator, changing histogram_freq=0 stops it trying to produce them.

from keras-fcn.

zwlshine avatar zwlshine commented on July 22, 2024 9

@xiaofengqing Comment out this code: # if K.backend() == 'tensorflow':
# tensorboard = TensorBoard(log_dir=os.path.join(save_path, 'logs'), histogram_freq=10, write_graph=True)
# callbacks.append(tensorboard)

Then it can run.

from keras-fcn.

zwlshine avatar zwlshine commented on July 22, 2024 6

I have also meet this error and I could not solve it yet ! Need help also!

from keras-fcn.

guysoft avatar guysoft commented on July 22, 2024 1

Is there a method from a validation generator, that would just spit out a bunch of them to test with?
something along the line of get_validation(validation_generator) that would return what we need to add there?

from keras-fcn.

NoushNabi avatar NoushNabi commented on July 22, 2024

@zwlshine
I tried following lines and did not work for me.
if K.backend() == 'tensorflow':
tensorboard = TensorBoard(log_dir=os.path.join(save_path, 'logs'), histogram_freq=10, write_graph=True)
callbacks.append(tensorboard)

@IsaacIsOkay
When I turned histogram_freq to zero, it worked.

from keras-fcn.

peachthiefmedia avatar peachthiefmedia commented on July 22, 2024

@mueller91 you can pass validation data separately to generate the histograms I think in a separate step, but yeah it isn't whats needed really.

from keras-fcn.

MaximilianPavon avatar MaximilianPavon commented on July 22, 2024

@mueller91 I am not sure if you still have this issue, but this issue keras-team/keras#3358 and the suggested solution by juiceboxjoe helped me.

from keras-fcn.

lucy9410 avatar lucy9410 commented on July 22, 2024

Change histogram_freq=10 to histogram_freq=0 you can still use tensor board with this fix rather than removing it all together.

the original callbacks.py is with histogram_freq=0, but i still have ValueError: If printing histograms, validation_data must be provided, and cannot be a generator.

from keras-fcn.

WittmannF avatar WittmannF commented on July 22, 2024

It is general issue with keras/tboard that you cannot get histograms with a validation_generator, changing histogram_freq=0 stops it trying to produce them.

What's the issue? Why it is not possible when the validation set is a generator?

from keras-fcn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.