Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Previous task error: I/O error: I/O error: Permission denied (os error 13)
Error code:   UnexpectedError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

image
image
label
string
transcription
string
conditions
string
cup_to_disc_ratio
int64
neuroretinal_rim
int64
disc_hemorrhage
int64
peripapillary_atrophy
int64
rnfl_defect
int64
disc_pallor
int64
vessel_changes
int64
Pathological
Clinical photograph of the right eye showing the optic nerve head with advanced cupping (C/D ratio ~0.9), neuroretinal rim loss, mild pallor, bayonetting of vessels with nasal displacement, and a generalized retinal nerve fiber layer defect.
glaucoma
3
3
0
2
2
1
3
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.6, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.3, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.6, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
Optic nerve with a 0.8 cup-to-disc ratio, diffuse thinning of the neuroretinal rim, mild pallor of the optic disc, bayoneting and nasalization of the vessels.
glaucoma
3
3
0
0
0
1
3
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
Cup-to-disc ratio 0.3, optic disc with well-defined margins and good color, central vessel emergence, preserved neuroretinal rim
null
null
null
null
null
null
null
Pathological
Cup-to-disc ratio 0.7, thinning of the superior temporal neuroretinal rim coinciding with a wedge-shaped retinal nerve fiber layer defect
glaucoma
2
2
0
0
1
0
3
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
Cup-to-disc ratio 0.8, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization and bayoneting of vessels
glaucoma
3
3
0
0
0
1
3
Pathological
Cup-to-disc ratio 0.9, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization and bayoneting of vessels
glaucoma
3
3
0
0
0
1
3
Pathological
excavation 0.6, nasalization of vessels, superior thinning, peripapillary atrophy, significant pallor
glaucoma
2
2
0
2
0
2
2
Pathological
Total cupping, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization of vessels, alpha and beta peripapillary atrophy
glaucoma
4
3
0
1
0
1
2
Pathological
Subtotal optic nerve cupping with mild pallor, nasalization of the vasculature, and vessel bayonetting. Additionally, peripapillary atrophy and diffuse RNFL loss were observed, consistent with advanced glaucomatous damage
glaucoma
4
4
0
1
2
1
3
Pathological
Total cupping, mildly pale optic nerve, nasalization of vessels, beta peripapillary atrophy
glaucoma
4
4
0
2
0
1
3
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
Cup-to-disc ratio 0.8, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization and bayoneting of vessels
glaucoma
3
1
0
0
0
1
3
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.3, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
Cup-to-disc ratio 0.4, optic disc with well-defined margins and good color, central vessel emergence, preserved neuroretinal rim
null
null
null
null
null
null
null
Pathological
This left eye fundus photography demonstrates a optic nerve head with an 0.8 excavation, with peripapillary atrophy, the vessels are bayoneting and there's nasalization
glaucoma
3
4
0
1
2
1
3
Normal
Cup-to-disc ratio 0.4, optic disc with well-defined margins and good color, preserved neuroretinal rim
null
null
null
null
null
null
null
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.3, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
This right eye fundus photography with an excavation of 0.9, there is nasalization of vessels, and peripapillary atrophy.
glaucoma
3
4
0
1
2
0
2
Pathological
Cup-to-disc ratio 0.8, diffuse loss of the neuroretinal rim and inferior temporal thinning, mildly pale optic nerve, bayoneting of vessels and nasalization of them
glaucoma
3
3
0
0
0
1
3
Pathological
Cup-to-disc ratio 0.9, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization and bayoneting of vessels, alpha and beta peripapillary atrophy
glaucoma
3
3
0
1
0
1
3
Normal
This right eye fundus photography has a normal excavation, with peripapillary atrophy
0
0
0
2
1
0
0
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.4, with a crescent shaped temporal peripapillary atrophy
null
null
null
null
null
null
null
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.3, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
Excavation 0.8, diffuse thinning of the neuroretinal rim, bayonet vessels and nasalization of these, slightly pale optic disc
glaucoma
3
3
0
0
0
1
3
Pathological
This right eye fundus photography shows an optic nerve head that has important pallor, which makes it difficult to analize, the excavation looks like 0.7, with thinning of the inferior and superior portions, nasalization of vessels and bayoneting
glaucoma
2
1
0
1
2
2
3
Pathological
Mildly pale optic nerve, cup-to-disc ratio 0.7, diffuse thinning of the neuroretinal rim, bayoneting of vessels
glaucoma
2
3
0
1
0
1
1
Pathological
Excavation 0.8, diffuse thinning of the neuroretinal rim, bayonet vessels and nasalization of these, slightly pale optic disc, 360° peripapillary atrophy
glaucoma
3
3
0
1
0
1
3
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
color fundus photography of a left eye, cup-to-disc raito of 0.3, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.6, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
Mildly pale optic nerve, cup-to-disc ratio 0.7, thinning of the superior and inferior temporal neuroretinal rim coinciding with a wedge-shaped retinal nerve fiber layer defect, bayoneting and nasalization of vessels
glaucoma
2
2
0
0
1
1
3
Pathological
Cup-to-disc ratio 0.8, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization and bayoneting of vessels
glaucoma
3
3
0
0
0
1
3
Pathological
Mildly pale optic nerve, cup-to-disc ratio 0.7, thinning of the superior temporal neuroretinal rim coinciding with a wedge-shaped retinal nerve fiber layer defect, bayoneting and nasalization of vessels
glaucoma
2
2
0
0
1
1
3
Pathological
Cup-to-disc ratio 0.7, thinning of the neuroretinal rim with loss of the normal pattern, mildly pale optic nerve, nasalization and bayoneting of vessels,
glaucoma
2
1
0
0
0
1
3
Pathological
exc 0.8, superior temporal thinning, bayonet vessels and nasalization thereof, pale optic nerve
glaucoma
3
1
0
0
0
2
3
Pathological
cup-to-disc ratio 0.7, thinning of the superior temporal neuroretinal rim coinciding with a wedge-shaped retinal nerve fiber layer defect, bayoneting and nasalization of vessels
glaucoma
2
2
0
0
1
0
3
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.5, diffuse peripapillary atrophy, normal macula, no vascular abnormalities, tessellated fundus appearance, myopic
null
null
null
null
null
null
null
Pathological
This left eye fundus photography, has a 0.7 excavation, the ISNT rule is affected, the inferior rim is the thinner than the superior and nasal, it appears to have a localized wedge defect of nerve fiber layer
glaucoma
2
1
0
0
1
0
2
Normal
Cup-to-disc ratio 0.3, optic disc with well-defined margins and good color, central vessel emergence, preserved neuroretinal rim
null
null
null
null
null
null
null
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.4, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.4, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
0.4 cup-to-disc ratio, optic disc with well-defined margins and normal color, peripapillary atrophy, central emergence of vessels.
null
null
null
null
null
null
null
Pathological
Cup-to-disc ratio 0.8, diffuse loss of the neuroretinal rim and inferior temporal thinning, mildly pale optic nerve, bayoneting of vessels and nasalization of them
glaucoma
3
3
0
0
0
1
3
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
This optic nerve head has a cup to disc ratio of 0.8, there is a splinter hemorrhage in the superior portion of the neuroretinal rim, which has diffuse thinning, there are wedge and generalized RNFL defect. The vessels have nasalization and bayoneting.
glaucoma
3
4
1
1
3
0
3
Pathological
Optic nerve with a 0.8 cup-to-disc ratio, thinning of the inferior-temporal neuroretinal rim, a wedge defect in the retinal nerve fiber layer, mild pallor of the optic disc, as well as bayoneting and nasalization of the vessels
glaucoma
3
2
0
0
1
1
3
Pathological
Cup-to-disc ratio 0.9, thinning of the neuroretinal rim with loss of the normal pattern, mildly pale optic nerve, nasalization and bayoneting of vessels
glaucoma
3
1
0
0
0
1
3
Pathological
Cup-to-disc ratio 0.7, thinning of the inferior temporal neuroretinal rim coinciding with a wedge-shaped retinal nerve fiber layer defect
glaucoma
2
2
0
0
1
0
2
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.7, diffuse peripapillary atrophy, normal macula, no vascular abnormalities, tessellated fundus appeatance, suggestive of myopia
null
null
null
null
null
null
null
Pathological
0.8 excavation, with diffuse thinning of the rim and nasalization of vessels. This image has bad quality.
glaucoma
3
1
0
0
0
1
1
Normal
Optic disc with well-defined margins and good color, cup-to-disc ratio 0.2, preserved neuroretinal rim, no retinal nerve fiber layer defect
null
null
null
null
null
null
null
Pathological
Cup-to-disc ratio 0.9, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization of vessels
glaucoma
3
3
0
0
0
1
2
Pathological
Cup-to-disc ratio 0.8, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization of vessels and bayoneting of vessels
glaucoma
3
3
0
0
0
1
3
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.5, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
Cup-to-disc ratio 0.8, diffuse thinning of the neuroretinal rim, mildly pale optic nerve, nasalization and bayoneting of vessels
glaucoma
3
3
0
0
0
1
3
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.4, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
This right eye fundus photography has an 0.7 excavation, there is a localized defect of the RFNL
glaucoma
2
1
0
0
1
0
3
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.3, crescent-shaped temporal peripapillary atrophy, normal macula, no vascular abnormalities, there is a white spot over the inferior temporal vascular arcade that seems to be an artifact
null
null
null
null
null
null
null
Pathological
The cup-to-disc ratio is 0.7, with a violation to ISNT rule; here, the inferior border is the thinnest. Peripapillar atrophy is present. The vessels have nasalization and there is bayoneting in the temporal inferior vessels
glaucoma
2
1
0
1
1
0
3
Pathological
Optic disc with mild increased cupping, with slight thinning of the neuroretinal rim, without optic disc hemorrhages
glaucoma
2
1
0
1
0
0
1
Pathological
This image has a cup to disc ratio of 0.7, there are diffuse RNFL defects. The neuroretinal rim has a notch defect in the inferior portion, it has a normal color, no splinter hemorrhages.
glaucoma
2
2
0
0
2
0
2
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.5, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
This right eye fundus photography shows an optic nerve head that has a 0.5 excavation, with pallor and peripapillary atrophy, there's some nasalization of the vessels
glaucoma
1
1
0
1
0
2
2
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
C-D ratio is 0.3, neuroretinal rim follows ISNT rule, the optic nerve head has normal color, vessels are slightly nasalized.
null
null
null
null
null
null
null
Normal
color fundus photography of a left eye, cup-to-disc ratio of 0.4, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Normal
Cup-to-disc ratio 0.4, optic disc with well-defined margins and good color, central vessel emergence, preserved neuroretinal rim
null
null
null
null
null
null
null
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.3, normal macula, no vascular abnormalities
null
null
null
null
null
null
null
Pathological
Optic cup of 0.7, superotemporal neuroretinal rim thinning, superotemporal RNFL wedge defect
glaucoma
2
2
0
0
1
0
0
Pathological
Cup-to-disc ratio 0.9, diffuse loss of the neuroretinal rim and inferior temporal thinning, mildly pale optic nerve, bayoneting of vessels and nasalization of them
glaucoma
3
2
0
0
0
1
3
Normal
color fundus photography of a right eye, cup-to-disc ratio of 0.4, peripapillary atrophy, normal macula, no vascular abnormalities, white spot over inferior temporal vascular arcade is an artifact
null
null
null
null
null
null
null

