Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
bob.bio.face
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bob
bob.bio.face
Commits
ebb53f47
Commit
ebb53f47
authored
Dec 21, 2020
by
Laurent COLBOIS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
bob/bio/face/config/baseline/helpers.py
bob/bio/face/config/baseline/helpers.py
+4
-1
No files found.
bob/bio/face/config/baseline/helpers.py
View file @
ebb53f47
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment