CoolFace
Modelpublic

argish/vit-base-patch16-224-in21k-facial-emotion-classification

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes6downloads
Model Card

<!-- This model card has been generated automatically according to the information the Trainer had access to. You should probably proofread and complete it, then remove this comment. -->

vitferfinetuned

This model is a fine-tuned version of google/vit-base-patch16-224-in21k on an unknown dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.5470
  • —Accuracy: 0.8399
  • —F1 Macro: 0.8459
  • —F1 Micro: 0.8399
  • —Precision Macro: 0.8451
  • —Recall Macro: 0.8472
  • —F1 Angry: 0.7908
  • —Precision Angry: 0.7735
  • —Recall Angry: 0.8090
  • —F1 Disgust: 0.9321
  • —Precision Disgust: 0.9364
  • —Recall Disgust: 0.9279
  • —F1 Fear: 0.7547
  • —Precision Fear: 0.7677
  • —Recall Fear: 0.7422
  • —F1 Happy: 0.9386
  • —Precision Happy: 0.9556
  • —Recall Happy: 0.9222
  • —F1 Neutral: 0.8262
  • —Precision Neutral: 0.8105
  • —Recall Neutral: 0.8427
  • —F1 Sad: 0.7626
  • —Precision Sad: 0.7692
  • —Recall Sad: 0.7562
  • —F1 Surprise: 0.9164
  • —Precision Surprise: 0.9030
  • —Recall Surprise: 0.9302

Model description

More information needed

Intended uses & limitations

More information needed

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 2e-05
  • —trainbatchsize: 32
  • —evalbatchsize: 32
  • —seed: 42
  • —gradientaccumulationsteps: 2
  • —totaltrainbatch_size: 64
  • —optimizer: Use adamwtorch with betas=(0.9,0.999) and epsilon=1e-08 and optimizerargs=No additional optimizer arguments
  • —lrschedulertype: linear
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 5
  • —mixedprecisiontraining: Native AMP

Training results

Training LossEpochStepValidation LossAccuracyF1 MacroF1 MicroPrecision MacroRecall MacroF1 AngryPrecision AngryRecall AngryF1 DisgustPrecision DisgustRecall DisgustF1 FearPrecision FearRecall FearF1 HappyPrecision HappyRecall HappyF1 NeutralPrecision NeutralRecall NeutralF1 SadPrecision SadRecall SadF1 SurprisePrecision SurpriseRecall Surprise
1.03531.08990.95390.66590.61280.66590.61360.67590.54570.62300.48540.48690.33120.91890.38570.61960.28000.88740.88720.88770.65500.59930.72200.56040.51870.60930.76830.71660.8281
0.74132.017980.77350.74000.73670.74000.72970.75200.67320.59150.78120.82640.76340.90090.57770.65190.51870.90880.94340.87670.71740.72190.71300.62160.62970.61370.83180.80590.8595
0.50943.026970.63810.79550.80390.79550.80330.80530.76330.74050.78750.93640.94500.92790.68340.67270.69450.92460.94250.90740.76960.76060.77880.67790.70350.65410.87230.85800.8871
0.41654.035960.55960.83190.83910.83190.84280.83660.79830.83260.76670.94010.96230.91890.74520.72190.77010.93270.95150.91450.81000.78090.84130.74460.74820.74100.90280.90230.9034
0.27725.044950.51510.85280.85750.85280.85820.85710.81790.79720.83960.93640.94500.92790.78390.80250.76620.93970.94860.93100.83350.82510.84210.77200.76960.77440.91900.91960.9184

Framework versions

  • —Transformers 4.47.0
  • —Pytorch 2.5.1+cu121
  • —Datasets 3.3.1
  • —Tokenizers 0.21.0