Multi-threaded compression?

オープン
#5,341 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python, tensorflow
領域
data, performance

調査の方向性

まず tfds.features.Tensor と tfds.features.Encoding.ZLIB のドキュメントを読み、次に Tensor の例がどのようにエンコードされるかを追跡し、圧縮オプションについて tf.io 名前空間を確認します。大規模なデータセットのビルドに対して、マルチコア圧縮のサポートされたアプローチ、またはより高速な汎用 Tensor 圧縮方式が定義され、検証された場合にのみ issue は完了です。

索引モデルが issue の本文から書いたものです。

説明

help

What I need help with / What I was wondering
I need to build a large dataset of imagery that has > 3 channels (multi-spectral satellite imagery), so I'm relying on the tfds.features.Tensor feature connector. As writing data uncompressed is highly inefficient, I'm using tfds.features.Encoding.ZLIB for compression.

However, this compression step actually becomes the bottleneck in my dataset building process as it is single-threaded, causing my dataset build to take longer than a month.

What I've tried so far
Read up on the docs, also checked the tf.io namespace for any possible workarounds.

It would be nice if...

  • Is there any way of speeding up the encoding/compression of the examples by using multiple cores?
  • Are there plans to support a faster compression method than ZLIB for generic Tensor features?
主要言語
Python
スター
4.6k
フォーク
1.6k
平均マージ
14時間 3分
マージ済み PR(30日)
5

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

tensorflow/datasets のほかの issue

tensorflow/datasets の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。