Skip to content
Snippets Groups Projects
Commit 34a6ea0a authored by Tiago de Freitas Pereira's avatar Tiago de Freitas Pereira
Browse files

Fixed mistake with the face cropper

parent 87f0ff11
No related branches found
No related tags found
1 merge request!64Dask pipelines
Pipeline #39214 failed
...@@ -77,7 +77,7 @@ class INormLBP(Base): ...@@ -77,7 +77,7 @@ class INormLBP(Base):
self.radius = radius self.radius = radius
self.is_circular = is_circular self.is_circular = is_circular
self.compare_to_average = compare_to_average self.compare_to_average = compare_to_average
self.elbp_type = elbp_type self.elbp_type = elbp_type
self.cropper = load_cropper(face_cropper) self.cropper = load_cropper(face_cropper)
self._init_non_pickables() self._init_non_pickables()
......
...@@ -10,6 +10,8 @@ def load_cropper(face_cropper): ...@@ -10,6 +10,8 @@ def load_cropper(face_cropper):
cropper = None cropper = None
elif isinstance(face_cropper, six.string_types): elif isinstance(face_cropper, six.string_types):
cropper = bob.bio.base.load_resource(face_cropper, "preprocessor") cropper = bob.bio.base.load_resource(face_cropper, "preprocessor")
elif isinstance(face_cropper, (FaceCrop, FaceDetect)):
cropper = face_cropper
else: else:
raise ValueError("The given face cropper type is not understood") raise ValueError("The given face cropper type is not understood")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment