Update README.md
Browse files
README.md
CHANGED
@@ -87,9 +87,14 @@ This dataset aims to develop effective solutions for detecting and mitigating th
|
|
87 |
|
88 |
```python
|
89 |
from datasets import load_dataset
|
90 |
-
elsa_data = load_dataset("rs9000/ELSA1M_track1")
|
|
|
|
|
|
|
91 |
```
|
92 |
|
|
|
|
|
93 |
## Dataset Structure
|
94 |
|
95 |
Each parquet file contains nearly 1k images and a JSON file with metadata.
|
|
|
87 |
|
88 |
```python
|
89 |
from datasets import load_dataset
|
90 |
+
elsa_data = load_dataset("rs9000/ELSA1M_track1", split="train", streaming=True)
|
91 |
+
for sample in elsa_data:
|
92 |
+
image = sample.pop("image")
|
93 |
+
metadata = sample
|
94 |
```
|
95 |
|
96 |
+
Using <a href="https://huggingface.co/docs/datasets/stream">streaming=True</a> lets you work with the dataset without downloading it.
|
97 |
+
|
98 |
## Dataset Structure
|
99 |
|
100 |
Each parquet file contains nearly 1k images and a JSON file with metadata.
|