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
edcea8f1
Commit
edcea8f1
authored
4 years ago
by
Tiago de Freitas Pereira
Browse files
Options
Downloads
Patches
Plain Diff
Update ARCFace template
parent
172e1259
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!112
Feature extractors
Pipeline
#51196
failed
4 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bob/bio/face/config/baseline/arcface_insightface.py
+3
-3
3 additions, 3 deletions
bob/bio/face/config/baseline/arcface_insightface.py
bob/bio/face/embeddings/mxnet.py
+10
-1
10 additions, 1 deletion
bob/bio/face/embeddings/mxnet.py
with
13 additions
and
4 deletions
bob/bio/face/config/baseline/arcface_insightface.py
+
3
−
3
View file @
edcea8f1
from
bob.bio.face.embeddings.mxnet
import
arcface_
baseline
from
bob.bio.face.embeddings.mxnet
import
arcface_
insightFace_lresnet100
from
bob.bio.face.utils
import
lookup_config_from_database
annotation_type
,
fixed_positions
,
memory_demanding
=
lookup_config_from_database
(
...
...
@@ -8,10 +8,10 @@ annotation_type, fixed_positions, memory_demanding = lookup_config_from_database
def
load
(
annotation_type
,
fixed_positions
=
None
):
return
arcface_baseline
(
embedding
=
ArcFaceInsightFace_LResNet100
(
memory_demanding
=
memory_demanding
),
return
arcface_insightFace_lresnet100
(
annotation_type
=
annotation_type
,
fixed_positions
=
fixed_positions
,
memory_demanding
=
memory_demanding
,
)
...
...
This diff is collapsed.
Click to expand it.
bob/bio/face/embeddings/mxnet.py
+
10
−
1
View file @
edcea8f1
...
...
@@ -159,7 +159,7 @@ from bob.bio.base.pipelines.vanilla_biometrics import (
)
def
arcface_
baselin
e
(
embedding
,
annotation_type
,
fixed_positions
=
None
):
def
arcface_
templat
e
(
embedding
,
annotation_type
,
fixed_positions
=
None
):
# DEFINE CROPPING
cropped_image_size
=
(
112
,
112
)
if
annotation_type
==
"
eyes-center
"
:
...
...
@@ -184,3 +184,12 @@ def arcface_baseline(embedding, annotation_type, fixed_positions=None):
return
VanillaBiometricsPipeline
(
transformer
,
algorithm
)
def
arcface_insightFace_lresnet100
(
annotation_type
,
fixed_positions
=
None
,
memory_demanding
=
False
):
return
arcface_template
(
ArcFaceInsightFace_LResNet100
(
memory_demanding
=
memory_demanding
),
annotation_type
,
fixed_positions
,
)
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