Spaces:
Sleeping
Sleeping
add
Browse files
app/Hackathon_setup/exp_recognition.py
CHANGED
|
@@ -62,9 +62,10 @@ def get_expression(img):
|
|
| 62 |
##########################################################################################
|
| 63 |
##########################################################################################
|
| 64 |
|
| 65 |
-
face = detected_face(img)
|
| 66 |
-
|
| 67 |
-
|
|
|
|
| 68 |
face = trnscm(face).unsqueeze(0)
|
| 69 |
# YOUR CODE HERE, return expression using your model
|
| 70 |
file = open(current_path + "/exp_model.t7")
|
|
|
|
| 62 |
##########################################################################################
|
| 63 |
##########################################################################################
|
| 64 |
|
| 65 |
+
#face = detected_face(img)
|
| 66 |
+
face = img
|
| 67 |
+
# if face==0:
|
| 68 |
+
# face = Image.fromarray(cv2.cvtColor(img, cv2.COLOR_BGR2GRAY))
|
| 69 |
face = trnscm(face).unsqueeze(0)
|
| 70 |
# YOUR CODE HERE, return expression using your model
|
| 71 |
file = open(current_path + "/exp_model.t7")
|