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
f5299143
Commit
f5299143
authored
4 years ago
by
Laurent COLBOIS
Browse files
Options
Downloads
Patches
Plain Diff
Blacked bob.bio.face.test.test_embeddings
parent
0267811f
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!84
Test Facenet
Pipeline
#46291
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/test/test_embeddings.py
+2
-2
2 additions, 2 deletions
bob/bio/face/test/test_embeddings.py
with
2 additions
and
2 deletions
bob/bio/face/test/test_embeddings.py
+
2
−
2
View file @
f5299143
...
...
@@ -93,7 +93,7 @@ def test_idiap_inceptionv1_casia():
@is_library_available
(
"
tensorflow
"
)
def
test_facenet_sanderberg
():
from
bob.bio.face.embeddings.tf2_inception_resnet
import
(
FaceNetSanderberg_20170512_110547
FaceNetSanderberg_20170512_110547
,
)
reference
=
bob
.
io
.
base
.
load
(
...
...
@@ -106,7 +106,7 @@ def test_facenet_sanderberg():
data
=
(
np
.
random
.
rand
(
3
,
160
,
160
)
*
255
).
astype
(
"
uint8
"
)
output
=
transformer
.
transform
([
data
])[
0
]
assert
output
.
size
==
128
,
output
.
shape
# Sample Batch
sample
=
Sample
(
data
)
transformer_sample
=
wrap
([
"
sample
"
],
transformer
)
...
...
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