Commit 34a6ea0a authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed mistake with the face cropper

parent 87f0ff11
Pipeline #39214 failed with stage
in 8 minutes and 55 seconds
......@@ -77,7 +77,7 @@ class INormLBP(Base):
self.radius = radius
self.is_circular = is_circular
self.compare_to_average = compare_to_average
self.elbp_type = elbp_type
self.elbp_type = elbp_type
self.cropper = load_cropper(face_cropper)
self._init_non_pickables()
......
......@@ -10,6 +10,8 @@ def load_cropper(face_cropper):
cropper = None
elif isinstance(face_cropper, six.string_types):
cropper = bob.bio.base.load_resource(face_cropper, "preprocessor")
elif isinstance(face_cropper, (FaceCrop, FaceDetect)):
cropper = face_cropper
else:
raise ValueError("The given face cropper type is not understood")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment