Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -77,24 +77,17 @@ Each example (row) in both splits contains the following fields:
|
|
| 77 |
* `width`: The width of the image in pixels (from the full-resolution image).
|
| 78 |
* `height`: The height of the image in pixels (from the full-resolution image).
|
| 79 |
|
| 80 |
-
##
|
| 81 |
|
| 82 |
-
To download and load this dataset from the Hugging Face Hub:
|
| 83 |
|
| 84 |
```python
|
| 85 |
from datasets import load_dataset
|
| 86 |
|
| 87 |
-
#
|
| 88 |
-
dataset_full = load_dataset("ROSCOSMOS/Classic_Cars", split="train")
|
| 89 |
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
print("Full Dataset (train split):", dataset_full)
|
| 94 |
-
print("Preview Dataset (preview split):", dataset_preview)
|
| 95 |
-
|
| 96 |
-
# You can then access individual examples, e.g., dataset_full[0]
|
| 97 |
-
# The 'image' column will contain PIL Image objects.
|
| 98 |
```
|
| 99 |
|
| 100 |
## Citation
|
|
|
|
| 77 |
* `width`: The width of the image in pixels (from the full-resolution image).
|
| 78 |
* `height`: The height of the image in pixels (from the full-resolution image).
|
| 79 |
|
| 80 |
+
## Loading the Dataset
|
| 81 |
|
|
|
|
| 82 |
|
| 83 |
```python
|
| 84 |
from datasets import load_dataset
|
| 85 |
|
| 86 |
+
# Load the full training dataset from the 'train' configuration
|
| 87 |
+
dataset_full = load_dataset("ROSCOSMOS/Classic_Cars", "train", split="train")
|
| 88 |
|
| 89 |
+
print("Full Training Dataset (train split):", dataset_full)
|
| 90 |
+
# Expected output: DatasetInfo showing the full number of rows for the training set.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
```
|
| 92 |
|
| 93 |
## Citation
|