Need help building LVIS locally
まだ誰も着手していません。
評価
調査の方向性
報告されている tfds.builder("lvis").download_and_prepare() の例と DirectRunner フラグから始め、指定されている TensorFlow Datasets、Apache Beam、Python、EC2 の環境を調査します。TFDS のビルド済みバージョンが利用可能かどうかを確認するか、より少ないメモリで実行できるサポート対象のローカルビルド手順を定義できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
What I need help with / What I was wondering
I need help downloading the LVIS dataset to my EC2 instance.
What I've tried so far
First, I copied the changes from https://github.com/tensorflow/datasets/pull/5094.
Then, I tried using the SDK to download_and_prepare the dataset as follows
import tensorflow_datasets as tfds
builder = tfds.builder("lvis")
builder.download_and_prepare()
I also tried adding more parameters for the DirectRunner
import apache_beam as beam
import tensorflow_datasets as tfds
builder = tfds.builder("lvis")
flags = ["--direct_num_workers=4", "--direct_running_mode=multi_processing"]
builder.download_and_prepare(
download_config=tfds.download.DownloadConfig(
beam_runner="DirectRunner",
beam_options=beam.options.pipeline_options.PipelineOptions(flags=flags),
)
)
After around 10ish minutes I can see 4 CPUs at near 100% utilization, so I think the builder is working. It runs for a while, 30 minutes to a couple hours depending on how many workers I specify, then either hits an error or runs out of memory and gets killed. If I remember correctly, this dataset is about ~25 GB in size. My machine has 64 GB of RAM.
It would be nice if...
It would be most convenient for me if I could just download an already built version of the dataset so I could avoid needing to build it myself. I don't really understand what goes on during the build. I just need this dataset locally in TFDS format so I can train a model that's been written to consume this dataset in this format. I'd rather not have to learn about Apache Beam and set up Google Cloud infrastructure just to get a 25 GB dataset.
If that's not possible, then it would be nice if I could build the LVIS dataset locally more easily.
Environment information
(if applicable)
- Operating System: Ubuntu 18.04.5 LTS (GNU/Linux 5.4.0-1103-aws aarch64)
- Python version: 3.10.13
- tensorflow version: 2.14.0
- tensorflow-cpu-aws version: 2.14.0
- tensorflow-datasets version: 4.9.3
- tensorflow-io-gcs-filesystem version: 0.34.0
- apache-beam version: 2.51.0
- EC2 instance type: r6g.2xlarge
- 主要言語
- Python
- スター
- 4.6k
- フォーク
- 1.6k
- 平均マージ
- 14時間 3分
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tensorflow/datasets のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tensorflow/datasets#11260 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
tensorflow/datasets#11253 ·
-
DatasetInfo.read_from_directory reads the deprecated FieldDescriptor.label eagerly, warning on every open対応中かも @jabrailkhalil が 48 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tensorflow/datasets#11245 · コメント 1 件 ·
-
required dependency on importlib_resources missing対応中かも @ArS377 が 128 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
tensorflow/datasets#11212 · コメント 2 件 · リアクション 1 件 ·
-
C4 badwords filter: capitalized entries in upstream wordlists never match (text is lower-cased, list entries are not)対応中かも @Jefferyjia が 3 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 20/100
tensorflow/datasets#11258 ·
tensorflow/datasets の issue をすべて見る
似ている issue
-
difficulty:1 documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
MakazhanAlpamys/Soup#3533 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
onyx-dot-app/onyx#18730 ·
メンテナーはふだん 1 日以内に返信
-
namespace team:operations
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
EclipseFdn/open-vsx.org#16509 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
langflow-ai/langflow#16689 ·
メンテナーはふだん 1 日以内に返信
-
ScoringSystem.get() and compute() return NotImplementedError instead of raising it対応中かも @sc-lacanlale が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
aboutcode-org/vulnerablecode#2552 ·
メンテナーはふだん 5 日以内に返信