Run this model with HF Jobs
Run jhoppanne/Emotion-Image-Classification-V2 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/jhoppanne/Emotion-Image-Classification-V2. 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/jhoppanne/Emotion-Image-Classification-V2 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 jhoppanne/Emotion-Image-Classification-V2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jhoppanne/Emotion-Image-Classification-V2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-classification", model="jhoppanne/Emotion-Image-Classification-V2") 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("jhoppanne/Emotion-Image-Classification-V2") model = AutoModelForImageClassification.from_pretrained("jhoppanne/Emotion-Image-Classification-V2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, epoch 1
Browse filesFiles changed (4)
- config.jsonAdded+44
- model.safetensorsAdded+3
- preprocessor_config.jsonAdded+22
- training_args.binAdded+3
1234567891011121314151617181920212223242526272829303132333435363738394041424344{
"_name_or_path": "google/vit-base-patch16-224-in21k",
"architectures": [
"ViTForImageClassification"
],
"attention_probs_dropout_prob": 0.0,
"encoder_stride": 16,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.0,
"hidden_size": 768,
"id2label": {
"0": "anger",
"1": "contempt",
"2": "disgust",
"3": "fear",
"4": "happy",
"5": "neutral",
"6": "sad",
"7": "surprise"
},
"image_size": 224,
"initializer_range": 0.02,
"intermediate_size": 3072,
"label2id": {
"anger": "0",
"contempt": "1",
"disgust": "2",
"fear": "3",
"happy": "4",
"neutral": "5",
"sad": "6",
"surprise": "7"
},
"layer_norm_eps": 1e-12,
"model_type": "vit",
"num_attention_heads": 12,
"num_channels": 3,
"num_hidden_layers": 12,
"patch_size": 16,
"problem_type": "single_label_classification",
"qkv_bias": true,
"torch_dtype": "float32",
"transformers_version": "4.37.2"
}123version https://git-lfs.github.com/spec/v1oid sha256:ff956d83e910ef8c8980ee8b2ac4ad4ed405fe4d761f10116ac678cc662f15f8size 34324243212345678910111213141516171819202122{
"do_normalize": true,
"do_rescale": true,
"do_resize": true,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "ViTImageProcessor",
"image_std": [
0.5,
0.5,
0.5
],
"resample": 2,
"rescale_factor": 0.00392156862745098,
"size": {
"height": 224,
"width": 224
}
}123version https://git-lfs.github.com/spec/v1oid sha256:f4ebb7e2dff99d78115032bac7dc346c7ebd3d219b59a3878314a6a4a85e36b2size 4728config.jsonAdded+44
model.safetensorsAdded+3
preprocessor_config.jsonAdded+22
training_args.binAdded+3