Need help building LVIS locally
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 20/100
Direzione di ricerca
Inizia dagli esempi segnalati di tfds.builder("lvis").download_and_prepare() e dai flag di DirectRunner, quindi esamina l’ambiente indicato di TensorFlow Datasets, Apache Beam, Python ed EC2. Il lavoro è completato quando è stato stabilito se è disponibile una versione precompilata di TFDS oppure è stato definito un percorso di build locale supportato che utilizzi meno memoria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Python
- Stelle
- 4.6k
- Fork
- 1.6k
- Merge medio
- 14h 3m
- PR unite (30g)
- 5
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tensorflow/datasets
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tensorflow/datasets#11260 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
tensorflow/datasets#11253 ·
-
DatasetInfo.read_from_directory reads the deprecated FieldDescriptor.label eagerly, warning on every openForse già presa @jabrailkhalil l’ha presa 48 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
tensorflow/datasets#11245 · 1 commento ·
-
required dependency on importlib_resources missingForse già presa @ArS377 l’ha presa 128 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tensorflow/datasets#11212 · 2 commenti · 1 reazione ·
-
C4 badwords filter: capitalized entries in upstream wordlists never match (text is lower-cased, list entries are not)Forse già presa @Jefferyjia l’ha presa 3 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 20/100
tensorflow/datasets#11258 ·
Tutte le issue di tensorflow/datasets
Issue simili
-
docs: powerpc not supportedAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
microsoft/TokenEconomizer#360 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
reasons-gate
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
benthomasson/reasons-service#190 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno