Comments (10)
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.
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.
I can't determine from that. Which program spit that message? Did that stop your training?
from tensorboardx.
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.
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.
Ok, will write something! Yes, I used writer.close()
.
from tensorboardx.
Hi, what is your protobuf version?
from tensorboardx.
Same here. Occasionally get the same error. But error disappears if do not use tensorboard
from tensorboardx.
@TengdaHan Can you provide more info?
from tensorboardx.
@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)
- "This site canβt be reached" issue when using --bind_all on Google Colab HOT 1
- Test fail. HOT 3
- tensorboardX is incompatible with protobuf 4.21.0 HOT 16
- draw NaN with triangle
- Subsequent hparams missing HOT 4
- DeprecationWarning: crc32c.crc32 will be eventually removed, use crc32c.crc32c instead HOT 2
- AttributeError: 'NoneType' object has no attribute 'get_logdir' HOT 3
- Protobuf version HOT 4
- How can I connect previous log file into new one in tensorboard HOT 1
- How can i read tensorboard by python ? HOT 2
- Deprecation Warnings HOT 15
- OSS License compatibility question
- Remove upper pins on protobuf HOT 4
- tensorboardX is converting white/blank space and other non alphanumeric characters to underscore
- Update unittests for newer protobuf
- Possibility of v2.5.2 with upper pin on protobuf of <4? HOT 3
- The license_file parameter is deprecated HOT 3
- Loosening protobuf version limit breaking downstream packages HOT 7
- Is there an efficient way to log line plots? HOT 5
- EOFError multiprocessing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorboardx.