Instructions to use Maria-pro/emotions_classif_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Maria-pro/emotions_classif_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="Maria-pro/emotions_classif_model") 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("Maria-pro/emotions_classif_model") model = AutoModelForImageClassification.from_pretrained("Maria-pro/emotions_classif_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from Maria-pro/emotions_classif_model: direct link, hf CLI and curl.
- Browser
- Download file 2.05 kB
-
https://huggingface.co/Maria-pro/emotions_classif_model/resolve/main/README.md
- Command line
-
hf download hf://Maria-pro/emotions_classif_model/README.md
-
curl -L -o README.md https://huggingface.co/Maria-pro/emotions_classif_model/resolve/main/README.md
2.05 kB
metadata
library_name: transformers
license: apache-2.0
base_model: google/vit-base-patch16-224-in21k
tags:
- generated_from_trainer
datasets:
- imagefolder
metrics:
- accuracy
model-index:
- name: emotions_classif_model
results:
- task:
name: Image Classification
type: image-classification
dataset:
name: imagefolder
type: imagefolder
config: default
split: train
args: default
metrics:
- name: Accuracy
type: accuracy
value: 0.53125
emotions_classif_model
This model is a fine-tuned version of google/vit-base-patch16-224-in21k on the imagefolder dataset. It achieves the following results on the evaluation set:
- Loss: 1.0759
- Accuracy: 0.5312
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: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 1.0 | 2 | 1.1015 | 0.2812 |
| No log | 2.0 | 4 | 1.1003 | 0.375 |
| No log | 3.0 | 6 | 1.0759 | 0.5312 |
Framework versions
- Transformers 4.56.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.0