Run this model with HF Jobs

Run chbh7051/vit-driver-drowsiness-detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/chbh7051/vit-driver-drowsiness-detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/chbh7051/vit-driver-drowsiness-detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

vit-driver-drowsiness-detection

This model is a fine-tuned version of google/vit-base-patch16-224 on the chbh7051/driver-drowsiness-detection dataset. It achieves the following results on the evaluation set:

  • Loss: 0.0159
  • Accuracy: 0.9930

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: 0.0002
  • train_batch_size: 16
  • eval_batch_size: 8
  • seed: 42
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • num_epochs: 2
  • mixed_precision_training: Native AMP

Training results

Training Loss Epoch Step Validation Loss Accuracy
0.1504 0.17 500 0.1178 0.9540
0.0581 0.33 1000 0.1022 0.9579
0.0415 0.5 1500 0.0877 0.9746
0.0487 0.67 2000 0.0650 0.9775
0.0555 0.84 2500 0.0537 0.9786
0.0279 1.0 3000 0.0472 0.9827
0.0139 1.17 3500 0.0452 0.9855
0.0282 1.34 4000 0.0358 0.9878
0.0077 1.5 4500 0.0397 0.9876
0.0143 1.67 5000 0.0159 0.9930
0.0439 1.84 5500 0.0162 0.9930

Framework versions

  • Transformers 4.27.4
  • Pytorch 1.13.0
  • Datasets 2.1.0
  • Tokenizers 0.13.2
Downloads last month
14
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Spaces using chbh7051/vit-driver-drowsiness-detection 2

Evaluation results

  • Accuracy on chbh7051/driver-drowsiness-detection
    self-reported
    0.993