Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
image
imagewidth (px)
200
3.46k
label
class label
42 classes
0amphibolite
0amphibolite
0amphibolite
0amphibolite
0amphibolite
0amphibolite
1andesite
1andesite
1andesite
1andesite
1andesite
1andesite
1andesite
2anthracite
2anthracite
2anthracite
2anthracite
2anthracite
2anthracite
2anthracite
2anthracite
3basalt
3basalt
3basalt
3basalt
3basalt
3basalt
3basalt
4breccia
4breccia
4breccia
4breccia
4breccia
4breccia
4breccia
5caliche
5caliche
5caliche
6chalk
6chalk
6chalk
6chalk
6chalk
6chalk
7chert
7chert
7chert
7chert
7chert
7chert
8coal
8coal
8coal
8coal
8coal
8coal
8coal
8coal
9conglomerate
9conglomerate
9conglomerate
9conglomerate
9conglomerate
9conglomerate
9conglomerate
10dacite
10dacite
10dacite
10dacite
10dacite
10dacite
11diatomite
11diatomite
11diatomite
11diatomite
11diatomite
11diatomite
12diorite
12diorite
12diorite
12diorite
12diorite
12diorite
12diorite
12diorite
12diorite
12diorite
13dolomite
13dolomite
13dolomite
13dolomite
13dolomite
13dolomite
14flint
14flint
14flint
14flint
14flint
15gabbro
15gabbro
End of preview. Expand in Data Studio

Rock Classification Dataset (42 Classes)

An image classification dataset of 394 rock images spanning 42 rock types across three broad geological categories (igneous, metamorphic, and sedimentary), structured with train and val splits for image classification training and evaluation.

Dataset Structure

The dataset is organized in imagefolder format with two splits:

  • train/: 300 images across 42 rock class subfolders
  • val/: 94 images across 42 rock class subfolders

Each subfolder name corresponds to a specific rock class label:

  • Igneous (14 classes): andesite, basalt, dacite, diorite, gabbro, granite, obsidian, pegmatite, peridotite, pumice, rhyolite, scoria, tuff, unakite
  • Metamorphic (14 classes): amphibolite, anthracite, gneiss, hornfels, lapis lazuli, marble, mariposite, novaculite, phyllite, quartzite, schist, skarn, slate, soapstone
  • Sedimentary (14 classes): breccia, caliche, chalk, chert, coal, conglomerate, diatomite, dolomite, flint, iron ore, limestone, sandstone, shale, slitstone

Usage

Load with Hugging Face datasets

from datasets import load_dataset

ds = load_dataset("zarifbinakhtar/rocks-classification-42")
print(ds)
Downloads last month
14