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
File size: 1,725 Bytes
a791dcb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | {
"best_global_step": 6,
"best_metric": 0.53125,
"best_model_checkpoint": "emotions_classif_model/checkpoint-6",
"epoch": 3.0,
"eval_steps": 500,
"global_step": 6,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 1.0,
"eval_accuracy": 0.28125,
"eval_loss": 1.101482629776001,
"eval_runtime": 27.1427,
"eval_samples_per_second": 1.179,
"eval_steps_per_second": 0.074,
"step": 2
},
{
"epoch": 2.0,
"eval_accuracy": 0.375,
"eval_loss": 1.10026216506958,
"eval_runtime": 23.9862,
"eval_samples_per_second": 1.334,
"eval_steps_per_second": 0.083,
"step": 4
},
{
"epoch": 3.0,
"eval_accuracy": 0.53125,
"eval_loss": 1.0758609771728516,
"eval_runtime": 32.6408,
"eval_samples_per_second": 0.98,
"eval_steps_per_second": 0.061,
"step": 6
},
{
"epoch": 3.0,
"step": 6,
"total_flos": 2.9059756556544e+16,
"train_loss": 1.0899391174316406,
"train_runtime": 1151.6246,
"train_samples_per_second": 0.326,
"train_steps_per_second": 0.005
}
],
"logging_steps": 10,
"max_steps": 6,
"num_input_tokens_seen": 0,
"num_train_epochs": 3,
"save_steps": 500,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": true
},
"attributes": {}
}
},
"total_flos": 2.9059756556544e+16,
"train_batch_size": 16,
"trial_name": null,
"trial_params": null
}
|