Spaces:
Build error
Build error
Podtekatel
commited on
Commit
•
d9b9814
1
Parent(s):
efd8ae7
Update images
Browse files
inference/face_detector.py
CHANGED
@@ -41,7 +41,7 @@ class FaceDetector(ABC):
|
|
41 |
y2 = max(min(round(y2), H), 0)
|
42 |
new_crop = [x1, y1, x2, y2]
|
43 |
final_crops.append(new_crop)
|
44 |
-
final_crops = np.array(final_crops, dtype=np.
|
45 |
return final_crops
|
46 |
|
47 |
def crop_faces(self, img, crops) -> List[np.ndarray]:
|
|
|
41 |
y2 = max(min(round(y2), H), 0)
|
42 |
new_crop = [x1, y1, x2, y2]
|
43 |
final_crops.append(new_crop)
|
44 |
+
final_crops = np.array(final_crops, dtype=np.int32)
|
45 |
return final_crops
|
46 |
|
47 |
def crop_faces(self, img, crops) -> List[np.ndarray]:
|