Image Classification
Transformers
TensorBoard
Safetensors
vit
Generated from Trainer
Eval Results (legacy)
Run this model with HF Jobs
Run kazuma313/emotion_classification 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/kazuma313/emotion_classification. 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/kazuma313/emotion_classification 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.
Instructions to use kazuma313/emotion_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kazuma313/emotion_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="kazuma313/emotion_classification") pipe("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png")# pip install -U transformers accelerate # Load model directly from transformers import AutoImageProcessor, AutoModelForImageClassification processor = AutoImageProcessor.from_pretrained("kazuma313/emotion_classification") model = AutoModelForImageClassification.from_pretrained("kazuma313/emotion_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (2)
- README.md+20-10
- model.safetensors+1-1
21 unmodified lines222324252627283 unmodified lines323334353637383918 unmodified lines58596061626364656667686970717273741 unmodified line7677787921 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.5375---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 1.3293- Accuracy: 0.5375## Model description18 unmodified lines- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 5### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 1.0 | 20 | 1.4818 | 0.4375 || No log | 2.0 | 40 | 1.4215 | 0.4562 || No log | 3.0 | 60 | 1.3947 | 0.5 || No log | 4.0 | 80 | 1.3840 | 0.5 || No log | 5.0 | 100 | 1.3293 | 0.5375 |### Framework versions1 unmodified line- Transformers 4.35.2- Pytorch 2.1.0+cu121- Datasets 2.17.0- Tokenizers 0.15.121 unmodified lines222324252627283 unmodified lines323334353637383918 unmodified lines5859606162636465666768697071727374757677787980818283841 unmodified line8687888921 unmodified linesmetrics:- name: Accuracytype: accuracyvalue: 0.56875---<!-- This model card has been generated automatically according to the information the Trainer had access to. You3 unmodified linesThis model is a fine-tuned version of [google/vit-base-patch16-224-in21k](https://huggingface.co/google/vit-base-patch16-224-in21k) on the imagefolder dataset.It achieves the following results on the evaluation set:- Loss: 1.1901- Accuracy: 0.5687## Model description18 unmodified lines- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 15### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 1.0 | 20 | 1.9937 | 0.225 || No log | 2.0 | 40 | 1.7466 | 0.4188 || No log | 3.0 | 60 | 1.5370 | 0.5375 || No log | 4.0 | 80 | 1.4797 | 0.5125 || No log | 5.0 | 100 | 1.3531 | 0.55 || No log | 6.0 | 120 | 1.3115 | 0.5687 || No log | 7.0 | 140 | 1.2982 | 0.5375 || No log | 8.0 | 160 | 1.2543 | 0.5437 || No log | 9.0 | 180 | 1.2666 | 0.525 || No log | 10.0 | 200 | 1.2427 | 0.5312 || No log | 11.0 | 220 | 1.2100 | 0.5687 || No log | 12.0 | 240 | 1.2494 | 0.5375 || No log | 13.0 | 260 | 1.2266 | 0.5625 || No log | 14.0 | 280 | 1.2360 | 0.5437 || No log | 15.0 | 300 | 1.1901 | 0.5687 |### Framework versions1 unmodified line- Transformers 4.35.2- Pytorch 2.1.0+cu121- Datasets 2.17.0- Tokenizers 0.15.2
123version https://git-lfs.github.com/spec/v1oid sha256:d4a2e0d540bc0324540c1cb984b7c0a1c76fa01cc0cd36a4bc31a911c68ad446size 343242432123version https://git-lfs.github.com/spec/v1oid sha256:f42ec946cc0481cd3022c43814e375329d6d30af0278f0f194875eaba6576181size 343242432
README.md+20-10
model.safetensors+1-1