Alignment for LightCNN
Compare changes
+ 129
− 11
@@ -19,6 +19,9 @@ import bob.ip.base
@@ -76,6 +79,31 @@ def auto_norm_image(data, annotations, n_sigma=3.0, norm_method='MAD'):
@@ -108,6 +136,32 @@ def get_eye_pos(lm):
@@ -213,7 +267,7 @@ def detect_face_landmarks_in_image(image, method="dlib"):
@@ -250,16 +304,56 @@ def normalize_image_size_in_grayscale(image, annotations,
@@ -278,7 +372,7 @@ def normalize_image_size_in_grayscale(image, annotations,
@@ -334,7 +428,7 @@ def normalize_image_size(image, annotations, face_size,
@@ -388,6 +482,15 @@ class FaceCropAlign(Preprocessor):
@@ -420,6 +523,7 @@ class FaceCropAlign(Preprocessor):
@@ -429,6 +533,7 @@ class FaceCropAlign(Preprocessor):
@@ -438,6 +543,7 @@ class FaceCropAlign(Preprocessor):
@@ -447,6 +553,17 @@ class FaceCropAlign(Preprocessor):
@@ -546,6 +663,7 @@ class FaceCropAlign(Preprocessor):