CoolFace
Modelpublic

pratapaadii/image_classification

sourceHugging Faceapache-2.0updated 2y agoView on Hugging Face
0likes22downloads
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. -->

image_classification

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

  • Loss: 1.1877
  • Accuracy: 0.6

Model description

Hey everyone! This is the first model I’ve deployed :D. This emotion recognition model is a fine-tuned version of google/vit-base-patch16-224-in21k, trained on the ImageFolder dataset. As a first-timer, I’m proud that this model has achieved such accuracy. I plan to further train it to improve its accuracy. Wish me luck!

Intended uses & limitations

I strongly suggest using an input picture with a clear indication of emotion, as I’ve found that the model can sometimes misinterpret the output. Additionally, this model seems to lack confidence in identifying emotions, as evidenced by the slightly varying scores.

Training and evaluation data

More information needed

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • trainbatchsize: 4
  • evalbatchsize: 4
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lrschedulertype: linear
  • num_epochs: 10

Training results

Training LossEpochStepValidation LossAccuracy
No log1.01601.59200.375
No log2.03201.46890.4313
No log3.04801.36990.4625
1.49894.06401.22040.5813
1.49895.08001.20190.5437
1.49896.09601.21260.55
0.93627.011201.18460.5563
0.93628.012801.28190.5312
0.93629.014401.25830.525
0.539610.016001.15710.6

Framework versions

  • Transformers 4.41.1
  • Pytorch 2.3.0+cu121
  • Datasets 2.19.1
  • Tokenizers 0.19.1