MM-ODIR-129: Multi-Modal Optic Disc Image Dataset

MM-ODIR-129 is a curated fundus photography dataset of 129 optic-disc-centered retinal images, designed for glaucoma detection, optic-disc/cup segmentation, and multimodal research that combines medical imaging with clinical textual descriptions. Each image is annotated by ophthalmologists with a binary diagnosis (Normal / Pathological) and, when pathological, graded for seven glaucomatous signs. A subset of 69 pathological images includes pixel-level optic cup and optic disc masks.

Disclaimer: This dataset is intended for research and educational purposes only. It is not a medical device and must not be used for clinical diagnosis or treatment decisions without appropriate validation and regulatory approval.


Dataset Overview

Property Value
Total images 129
Image modality Color fundus photography (optic disc centered)
Image size Variable resolution (RGB); masks match each image's dimensions
Masks Binary optic-cup and optic-disc masks (PNG + NumPy .npy)
Diagnosis labels Normal, Pathological
Primary condition Glaucoma (for pathological cases)
Splits train: 77, validation: 26, test: 26

Split Distribution

Split Total Normal Pathological
train 77 36 41
validation 26 12 14
test 26 12 14
Total 129 60 69

File Structure

MM-ODIR-129/
├── annotations.json      # Full clinical annotations for all 129 images
├── split.json            # Train / validation / test partition
├── train/                # Training split files
│   ├── <id>_<side>.jpg           # Fundus image
│   ├── <id>_<side>_cup.png       # Optic cup mask (PNG)
│   ├── <id>_<side>_cup.npy       # Optic cup mask (NumPy)
│   ├── <id>_<side>_disc.png      # Optic disc mask (PNG)
│   └── <id>_<side>_disc.npy      # Optic disc mask (NumPy)
├── validation/           # Validation split files (same naming)
└── test/                 # Test split files (same naming)

