Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bob.bio.face
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bob
bob.bio.face
Commits
25feb61e
Commit
25feb61e
authored
5 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
Improve the warning message in FaceCrop
parent
b109e352
No related branches found
No related tags found
1 merge request
!57
Improve the warning message in FaceCrop
Pipeline
#30781
passed
5 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/preprocessor/FaceCrop.py
+3
-2
3 additions, 2 deletions
bob/bio/face/preprocessor/FaceCrop.py
with
3 additions
and
2 deletions
bob/bio/face/preprocessor/FaceCrop.py
+
3
−
2
View file @
25feb61e
...
...
@@ -273,8 +273,9 @@ class FaceCrop (Base):
if
not
self
.
is_annotations_valid
(
annotations
)
and
\
not
self
.
fixed_positions
and
\
self
.
annotator
is
None
:
logger
.
warn
(
"
Cannot crop face without annotations or fixed_positions
"
"
or an annotator. Returning None.
"
)
logger
.
warn
(
"
Cannot crop face without valid annotations or
"
"
fixed_positions or an annotator. Returning None.
"
"
The annotations were: {}
"
.
format
(
annotations
))
return
None
# convert to the desired color channel
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment