CoolFace
Modelpublic

Sigurdur/isl-img2text

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes15downloads
Model Card

isl-img2text

Author: Sigurdur Haukur Birgisson

This model is a fine-tuned version of microsoft/git-base on Sigurdur/isl-image-captioning. It achieves the following results on the evaluation set:

  • —eval_loss: 0.0983
  • —evalwerscore: 0.7295
  • —eval_runtime: 20.5346
  • —evalsamplesper_second: 7.792
  • —evalstepsper_second: 0.974
  • —epoch: 15.0
  • —step: 150

It appears that the model heavilly overfitted to the dataset. Also, something I failed to consider was that the base model can't write any Icelandic characters and was thus not suited for this task. Future works might want to add the capability of writing Icelandic characters to the model.

repo: https://github.com/sigurdurhaukur/isl-img-cap

Model description

More information needed

Intended uses & limitations

Image captioning in Icelandic

Training and evaluation data

Scraped images and their descriptions/captions from the Icelandic wikipedia.

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • —learning_rate: 5e-05
  • —trainbatchsize: 8
  • —evalbatchsize: 8
  • —seed: 42
  • —gradientaccumulationsteps: 8
  • —totaltrainbatch_size: 64
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —num_epochs: 50
  • —mixedprecisiontraining: Native AMP

Metrics

EpochTraining LossValidation LossWer Score
110.0963008.690205102.247536
28.2682007.65529597.659365
37.2980006.67911295.714129
46.3198005.6733682.136911
55.3175004.65687122.439211
64.3156003.6674941.001095
73.3400002.7227411.063527
82.4177001.8522530.944140
91.5939001.1369620.949617
100.9449000.6385810.933187
110.5162000.3551870.955093
120.2816000.2159510.822563
130.1675000.1487630.773275
140.1117000.1167830.792990
150.0808000.0982610.729463

Framework versions

  • —Transformers 4.42.3
  • —Pytorch 2.0.1
  • —Datasets 2.20.0
  • —Tokenizers 0.19.1