Naming Convention

Files are named as {patient_id}_{eye}.jpg, where {eye} is left or right. Masks append _cup or _disc before the extension.


Annotations (annotations.json)

Each entry is a JSON object with the following fields:

Field Description
id Internal annotation identifier
image_filename Filename of the fundus image
label Binary label: Normal or Pathological
transcription Free-text clinical description written by the annotating ophthalmologist
locs_data Structured clinical findings (see below)

locs_data.glaucoma Grading

For pathological cases, seven structural signs of glaucoma are scored. Each sign is a single-select ordinal variable. Higher scores indicate greater abnormality or severity. The definitions below are the ones used during annotation.

1. Cup-to-Disc Ratio (CDR) — cup_to_disc_ratio

Score Definition
0 ≤ 0.3 (normal)
1 0.4 – 0.5 (borderline)
2 0.6 – 0.7 (suspicious)
3 0.8 – 0.9 (advanced cupping)
4 1.0 (total cupping)

2. Neuroretinal Rim — neuroretinal_rim

Score Definition
0 Normal (ISNT rule preserved: Inferior ≥ Superior ≥ Nasal ≥ Temporal)
1 ISNT rule violation (thinning not following normal pattern)
2 Focal notching (localized rim loss)
3 Diffuse thinning
4 Near-total or total rim loss

