Need help building LVIS locally
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 20/100
Línea de trabajo
Comienza con los ejemplos reportados de tfds.builder("lvis").download_and_prepare() y las opciones de DirectRunner; después, examina el entorno indicado de TensorFlow Datasets, Apache Beam, Python y EC2. Se considera terminado cuando se haya establecido si existe una versión precompilada de TFDS o se haya definido una ruta de compilación local compatible que use menos memoria.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Python
- Estrellas
- 4.6k
- Forks
- 1.6k
- Merge medio
- 14 h 3 min
- PR fusionados (30 d)
- 5
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tensorflow/datasets
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
tensorflow/datasets#11260 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
tensorflow/datasets#11253 ·
-
DatasetInfo.read_from_directory reads the deprecated FieldDescriptor.label eagerly, warning on every openPosiblemente ocupada @jabrailkhalil la tomó hace 48 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
tensorflow/datasets#11245 · 1 comentario ·
-
required dependency on importlib_resources missingPosiblemente ocupada @ArS377 la tomó hace 128 días. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tensorflow/datasets#11212 · 2 comentarios · 1 reacción ·
-
C4 badwords filter: capitalized entries in upstream wordlists never match (text is lower-cased, list entries are not)Posiblemente ocupada @Jefferyjia la tomó hace 3 días. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 20/100
tensorflow/datasets#11258 ·
Todos los issues de tensorflow/datasets
Issues similares
-
difficulty:1 documentation
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
MakazhanAlpamys/Soup#3533 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
onyx-dot-app/onyx#18730 ·
Los mantenedores suelen responder en 1 día
-
Claiming namespace `aadml`Abiertonamespace team:operations
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
EclipseFdn/open-vsx.org#16509 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
langflow-ai/langflow#16689 ·
Los mantenedores suelen responder en 1 día
-
ScoringSystem.get() and compute() return NotImplementedError instead of raising itPosiblemente ocupada @sc-lacanlale la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
aboutcode-org/vulnerablecode#2552 ·
Los mantenedores suelen responder en 5 días