eye-disease-dataset / README.md
Falah's picture
update
ab1dadb
---
dataset_info:
features:
- name: image
dtype: image
- name: label
dtype:
class_label:
names:
'0': Bulging_Eyes
'1': Cataracts
'2': Crossed_Eyes
'3': Glaucoma
'4': Uveitis
splits:
- name: train
num_bytes: 2558487.0
num_examples: 383
download_size: 0
dataset_size: 2558487.0
---
# Eye Disease Dataset
## Description
The Eye Disease Dataset is a collection of images related to various eye diseases. It provides a valuable resource for training and evaluating computer vision models for eye disease detection and classification. The dataset includes images representing five different eye disease classes: Bulging Eyes, Cataracts, Crossed Eyes, Glaucoma, and Uveitis.
## Dataset Details
- Dataset Name: Falah/eye-disease-dataset
- Number of Rows: 383
- Class Labels:
- '0': Bulging Eyes
- '1': Cataracts
- '2': Crossed Eyes
- '3': Glaucoma
- '4': Uveitis
## Usage
### Installation
You can install the dataset using the Hugging Face Datasets library:
```bash
pip install datasets
```
### Accessing the Dataset
To access the Eye Disease Dataset, you can use the following Python code:
```python
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("falah/eye-disease-dataset")
```
### Dataset Structure
The dataset consists of a collection of images, each labeled with a specific eye disease class. The images are stored in a directory structure where each class has its own subdirectory. The directory structure is as follows:
```
β”œβ”€β”€ Bulging_Eyes
β”‚ β”œβ”€β”€ image1.jpg
β”‚ β”œβ”€β”€ image2.jpg
β”‚ └── ...
β”œβ”€β”€ Cataracts
β”‚ β”œβ”€β”€ image1.jpg
β”‚ β”œβ”€β”€ image2.jpg
β”‚ └── ...
β”œβ”€β”€ Crossed_Eyes
β”‚ β”œβ”€β”€ image1.jpg
β”‚ β”œβ”€β”€ image2.jpg
β”‚ └── ...
β”œβ”€β”€ Glaucoma
β”‚ β”œβ”€β”€ image1.jpg
β”‚ β”œβ”€β”€ image2.jpg
β”‚ └── ...
└── Uveitis
β”œβ”€β”€ image1.jpg
β”œβ”€β”€ image2.jpg
└── ...
```
### Example Usage
Here's an example of how to load and visualize the Eye Disease Dataset:
```python
import matplotlib.pyplot as plt
# Load the dataset
dataset = load_dataset("falah/eye-disease-dataset")
# Display the first image and its label
image = dataset["train"][0]["image"]
label = dataset["train"][0]["label"]
plt.imshow(image)
plt.title(f"Class Label: {label}")
plt.axis("off")
plt.show()
```
## Citation
If you use the Eye Disease Dataset in your research or project, please consider citing it as:
```
@dataset{falah/eye-disease-dataset,
author = {Falah},
title = {Eye Disease Dataset},
year = {2023},
publisher = {Hugging Face},
version = {1.0.0},
url = {https://huggingface.co/falah/eye-disease-dataset}
}
```
## License
The Eye Disease Dataset is available under the [Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/legalcode) license.