Spaces:
Build error
Build error
natexcvi
commited on
Commit
•
3ea82c1
1
Parent(s):
6ef3be3
Fix shape
Browse files- model/model.py +1 -1
model/model.py
CHANGED
@@ -24,7 +24,7 @@ class Model:
|
|
24 |
array_repr = np.asarray(bytearray(image), dtype=np.uint8)
|
25 |
decoded_img = cv2.imdecode(array_repr, flags=cv2.IMREAD_COLOR)
|
26 |
landmarks = self.landmark_extractor.extract_landmarks_flat(decoded_img)
|
27 |
-
return pd.DataFrame([landmarks]).to_numpy().reshape(478, -1)
|
28 |
|
29 |
@staticmethod
|
30 |
def distance(x1: np.ndarray, x2: np.ndarray):
|
|
|
24 |
array_repr = np.asarray(bytearray(image), dtype=np.uint8)
|
25 |
decoded_img = cv2.imdecode(array_repr, flags=cv2.IMREAD_COLOR)
|
26 |
landmarks = self.landmark_extractor.extract_landmarks_flat(decoded_img)
|
27 |
+
return pd.DataFrame([landmarks]).to_numpy().reshape(1, 478, -1)
|
28 |
|
29 |
@staticmethod
|
30 |
def distance(x1: np.ndarray, x2: np.ndarray):
|