Need help building LVIS locally
还没有人认领这个 Issue。
评估
调研方向
先从报告中的 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 分钟
- 30 天内合并 PR
- 5
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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 个 reaction ·
-
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 天内回复