kdhht2334 commited on
Commit
1168a35
1 Parent(s): 0e2ba67

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +25 -0
README.md CHANGED
@@ -69,6 +69,31 @@ git lfs install
69
  git clone https://huggingface.co/datasets/FER-Universe/DiffusionFER
70
  ```
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
 
73
  ### Sample Gallery
74
 
 
69
  git clone https://huggingface.co/datasets/FER-Universe/DiffusionFER
70
  ```
71
 
72
+ ### Pre-trained model
73
+
74
+ You can easily download and use pre-trained __Swin Transformer__ model with the `Diffusion_Emotion_S` dataset.
75
+
76
+ Later, Transformer models with the `Diffusion_Emotion_M` or `Diffusion_Emotion_L` will be released.
77
+
78
+ ```python
79
+ from transformers import AutoFeatureExtractor, AutoModelForImageClassification
80
+
81
+ extractor = AutoFeatureExtractor.from_pretrained("kdhht2334/autotrain-diffusion-emotion-facial-expression-recognition-40429105176")
82
+
83
+ model = AutoModelForImageClassification.from_pretrained("kdhht2334/autotrain-diffusion-emotion-facial-expression-recognition-40429105176")
84
+ ```
85
+
86
+ Or just clone the model repo
87
+
88
+
89
+ ```bash
90
+ git lfs install
91
+ git clone https://huggingface.co/kdhht2334/autotrain-diffusion-emotion-facial-expression-recognition-40429105176
92
+ ```
93
+
94
+ - Quick links: [huggingface model documentation](https://huggingface.co/docs/transformers/main/en/model_doc/swin#transformers.SwinForImageClassification)
95
+
96
+
97
 
98
  ### Sample Gallery
99