From ea461fffcdd48af3b2d15d0650942e749d7e392a Mon Sep 17 00:00:00 2001
From: Laurent COLBOIS <lcolbois@.idiap.ch>
Date: Thu, 27 May 2021 10:06:50 +0200
Subject: [PATCH] Fix circular import

---
 bob/bio/face/helpers.py | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/bob/bio/face/helpers.py b/bob/bio/face/helpers.py
index 46a83a5d..9a3a2c97 100644
--- a/bob/bio/face/helpers.py
+++ b/bob/bio/face/helpers.py
@@ -1,10 +1,5 @@
 from bob.bio.face.preprocessor import FaceCrop, MultiFaceCrop, Scale
-from bob.bio.face.config.baseline.helpers import (
-    legacy_default_cropping,
-    dnn_default_cropping,
-    pad_default_cropping,
-)
-
+import bob.bio.face.config.baseline.helpers as helpers
 
 def face_crop_solver(
     cropped_image_size,
@@ -68,10 +63,10 @@ def get_default_cropped_positions(mode, cropped_image_size, annotation_type):
         ``annotation_type`` is a list
     """
     if mode == "legacy":
-        return legacy_default_cropping(cropped_image_size, annotation_type)
+        return helpers.legacy_default_cropping(cropped_image_size, annotation_type)
     elif mode in ["dnn", "facenet", "arcface"]:
-        return dnn_default_cropping(cropped_image_size, annotation_type)
+        return helpers.dnn_default_cropping(cropped_image_size, annotation_type)
     elif mode == "pad":
-        return pad_default_cropping(cropped_image_size, annotation_type)
+        return helpers.pad_default_cropping(cropped_image_size, annotation_type)
     else:
         raise ValueError("Unknown default cropping mode `{}`".format(mode))
-- 
GitLab