3. Disc Hemorrhage (Drance Hemorrhage) — disc_hemorrhage

Score Definition
0 None
1 Present (splinter hemorrhage at or near disc margin)

4. Peripapillary Atrophy (PPA) — peripapillary_atrophy

Score Definition
0 None
1 Beta-zone PPA only (atrophy with visible sclera/choroidal vessels)
2 Large or progressive beta-zone PPA

5. Retinal Nerve Fiber Layer (RNFL) Defect — rnfl_defect

Score Definition
0 No visible RNFL defect
1 Wedge-shaped RNFL defect (localized)
2 Diffuse RNFL thinning
3 Both wedge defect and diffuse thinning

6. Optic Disc Pallor — disc_pallor

Score Definition
0 Normal color
1 Mild pallor
2 Significant pallor (consider other optic neuropathies)

7. Vessel Changes — vessel_changes

Score Definition
0 Normal vessel pattern
1 Bayoneting (vessels deflect at rim edge)
2 Nasalization of vessels
3 Both bayoneting and nasalization

Clinical note: Glaucoma diagnosis from fundus photography alone has limitations. IOP measurement, visual field testing (perimetry), and OCT of the RNFL/ganglion cell layer are typically required for definitive diagnosis and staging. These labels capture structural findings visible on fundus images only.

For Normal cases, locs_data is typically empty ({}), although a few records may contain glaucoma fields with all-zero or low scores.


Masks

  • PNG masks: 8-bit grayscale (L mode), same spatial dimensions as the corresponding fundus image. Foreground pixels (255) denote the region of interest; background pixels (0) denote non-region.
  • NumPy masks: Arrays of uint8 values {0, 1} with the same height and width as the corresponding fundus image.
  • Masks are provided only for pathological images within each split.
Split Images with masks
train 41
validation 14
test 14

Use Cases

This dataset supports several research tasks:

  1. Binary classification: Predict Normal vs. Pathological from fundus images.
  2. Multi-label grading: Predict the seven glaucoma severity scores.
  3. Optic disc / cup segmentation: Segment the optic disc and cup from fundus images.
  4. Multimodal learning: Combine fundus images with clinical transcriptions for vision-language modeling.
  5. Report generation: Generate clinical descriptions from retinal images.

Loading the Data with 🤗 Datasets

If you upload this folder as a Hugging Face dataset repository, you can load it with:

from datasets import load_dataset

dataset = load_dataset("TheBug95/MM-ODIR-129")

For a custom loader that reads the JSON annotations and masks together, a minimal example is:

import json
from pathlib import Path
from PIL import Image
import numpy as np

base = Path("MM-ODIR-129")

with open(base / "annotations.json") as f:
    annotations = {a["image_filename"]: a for a in json.load(f)}

with open(base / "split.json") as f:
    splits = json.load(f)

for split, items in splits.items():
    for ann in items:
        img_name = ann["image_filename"]
        stem = Path(img_name).stem
        img = Image.open(base / split / img_name)

        cup_path = base / split / f"{stem}_cup.png"
        disc_path = base / split / f"{stem}_disc.png"
        cup_mask = Image.open(cup_path) if cup_path.exists() else None
        disc_mask = Image.open(disc_path) if disc_path.exists() else None

        label = ann["label"]
        transcription = ann.get("transcription", "")
        glaucoma_scores = ann.get("locs_data", {}).get("glaucoma", {})

Citation

A formal citation for this dataset is not yet available. If you use MM-ODIR-129 in your research, please reference the dataset URL until a publication or BibTeX entry is released:

https://huggingface.co/datasets/TheBug95/MM-ODIR-129

Acknowledgments

The clinical annotations were provided by ophthalmologists from Costa Rica and include detailed free-text transcriptions describing the optic nerve head, neuroretinal rim, cup-to-disc ratio, retinal nerve fiber layer defects, and vascular changes.


License

This dataset is released under the MIT License.


Limitations

  • The dataset is relatively small (129 images) and is best suited for proof-of-concept research, few-shot learning, or as a fine-tuning set for larger pre-trained models.
  • All pathological cases in this release are annotated as glaucoma; other optic neuropathies are not represented.
  • Patient metadata is not provided, so demographic analyses are not possible.
Downloads last month
613