ONNX Model Zoo

william7642/my_awesome_food_model

By william7642 · ↓ 7 · ♥ 0 · Updated 2023-10-01

What's in this repo

This page lists the files in william7642/my_awesome_food_model, including model.onnx, model_quantized.onnx.

  • 2 ONNX models (.onnx files)
  • 15 files, including 3 .json, 2 .onnx, 2 .bin, 2 .1, 2 .0, 1 .md
  • Last updated 2023-10-01

ONNX files

File Size Download
onnx/model.onnx — Download
onnx/model_quantized.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

my_awesome_food_model

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

  • Loss: 1.0616
  • Accuracy: 0.7962

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
  • train_batch_size: 16
  • eval_batch_size: 16
  • seed: 42
  • gradient_accumulation_steps: 4
  • total_train_batch_size: 64
  • optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • lr_scheduler_type: linear
  • lr_scheduler_warmup_ratio: 0.1
  • num_epochs: 3

Training results

Training Loss Epoch Step Validation Loss Accuracy
1.9969 1.0 947 1.9538 0.7321
1.1907 2.0 1894 1.2216 0.7806
0.9433 3.0 2841 1.0616 0.7962

Framework versions

  • Transformers 4.25.1
  • Pytorch 1.13.0+cu116
  • Datasets 2.8.0
  • Tokenizers 0.13.2

Model info

image-classification transformers
transformers pytorch tensorboard onnx vit image-classification generated_from_trainer dataset:food101 license:apache-2.0 model-index endpoints_compatible region:us
↓ 7 ♥ 0

Created: 2022-12-20

Updated: 2023-10-01

View on Hugging Face

Files (15)

.gitattributes
.gitignore
README.md
config.json
onnx/model.onnx ONNX
onnx/model_quantized.onnx ONNX
onnx/test.txt
preprocessor_config.json
pytorch_model.bin
quantize_config.json
runs/Dec20_08-00-58_f9b8a1efb2f7/1671523274.44525/events.out.tfevents.1671523274.f9b8a1efb2f7.772.1
runs/Dec20_08-00-58_f9b8a1efb2f7/events.out.tfevents.1671523274.f9b8a1efb2f7.772.0
runs/Dec22_07-46-40_4861e817b0dc/1671695335.3680491/events.out.tfevents.1671695335.4861e817b0dc.416.1
runs/Dec22_07-46-40_4861e817b0dc/events.out.tfevents.1671695335.4861e817b0dc.416.0
training_args.bin

Related models