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
87a4224d
Commit
87a4224d
authored
3 years ago
by
Laurent COLBOIS
Browse files
Options
Downloads
Patches
Plain Diff
Remove deprecated helper for 224x224 cropping
parent
ff00c454
No related branches found
No related tags found
1 merge request
!119
Refactor baseline config helpers
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/config/baseline/helpers.py
+0
-28
0 additions, 28 deletions
bob/bio/face/config/baseline/helpers.py
with
0 additions
and
28 deletions
bob/bio/face/config/baseline/helpers.py
+
0
−
28
View file @
87a4224d
...
...
@@ -232,31 +232,3 @@ def embedding_transformer(
)
return
transformer
def
embedding_transformer_224x224
(
embedding
,
annotation_type
,
fixed_positions
,
color_channel
=
"
rgb
"
):
"""
Creates a pipeline composed by and FaceCropper and an Embedding extractor.
This transformer is suited for Facenet based architectures
.. warning::
This will resize images to :math:`112
\t
imes 112`
"""
cropped_image_size
=
(
224
,
224
)
if
annotation_type
==
"
eyes-center
"
:
# Hard coding eye positions for backward consistency
cropped_positions
=
{
"
leye
"
:
(
65
,
150
),
"
reye
"
:
(
65
,
77
)}
else
:
# Will use default
cropped_positions
=
dnn_default_cropping
(
cropped_image_size
,
annotation_type
)
return
embedding_transformer
(
cropped_image_size
=
cropped_image_size
,
embedding
=
embedding
,
cropped_positions
=
cropped_positions
,
fixed_positions
=
fixed_positions
,
color_channel
=
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