File size: 914 Bytes
0c4b46f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
license: mit
---
# Xception Model for Emotion Recognition

This model is based on the **Xception** architecture and trained on the **FER2013** dataset and **CK+** for **emotion recognition**.

## Model Details
- **Architecture**: Xception
- **Input Shape**: (48, 48, 1)
- **Output Shape**: 7 classes (emotion categories)
- **Pretrained on**: FER2013 dataset (Augmented)
- **File Type**: `.h5`

## How to Use the Model

### Using the Hugging Face Inference API:
You can use this model directly through the **Hugging Face Inference API**. Here's an example of how to use it:

```python
from transformers import pipeline

# Replace with the model's name on Hugging Face
model_name = "lama9876/Xception-Model"

# Load the model using the pipeline
model = pipeline('image-classification', model=model_name)

# Make a prediction (replace with the path to your image)
result = model("path_to_image.jpg")
print(result)