You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any support for reading/writing compressed input files, e.g. with gzip? I would like to use the "standard" file format, but the uncompressed TFRecords files I am generating are huge for my datasets.
None yet. gzipping will unlikely result in significant compression due to the high entropy of the weights, but we're very interested in enabling compressed model representations at rest in general, especially for models that have to fit on mobile devices. I'll leave this bug open to track the feature request.
OP: have you tried using L1 regularization? How big are your model files
after that?
On Monday, November 23, 2015, Vincent Vanhoucke [email protected]
wrote:
None yet. gzipping will unlikely result in significant compression due to
the high entropy of the weights, but we're very interested in enabling
compressed model representations at rest in general, especially for models
that have to fit on mobile devices. I'll leave this bug open to track the
feature request.
—
Reply to this email directly or view it on GitHub #338 (comment)
.
@vincentvanhoucke I've got a TFRecords file with ~9k Example protos that went from 115M to 1.7M after gzip. My input Features are (pretty sparse) float arrays, so I'm not surprised that compression helps a lot.
@delip I'm focusing here on the input data, not the model checkpoints. The checkpoints do compress somewhat, but limiting the number and frequency of checkpoints is fine for now.
@skearnes sorry, not sure why I talked about model files 🎱
+1 for this request. I would suggest using lzo for compression as opposed to gzip, as the former allows compressed files to be splittable. There's a reference use of lzo with protobufs in Twitter's elephantbird library.
I completely misunderstood your point, for some reason I assumed you meant checkpoints. FR stands, I agree that it might make a lot of sense to support something like that.
@vincentvanhoucke I guess @skearnes meaning compressing the training data instead of the checkpoints. In some cases, the input feature vectors are extremely sparse and compression will reduce the IO dramatically. So I'm also wondering whether the compression of TFRecord file will be supported in the future?
Activity
vincentvanhoucke commentedon Nov 24, 2015
None yet. gzipping will unlikely result in significant compression due to the high entropy of the weights, but we're very interested in enabling compressed model representations at rest in general, especially for models that have to fit on mobile devices. I'll leave this bug open to track the feature request.
delip commentedon Nov 24, 2015
OP: have you tried using L1 regularization? How big are your model files
after that?
On Monday, November 23, 2015, Vincent Vanhoucke [email protected]
wrote:
skearnes commentedon Nov 24, 2015
@vincentvanhoucke I've got a TFRecords file with ~9k Example protos that went from 115M to 1.7M after gzip. My input Features are (pretty sparse) float arrays, so I'm not surprised that compression helps a lot.
@delip I'm focusing here on the input data, not the model checkpoints. The checkpoints do compress somewhat, but limiting the number and frequency of checkpoints is fine for now.
delip commentedon Nov 24, 2015
@skearnes sorry, not sure why I talked about model files 🎱
+1 for this request. I would suggest using lzo for compression as opposed to gzip, as the former allows compressed files to be splittable. There's a reference use of lzo with protobufs in Twitter's elephantbird library.
vincentvanhoucke commentedon Nov 24, 2015
I completely misunderstood your point, for some reason I assumed you meant checkpoints. FR stands, I agree that it might make a lot of sense to support something like that.
llhe commentedon Jul 22, 2016
@vincentvanhoucke I guess @skearnes meaning compressing the training data instead of the checkpoints. In some cases, the input feature vectors are extremely sparse and compression will reduce the IO dramatically. So I'm also wondering whether the compression of TFRecord file will be supported in the future?
llhe commentedon Jul 22, 2016
@delip Snappy is another choice: https://github.com/google/snappy
NathanHowell commentedon Aug 10, 2016
Looks like support for zlib compressed TFRecords was added in 90bad51
tatatodd commentedon Sep 6, 2016
Indeed 90bad51 added support for zlib compressed TFRecords. Closing this issue out.
Merge pull request tensorflow#338 from kis2u/master
Remi-Coulom commentedon Aug 24, 2017
Is it possible to read compressed raw files?
Merge pull request tensorflow#338 from ROCmSoftwarePlatform/develop-u…
Update XNNPACK in XLA