Giter Club home page Giter Club logo

Comments (10)

jendrikjoe avatar jendrikjoe commented on April 27, 2024 1

Hey there @lanpa,

I think I tracked at least one possible root cause down.
I get this exception whenever my events file explodes in size (around 827 MB). At the same time tensorboard itself crashes as well.
For me the origin of this huge size where parameters which I stored as histograms using numpy and writer.add_histogram(name, param.data.cpu().numpy(), epoch, bins="auto") . This seems to cause problems when the distribution is really sharp around 0 (To strong weight decay).
Changing it to bins="doane", solves it for me.
I hope that helps some people to track down their problems as well :)

Cheers,

Jendrik

from tensorboardx.

jendrikjoe avatar jendrikjoe commented on April 27, 2024 1

Hey @lanpa,
sorry for the long silence.
The tensorflow binning seems to solve the issue as well.
827MB are indeed a lot. But it was coming from the binning method. I don't know why though maybe one of the methods called in auto has an issue with binning of lots of numbers close to zero.
Not sure. If using the tensorflow binning the histogramms are around 1 MB :)
Cheers,

Jendrik

from tensorboardx.

lanpa avatar lanpa commented on April 27, 2024

I can't determine from that. Which program spit that message? Did that stop your training?

from tensorboardx.

latkins avatar latkins commented on April 27, 2024

This occurs when performing a hyperparameter search, where a new writer is created (and closed) for each set of parameters. It doesn't seem occur at any obvious point - e.g. it isn't the second time a writer is created. It does stop training, yes. I can try and make a minimal example if that would help!

from tensorboardx.

lanpa avatar lanpa commented on April 27, 2024

A reproducible code would be great help! thanks
There is a writer.close() method. Did you close the old writer before opening a new one?

from tensorboardx.

latkins avatar latkins commented on April 27, 2024

Ok, will write something! Yes, I used writer.close().

from tensorboardx.

lanpa avatar lanpa commented on April 27, 2024

Hi, what is your protobuf version?

from tensorboardx.

TengdaHan avatar TengdaHan commented on April 27, 2024

Same here. Occasionally get the same error. But error disappears if do not use tensorboard

from tensorboardx.

lanpa avatar lanpa commented on April 27, 2024

@TengdaHan Can you provide more info?

from tensorboardx.

lanpa avatar lanpa commented on April 27, 2024

@jendrikjoe Thanks for the investigation and nice spot. I am curious if using the default tensorflow binning solves your problem too. If you would like to help to do the test, please test with pip install git+https://github.com/lanpa/tensorboardX. BTW, 827MB of histograms are pretty large, did you log the histogram very often?

from tensorboardx.

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.