Spaces:
Sleeping
Sleeping
more example images+requirements.txt added
Browse files- .gitattributes +1 -0
- app.py +1 -1
- detect.py +0 -10
- examples/angry.jpg +0 -0
- examples/sad.jpg +0 -0
- requirements.txt +3 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
eff_quantized.onnx filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def predict(img):
|
|
| 18 |
|
| 19 |
title = "Human Emotion Detection 😭🤣🥹"
|
| 20 |
description = "An EfficientNet ONNX quantized feature extractor computer vision model to classify images and detect the emotion of the person in it.(Uploaded image should be of a single person)"
|
| 21 |
-
article = "Full Source code from scratch can be found in the huggingface Space
|
| 22 |
|
| 23 |
# Create examples list from "examples/" directory
|
| 24 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
|
|
|
| 18 |
|
| 19 |
title = "Human Emotion Detection 😭🤣🥹"
|
| 20 |
description = "An EfficientNet ONNX quantized feature extractor computer vision model to classify images and detect the emotion of the person in it.(Uploaded image should be of a single person)"
|
| 21 |
+
article = "Full Source code from scratch can be found in the huggingface Space: https://huggingface.co/spaces/Victorano/human_emotion_detection"
|
| 22 |
|
| 23 |
# Create examples list from "examples/" directory
|
| 24 |
example_list = [["examples/" + example] for example in os.listdir("examples")]
|
detect.py
DELETED
|
@@ -1,10 +0,0 @@
|
|
| 1 |
-
from PIL import Image
|
| 2 |
-
from io import BytesIO
|
| 3 |
-
import numpy as np
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
def emo_router(im):
|
| 7 |
-
print(f"the Image: {im}")
|
| 8 |
-
image = np.array(im)
|
| 9 |
-
|
| 10 |
-
return image
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
examples/angry.jpg
ADDED
|
examples/sad.jpg
ADDED
|
requirements.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
numpy==1.26.3
|
| 2 |
+
onnxruntime==1.18.0
|
| 3 |
+
gradio==4.44.0
|