v2.5.0
Datasets ⭐
EXAMPLE CODE
HAM10000 Dataset
Load the HAM10000 dataset of 10,000 dermatoscopic images in Python fast. Stream HAM10000 while training ML models in PyTorch & TensorFlow. Visualize HAM10000.
Visualization of the HAM10000 dataset on the Activeloop Platform

HAM10000 dataset

What is HAM10000 Dataset?

The Human Against Machine with 10000 training images (HAM10000) dataset includes 10000 training images for detecting pigmented skin lesions. The images in the dataset were collected from different populations, acquired, and stored by different modalities. Cases included in the dataset include a representative collection of all important diagnostic categories in the realm of pigmented lesions. More than half of the lesions in the dataset are confirmed through histopathology, the ground truth for the rest of the cases is either follow-up examination, expert consensus, or confirmation by in-vivo confocal microscopy. The dataset includes lesions with multiple images.

Download HAM10000 Dataset in Python

Instead of downloading the HAM10000 dataset in Python, you can effortlessly load it in Python via our open-source package Hub with just one line of code.

Load HAM10000 Dataset Training Subset in Python

1
import hub
2
ds = hub.load("hub://activeloop/ham10000")
Copied!

HAM10000 Dataset Structure

HAM10000 Data Fields

  • images: tensor containing the face image.
  • genders: tensor contains different genders.
  • lesion_categories: tensor to represent different lesion categories.
  • sources: tensor to represent the source.
  • localizations: tensor to represent the localisation of lesion.
  • ages: tensor representing age of person.
  • lesion_ids: tensor representing lesion id.
  • image_ids: tensor representing image id.

HAM10000 Data Splits

How to use HAM10000 Dataset with PyTorch and TensorFlow in Python

Train a model on HAM10000 dataset with PyTorch in Python

Let's use Hub's built-in PyTorch one-line dataloader to connect the data to the compute:
1
dataloader = ds.pytorch(num_workers=0, batch_size=4, shuffle=False)
Copied!

Train a model on HAM10000 dataset with TensorFlow in Python

1
dataloader = ds.tensorflow()
Copied!

Additional Information about HAM10000 Dataset

HAM10000 Dataset Description

HAM10000 Dataset Curators

Tschandl, Philipp

HAM10000 Dataset Licensing Information

Hub users may have access to a variety of publicly available datasets. We do not host or distribute these datasets, vouch for their quality or fairness, or claim that you have a license to use the datasets. It is your responsibility to determine whether you have permission to use the datasets under their license.
If you're a dataset owner and do not want your dataset to be included in this library, please get in touch through a GitHub issue. Thank you for your contribution to the ML community!

HAM10000 Dataset Citation Information

1
@inproceedings{,
2
title = {The HAM10000 dataset, a large collection of multi-source dermatoscopic images of common pigmented skin lesions},
3
author = {Tschandl, Philipp},
4
year = {2018}
5
}
Copied!

HAM10000 Dataset FAQs

What is the HAM10000 dataset for Python?

The HAM10000 dataset is a popular benchmark dataset that can be used for machine learning and for comparing machine learning results with human experts. The cases included in the HAM10000 contain a representative collection of all important diagnostic categories in the realm of pigmented lesions.
How to download the HAM10000 dataset in Python?
You can load HAM10000 dataset fast with one line of code using the open-source package Activeloop Hub in Python. See detailed instructions on how to load HAM10000 dataset training subset in Python.

How can I use HAM10000 dataset in PyTorch or TensorFlow?

You can stream the HAM10000 dataset while training a model in PyTorch or TensorFlow with one line of code using the open-source package Activeloop Hub in Python. See detailed instructions on how to train a model on HAM10000 dataset with PyTorch in Python or train a model on HAM10000 dataset with TensorFlow in Python.