Datasets:
image imagewidth (px) 115 6k | class_label stringclasses 28
values | class_idx int64 0 27 | host stringclasses 13
values | disease stringclasses 16
values | is_healthy bool 2
classes | split stringclasses 2
values | filename stringlengths 5 215 |
|---|---|---|---|---|---|---|---|
Apple Scab Leaf | 0 | Apple | scab | false | train | 01Apple-scab-2-Venturia-inaequalis.ashx?w=600&h=408&bc=ffffff.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | 11NovMW_W4-A_4b.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | 12-20_apple_scab1.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | 500_F_125294801_k0A2teQwKxZfTV1pcaerZFf9Th04F04q.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | 6A642AA3-1DB1-4413-B0B6-7FBB68A5904A_original.jpeg?1528657579.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple%20scab%20-%20early%20infection%20on%20leaves.JPG.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple%20scab%20-%20late%20season%20infection%20on%20petiole%20and%20leaf%20underside.JPG.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple-Scab-Mulrooney.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple-Scab-image-01.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple-Scab-image-02.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple-Scab.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple-Scab1.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple-Scab_1_1.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple-scab-on-crab-apple.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | AppleScab.JPG.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | AppleScab02.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | AppleScab03.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | AppleScab14.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple_Scab163.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple_scab.jpg?t=1473441220256&width=300&height=200&name=Apple_scab.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Apple_scab_symptoms_on_leaf.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | DSC00005.JPG.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | DSCF1248-1gz1wpc.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | IMG_3166_1500x1500%253E.JPG?1473520197.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | IMG_3455-xjgwni-1024x1024.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Malus-Scab-disease-225x300.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | Scab+close-up5846.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | acfsca026527.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple%20scab%20MF821.JPG.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-disease-tree-fungus-906x391.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-disease.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-leaf-big.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-obst-krankheit-m7akxy.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-venturia-inaequalis-early-leaf-infection-and-mycelium-AW0TTX.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-venturia-inaequalis-early-leaf-infection-and-mycelium-bxbd0k.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-venturia-inaequalis-early-leaf-infection-and-mycelium-bxbd23.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-venturia-inaequalis-germinated-from-a-spore-shower-on-an-apple-leaf-X31BGG.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-venturia-inaequalis-germinated-from-a-spore-shower-on-an-aw08hw.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-venturia-inaequalis-leaf-symptoms-on-tree-dark-fungal-pustules-aceg6b.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab-venturia-inaequalis-lesions-mycelium-on-leaves-a8h9nb.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple-scab_figure-2.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple_scab.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple_scab1.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple_scab2.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple_scab_1465_180.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apple_scab_early_jc_sm.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apples-severely-affected-by-apple-scab-venturia-inaequalis-dgk11a.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apples_apple-scab_02_zoom.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | apples_apple-scab_03_zoom.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescab-500x383.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescab.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescab004.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescab2.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescab_lf.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescableaf-pcd.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescableaf.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | applescabmalus1.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | appletree%20leaf.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | appscab.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | branch-with-ill-leaf-of-apple-scab-disease-picture-id928917010?k=6&m=928917010&s=612x612&w=0&h=UY6EBbnGkTzVcp4Tm8myYO7KoIOtrZo3VRDrd91qslo=.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | crabapple%20scab%20Snowdrift%201%20Crab%206-24-16.JPG.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | disease-on-fruit-scab-on-apple-tree-j1r0jp.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | early-symptoms-of-scab-venturia-inaequalis-on-apple-leaves-AW051N.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | early_symptoms_of_crabapple_scab_on_prairifire.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | image0002.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | image005.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | img_1916.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | img_1920.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | img_6415.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | inaequalis1a.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | inaequalis1b.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | s-l300.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab-apple-leaf.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab-disease-apple-leaf-macro-62212448.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab-disease-small.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab-on-foliage-300x259.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab-on-tall-spindle-apple-tree-d3phw6.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab-venturia-inaequalis-development-of-disease-on-the-stem-upper-B359MJ.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab_large.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | scab_on_leaf.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | schurft.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | seriously-unwell-apple-tree-fruit-brown-and-split-yellow-spots-on-leaves-scab-P67H27.jpg | |
Apple Scab Leaf | 0 | Apple | scab | false | train | venturia.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | 20130519yellowingappleleaves.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | 2017-09-23-07-48-04.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | 4633813-sweet-apple-with-leaf.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | Apple-Leaves-Diabetes.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | AppleLeavesInRain.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | Apple_tree_leaf_J1.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | CRABAPPLE2_leaves.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | CRABAPPLE3_leaves.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | CRABAPPLE_leaves.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | Crab-Apple-%28Malus-Sylvestris%29-Leaf.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | Dwarf-Apple-Pink-Lady-2545.jpeg.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | June%2B2010%2B022.JPG.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | Malus+sylvestris+-+Crab+Apple+04.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | apple-tree-branch-blossom-plant-fruit-berry-leaf-flower-food-green-produce-evergreen-flora-sad-shrub-apples-branch-with-apples-flowering-plant-rose-family-acerola-malpighia-woody-plant-land-plant-928225.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | apple-tree-branch-green-leaves-fresh-isolated-white-background-33032922.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | apple-tree-branch-green-leaves-fresh-isolated-white-background-33032924.jpg | |
Apple leaf | 1 | Apple | healthy | true | train | apple-tree-branch-plant-fruit-leaf-flower-food-green-produce-flora-immature-apple-tree-flowering-plant-wild-apple-tree-apple-gear-land-plant-606389.jpg |
PlantDoc — full variant
A curated mirror of the PlantDoc plant disease classification dataset (Singh et al. 2020), with normalized class metadata and a stable schema, hosted as a Hugging Face Dataset for reproducible distribution. The companion plantdoc-tiny variant is a 164-image stratified subsample of this dataset for fast test-suite use.
PlantDoc was built to address a specific failure mode in earlier plant disease datasets like PlantVillage: lab-condition images don't predict field-condition performance. PlantDoc images are web-scraped photos of diseased and healthy leaves in real-world settings — heterogeneous in resolution, lighting, background, and capture device. That heterogeneity is the point.
Quick start
from datasets import load_dataset
ds = load_dataset("geraldmc/plantdoc-full", revision="v0.1.0", split="train")
print(len(ds)) # 2578
print(ds.features) # image + 7 metadata columns
print(ds[0]["class_label"]) # 'Apple Scab Leaf'
Inside the iResearch Institute 2026 Virtual Lab, the typical entry point is:
import irilab2026 as iri
metadata_df, hf_dataset = iri.load_plantdoc()
What's in this dataset
- 2,578 images across 28 classes covering 13 host plant species
- Train/test split shipped intact from the upstream repository — 2,342 train + 236 test
- Heterogeneous resolution (189–4,000 px width, 194–4,272 px height), heterogeneous lighting, heterogeneous backgrounds — by design
- Mostly RGB, some CMYK color modes — downstream loaders should
.convert("RGB")defensively
Schema
| Column | Type | Description | Example |
|---|---|---|---|
image |
image | PIL Image at original upstream resolution | (W, H) JPEG |
class_label |
string | Upstream folder name, verbatim | "Apple Scab Leaf" |
class_idx |
int64 | 0–27, case-sensitive alphabetical sort over class_label |
0 |
host |
string | Normalized host name | "Apple" |
disease |
string | Lowercased disease name, or "healthy" for healthy leaves |
"scab" |
is_healthy |
bool | True iff the class is a healthy leaf | False |
split |
string | "train" or "test", from the upstream partition |
"train" |
filename |
string | Original filename, verbatim (URL-encoded chars and double extensions preserved) | "052609%20Hartman%20Crabapple%20scab%20single%20leaf.JPG.jpg" |
About host
Hosts are normalized from upstream folder names with one transformation: underscores become spaces (Bell_pepper → "Bell pepper"). Capitalization and spelling are otherwise preserved as upstream had them. Notable inheritances from upstream:
Soyabeanretains the upstream misspelling (canonical is "Soybean") so the normalized name links unambiguously to the original folder.graperetains the upstream lowercase. Other hosts are Title Case.Cornretains the upstream naming (the more standard botanical name is "Maize") to match Singh et al. 2020 and downstream benchmark papers.
If your downstream code needs cross-dataset matching (e.g., aligning PlantDoc classes to PlantVillage classes), do that normalization explicitly in your code rather than relying on these column values to be canonical — that step is meaningful research methodology and should be visible in your work.
About disease
Disease names are lowercased even when the upstream had Title Case (Powdery mildew → "powdery mildew", Septoria leaf spot → "septoria leaf spot"). Two non-obvious mappings worth flagging:
Tomato mold leaf→"mold"(the canonical disease is leaf mold, caused by Passalora fulva, but the upstream label format doesn't say "leaf mold" — the column stays close to upstream literal naming).Tomato two spotted spider mites leaf→"two spotted spider mites"(a pest, not strictly a plant disease, but it's a PlantDoc class).
About class_idx
Class indices 0–27 are assigned by case-sensitive alphabetical sort over class_label values. With case-sensitive sort, lowercase grape leaf and grape leaf black rot land at indices 26 and 27, after the uppercase Title Case classes.
Known caveats
One class has 2 training images and 0 test images
Tomato two spotted spider mites leaf appears in train/ with 2 images and is entirely absent from test/ in the upstream repository. Singh et al. 2020 and downstream benchmark papers (e.g., Ahmad et al. 2023) report 27 classes — they implicitly drop this orphan. This dataset preserves all 28 classes for upstream fidelity. If you're benchmarking against the literature, drop the orphan explicitly:
df = df[df["class_label"] != "Tomato two spotted spider mites leaf"]
Class names are inconsistent in capitalization, word order, and the position of "leaf"
The upstream folder names are not internally consistent. Examples that all appear in this dataset: Apple Scab Leaf (Title Case, disease before "Leaf"), Tomato Septoria leaf spot (mixed case, "leaf spot" as a compound), grape leaf (all lowercase), Tomato mold leaf (disease before "leaf"), Tomato leaf bacterial spot (host "leaf" disease). The host and disease columns are the hand-curated normalization; the class_label column preserves the upstream string verbatim.
Filenames have quirks worth knowing about
About 6% of filenames contain URL-encoded characters (%20 for spaces, %2C for commas) — artifacts of however the upstream curators saved web-scraped images. Roughly 12% have double extensions like .JPG.jpg or .jpeg.jpg. The filename column preserves these exactly because they're identifiers — the link back to the upstream filename is exact and unambiguous.
Per-class test set sizes are small
Test split sizes range from 4 (Corn Gray leaf spot) to 12 (Corn leaf blight, grape leaf), with a median around 9. Per-class accuracy estimates on this dataset will have wide confidence intervals — frame your conclusions accordingly. Aggregate metrics (averaged across classes or grouped by host family) are more reliable than per-class numbers.
About class_count = 28 but the README of upstream says 17
The upstream README at pratikkayal/PlantDoc-Dataset claims "13 plant species and up to 17 classes of diseases." That's 17 disease classes; the dataset includes healthy-leaf classes for many hosts, bringing the total to 28 (or 27 if the orphan is dropped — see above).
Build provenance
This dataset was built by:
- Cloning
pratikkayal/PlantDoc-Datasetat commit5467f6012d78(on a case-sensitive Linux filesystem — see note below). - Walking
train/andtest/directory trees to enumerate all image files. - Applying a hand-curated 28-row class-normalization lookup to produce the
host,disease, andis_healthycolumns. - Assigning
class_idxby case-sensitive alphabetical sort over distinctclass_labelvalues. - Constructing an HF
Datasetwith theImage()feature and pushing togeraldmc/plantdoc-fullwith revision tagv0.1.0.
Build script: scripts/build_pd_full_hf.py in the irilab2026 repository.
A note about case-sensitive filesystems
The upstream repository contains 6 pairs of files whose names differ only in case (e.g., CAR1.jpg and car1.jpg in Apple rust leaf/). On case-insensitive filesystems (default macOS APFS/HFS+, default Windows NTFS) git clone silently drops one file per pair and produces a 2,572-image working tree instead of 2,578. This dataset was built on Colab's case-sensitive Linux filesystem to preserve all 2,578 upstream images. If you rebuild from scripts/build_pd_full_hf.py, do so on a case-sensitive filesystem.
License
This curated mirror is released under CC BY 4.0, matching the license of the upstream pratikkayal/PlantDoc-Dataset.
Attribution must include both the upstream dataset (Singh et al. 2020) and this curated mirror. See Citation below.
Citation
@inproceedings{singh2020plantdoc,
title = {{PlantDoc}: A Dataset for Visual Plant Disease Detection},
author = {Singh, Davinder and Jain, Naman and Jain, Pranjali and
Kayal, Pratik and Kumawat, Sudhakar and Batra, Nipun},
booktitle = {Proceedings of the 7th ACM IKDD CoDS and 25th COMAD},
pages = {249--253},
year = {2020}
}
When citing the curated mirror itself, additionally reference this Hugging Face Dataset by its repo ID and revision tag (geraldmc/plantdoc-full @ v0.1.0).
Related resources
geraldmc/plantdoc-tiny— 164-image stratified subsample for test-suite usegeraldmc/plantvillage-full— the lab-condition counterpart dataset; PlantDoc is most commonly used as a transfer test for classifiers trained on thispratikkayal/PlantDoc-Dataset— the upstream GitHub repository
- Downloads last month
- 67