Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.face
Commits
f5299143
Commit
f5299143
authored
Dec 03, 2020
by
Laurent COLBOIS
Browse files
Blacked bob.bio.face.test.test_embeddings
parent
0267811f
Pipeline
#46291
passed with stage
in 7 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/test/test_embeddings.py
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
)
...
...
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