---
title: facial_emotions_image_detection
canonical_url: "https://www.modelscope.cn/models/dima806/facial_emotions_image_detection"
md_url: "https://www.modelscope.cn/models/dima806/facial_emotions_image_detection.md"
repository: dima806/facial_emotions_image_detection
last_updated: 2025-11-18
license: apache-2.0
pipeline_tag: image-classification
tasks:
  - image-classification
model_type:
  - vit
architectures:
  - ViTForImageClassification
base_model:
  - google/vit-base-patch16-224-in21k
base_model_relation: finetune
parameters: 257.4M
tensor_type:
  - F32
library_name:
  - safetensors
  - pytorch
frameworks:
  - pytorch
downloads: 142
stars: 0
---

# facial_emotions_image_detection

> facial_emotions_image_detection - dima806 在 ModelScope 开源的模型。Returns facial emotion with about 91% accuracy based on facial human image.

dima806/facial_emotions_image_detection 是 ModelScope 魔搭社区上的 257.4M 参数image-classification模型，采用 apache-2.0 许可，基于 google/vit-base-patch16-224-in21k 构建。

- **Repository**: dima806/facial_emotions_image_detection
- **License**: apache-2.0
- **Tasks**: image-classification
- **Parameters**: 257.4M
- **Base model**: google/vit-base-patch16-224-in21k
- **Downloads**: 142
- **Stars**: 0
- **Last updated**: 2025-11-18

Source: https://www.modelscope.cn/models/dima806/facial_emotions_image_detection

---

Returns facial emotion with about 91% accuracy based on facial human image.

See https://www.kaggle.com/code/dima806/facial-emotions-image-detection-vit for more details.

![image/png](https://cdn-uploads.huggingface.co/production/uploads/6449300e3adf50d864095b90/dr6xp-8bjXk0TqXfJaBDn.png)

```
Classification report:

              precision    recall  f1-score   support

         sad     0.8394    0.8632    0.8511      3596
     disgust     0.9909    1.0000    0.9954      3596
       angry     0.9022    0.9035    0.9028      3595
     neutral     0.8752    0.8626    0.8689      3595
        fear     0.8788    0.8532    0.8658      3596
    surprise     0.9476    0.9449    0.9463      3596
       happy     0.9302    0.9372    0.9336      3596

    accuracy                         0.9092     25170
   macro avg     0.9092    0.9092    0.9091     25170
weighted avg     0.9092    0.9092    0.9091     25170
```
