Commit ebb53f47 authored by Laurent COLBOIS's avatar Laurent COLBOIS

Add warning in default cropping positions when receiving an unknown annotation type

parent 5a260a1e
Pipeline #46765 passed with stage
in 36 minutes and 37 seconds
......@@ -4,7 +4,8 @@ from bob.bio.base.wrappers import wrap_sample_preprocessor
from bob.pipelines import wrap
from bob.bio.face.helpers import face_crop_solver
import numpy as np
import logging
logger = logging.getLogger(__name__)
def embedding_transformer_default_cropping(cropped_image_size, annotation_type):
"""
......@@ -77,6 +78,7 @@ def embedding_transformer_default_cropping(cropped_image_size, annotation_type):
else:
logger.warning(f"Annotation type {annotation_type} is not handled. Input images will be fully scaled.")
cropped_positions = None
return cropped_positions
......@@ -135,6 +137,7 @@ def legacy_default_cropping(cropped_image_size, annotation_type):
else:
logger.warning(f"Annotation type {annotation_type} is not handled. Input images will be fully scaled.")
cropped_positions = None
return cropped_positions
......
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