CoolFace
Modelpublic

youssefabdelmottaleb/Garbage-Classification-SWIN-Transformer

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

Garbage-Classification-SWIN-Transformer

This model is a fine-tuned version of microsoft/swin-tiny-patch4-window7-224 on an unknown dataset. It achieves the following results on the evaluation set:

  • —Loss: 0.0440
  • —Accuracy: 0.9900

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: 5e-05
  • —trainbatchsize: 64
  • —evalbatchsize: 64
  • —seed: 42
  • —gradientaccumulationsteps: 4
  • —totaltrainbatch_size: 256
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: linear
  • —lrschedulerwarmup_ratio: 0.1
  • —num_epochs: 10

Training results

Training LossEpochStepValidation LossAccuracy
0.19690.99732800.17400.9409
0.10141.99825610.07520.9755
0.03332.99918420.05510.9824
0.03324.011230.05260.9845
0.02184.997314030.05110.9866
0.00865.998216840.05150.9873
0.00576.999119650.04620.9875
0.00438.022460.04530.9891
0.00128.997325260.04600.9888
0.00179.973328000.04400.9900

Framework versions

  • —Transformers 4.41.2
  • —Pytorch 2.1.2
  • —Datasets 2.19.2
  • —Tokenizers 0.19.1