Datasets:
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,31 +1,86 @@
|
|
| 1 |
---
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
-
|
| 5 |
-
|
| 6 |
-
-
|
| 7 |
-
|
| 8 |
-
-
|
| 9 |
-
|
| 10 |
-
-
|
| 11 |
-
|
| 12 |
-
-
|
| 13 |
-
|
| 14 |
-
- name: is_healthy
|
| 15 |
-
dtype: bool
|
| 16 |
-
- name: split
|
| 17 |
-
dtype: string
|
| 18 |
-
- name: filename
|
| 19 |
-
dtype: string
|
| 20 |
-
splits:
|
| 21 |
-
- name: train
|
| 22 |
-
num_bytes: 64771805.0
|
| 23 |
-
num_examples: 164
|
| 24 |
-
download_size: 64498683
|
| 25 |
-
dataset_size: 64771805.0
|
| 26 |
-
configs:
|
| 27 |
-
- config_name: default
|
| 28 |
-
data_files:
|
| 29 |
-
- split: train
|
| 30 |
-
path: data/train-*
|
| 31 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- image-classification
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- plant-disease
|
| 9 |
+
- test-fixture
|
| 10 |
+
- debug-grade
|
| 11 |
+
size_categories:
|
| 12 |
+
- n<1K
|
| 13 |
+
pretty_name: PlantDoc (tiny)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
---
|
| 15 |
+
|
| 16 |
+
# PlantDoc — tiny variant
|
| 17 |
+
|
| 18 |
+
> **Warning: this is a debug-grade subset, not a faithful subsample for analysis.** Use it for test suites, smoke tests, and notebook iteration. For substantive work, use [`geraldmc/plantdoc-full`](https://huggingface.co/datasets/geraldmc/plantdoc-full).
|
| 19 |
+
|
| 20 |
+
A 164-image stratified subsample of [`geraldmc/plantdoc-full`](https://huggingface.co/datasets/geraldmc/plantdoc-full), built to support fast iteration. Loading is roughly a 50 MB download instead of ~950 MB, and a pass over the dataset takes seconds rather than minutes.
|
| 21 |
+
|
| 22 |
+
## Quick start
|
| 23 |
+
|
| 24 |
+
```python
|
| 25 |
+
from datasets import load_dataset
|
| 26 |
+
|
| 27 |
+
ds = load_dataset("geraldmc/plantdoc-tiny", revision="v0.1.0", split="train")
|
| 28 |
+
print(len(ds)) # 164
|
| 29 |
+
```
|
| 30 |
+
|
| 31 |
+
Inside the iResearch Institute 2026 Virtual Lab:
|
| 32 |
+
|
| 33 |
+
```python
|
| 34 |
+
import irilab2026 as iri
|
| 35 |
+
|
| 36 |
+
metadata_df, hf_dataset = iri.load_plantdoc(variant="tiny")
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
## What's in this dataset
|
| 40 |
+
|
| 41 |
+
- **164 images** stratified across 28 classes, 83 train + 81 test
|
| 42 |
+
- **Schema identical to `plantdoc-full`** — same 8 columns (image + 7 metadata), same values for any image that appears in both
|
| 43 |
+
- **Subsample rule:** `min(3, available)` per class per split, with a fixed seed
|
| 44 |
+
|
| 45 |
+
For every non-orphan class, this means 3 train + 3 test = 6 images. The orphan class (`Tomato two spotted spider mites leaf`) appears with its 2 train images and 0 test images, exactly as in the full variant.
|
| 46 |
+
|
| 47 |
+
## Schema, normalization, caveats
|
| 48 |
+
|
| 49 |
+
See the **[full variant's dataset card](https://huggingface.co/datasets/geraldmc/plantdoc-full)** for:
|
| 50 |
+
|
| 51 |
+
- Column descriptions and types
|
| 52 |
+
- Normalization rules for `host` and `disease`
|
| 53 |
+
- The orphan-class caveat
|
| 54 |
+
- Filename quirks
|
| 55 |
+
- Citation and license details
|
| 56 |
+
|
| 57 |
+
The schema is identical between the two variants; duplicating it here invites drift.
|
| 58 |
+
|
| 59 |
+
## Subsample parameters
|
| 60 |
+
|
| 61 |
+
- **Per-class budget:** `min(3, available)` per (class, split)
|
| 62 |
+
- **Seed:** `42` (passed as `random_state` to pandas `.sample()`)
|
| 63 |
+
- **Source:** `geraldmc/plantdoc-full` at revision `v0.1.0`
|
| 64 |
+
|
| 65 |
+
The subsample is fully deterministic given these three parameters. Re-running the build script with the same source and seed produces byte-identical metadata. Image bytes also match exactly because the same upstream files are referenced.
|
| 66 |
+
|
| 67 |
+
## What this dataset is NOT for
|
| 68 |
+
|
| 69 |
+
- **Training a classifier.** 3 training images per class is far too few to learn anything; this isn't a "small training set" — it's a fixture for code paths.
|
| 70 |
+
- **Measuring per-class accuracy.** Per-class test set sizes here are 1–3 images; any "accuracy" you compute is dominated by sampling noise.
|
| 71 |
+
- **Comparing model architectures.** Any signal would be noise at this scale.
|
| 72 |
+
- **Reporting results in a paper.** Whatever you find on the tiny variant is not a finding about PlantDoc — it's a finding about 164 images that happen to live under this repo ID.
|
| 73 |
+
|
| 74 |
+
## What this dataset IS for
|
| 75 |
+
|
| 76 |
+
- **Test suite use.** Fast assertion that loader code, Dataset wrappers, and training pipelines run end-to-end without surprise.
|
| 77 |
+
- **Notebook iteration.** Debugging a preprocessing pipeline or augmentation strategy without paying for the full dataset's load time.
|
| 78 |
+
- **CI runs.** Tests that exercise loader behavior can use this variant on every push without burning minutes on downloads.
|
| 79 |
+
|
| 80 |
+
## License
|
| 81 |
+
|
| 82 |
+
CC BY 4.0, matching the full variant and the upstream dataset.
|
| 83 |
+
|
| 84 |
+
## Citation
|
| 85 |
+
|
| 86 |
+
Cite the upstream dataset (Singh et al. 2020) and reference this tiny variant as `geraldmc/plantdoc-tiny @ v0.1.0`. Full BibTeX in the full variant's dataset card.
|