CoolFace
Modelpublic

aviandito/vit-dunham-carbonate-classifier

sourceHugging Faceapache-2.0updated 9mo agoView on Hugging Face
0likes13downloads
Model Card

vit-dunham-carbonate-classifier

Cite this model

You may cite this model as follows:

Mohammad Aviandito. (2025). vit-dunham-carbonate-classifier (Version b5946db). Hugging Face. https://doi.org/10.57967/HF/7237

Model description

This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the Lokier & Al Junaibi (2016) data S1.

The model captures the expertise of 177 volunteers from 33 countries with 3,270 years of academic & industry experience in classifying 14 carbonate thin section samples by using the classical Dunham (1962) carbonate classification.

image/png (Source)

In the original paper, the authors intended to objectively analyze whether these volunteers have the same standards in applying Dunham classification.

Intended uses & limitations

  • Input: Carbonate thin section image, can be either parallel-polarized (PPL) or cross-polarized (XPL)
  • Output: Dunham classification (Mudstone/Wackestone/Packstone/Grainstone/Boundstone/Crystalline) and the probability value
  • Limitation: The original dataset is missing Boundstone sample, hence it cannot classify a Boundstone.

Sample image source: Grainstone - Wikipedia image/png

Training and evaluation data

Source: Lokier & Al Junaibi (2016), Data S1

The data consists of 14 samples. Each samples has 3 magnifications (x2, x4, and x10) and taken in PPL and XPL. Hence, there are 14 samples 3 magnifications 2 polarizations = 84 images in the training dataset.

Classification for each sample is taken from the most popular respondent's response in Table 7.

  • Sample 1: Packstone
  • Sample 2: Grainstone
  • Sample 3: Wackestone
  • Sample 4: Packstone
  • Sample 5: Wackestone
  • Sample 6: Packstone
  • Sample 7: Packstone
  • Sample 8: Mudstone
  • Sample 9: Crystalline
  • Sample 10: Grainstone
  • Sample 11: Wackestone
  • Sample 12: Grainstone
  • Sample 13: Grainstone
  • Sample 14: Mudstone

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • trainbatchsize: 8
  • evalbatchsize: 8
  • seed: 42
  • gradientaccumulationsteps: 2
  • totaltrainbatch_size: 16
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • lrschedulerwarmup_ratio: 0.1
  • num_epochs: 20

Training results

Training LossEpochStepValidation LossAccuracy
1.57641.051.53290.4444
1.39912.0101.42530.5556
1.27923.0151.28510.7778
1.01194.0201.16250.8889
0.99165.0251.04710.8889
0.92026.0300.98360.7778
0.69947.0350.86490.8889
0.5268.0400.71101.0
0.53839.0450.61271.0
0.512810.0500.53371.0
0.431211.0550.48871.0
0.382712.0600.43651.0
0.345213.0650.38911.0
0.316414.0700.36771.0
0.289915.0750.35551.0
0.287816.0800.31971.0
0.288417.0850.30561.0
0.263318.0900.31071.0
0.266919.0950.31641.0
0.246520.01000.29491.0

Framework versions

  • Transformers 4.33.2
  • Pytorch 2.0.1+cu118
  • Datasets 2.14.5
  • Tokenizers 0.13.3