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
3dd816da
Commit
3dd816da
authored
3 years ago
by
Amir MOHAMMADI
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Mark tensorflow tests as slow
related to
#43
parent
6ac6ba52
No related branches found
No related tags found
1 merge request
!107
[tests] Mark tensorflow tests as slow
Pipeline
#49292
passed
3 years ago
Stage: build
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bob/bio/face/test/test_baselines.py
+7
-0
7 additions, 0 deletions
bob/bio/face/test/test_baselines.py
bob/bio/face/test/test_embeddings.py
+8
-0
8 additions, 0 deletions
bob/bio/face/test/test_embeddings.py
bob/bio/face/test/test_transformers.py
+6
-0
6 additions, 0 deletions
bob/bio/face/test/test_transformers.py
with
21 additions
and
0 deletions
bob/bio/face/test/test_baselines.py
+
7
−
0
View file @
3dd816da
...
...
@@ -12,6 +12,7 @@ import os
import
bob.io.base
import
functools
import
copy
from
nose.plugins.attrib
import
attr
from
bob.bio.base.test.utils
import
is_library_available
...
...
@@ -106,31 +107,37 @@ def run_baseline(baseline, samples_for_training=[]):
assert
"
scores
"
in
dirs
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_facenet_baseline
():
run_baseline
(
"
facenet-sanderberg
"
)
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv2_msceleb
():
run_baseline
(
"
inception-resnetv2-msceleb
"
)
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv2_casiawebface
():
run_baseline
(
"
inception-resnetv2-casiawebface
"
)
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv1_msceleb
():
run_baseline
(
"
inception-resnetv1-msceleb
"
)
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv1_casiawebface
():
run_baseline
(
"
inception-resnetv1-casiawebface
"
)
@attr
(
'
slow
'
)
@is_library_available
(
"
mxnet
"
)
def
test_arcface_insightface
():
run_baseline
(
"
arcface-insightface
"
)
...
...
This diff is collapsed.
Click to expand it.
bob/bio/face/test/test_embeddings.py
+
8
−
0
View file @
3dd816da
...
...
@@ -4,8 +4,10 @@ import numpy as np
from
bob.pipelines
import
Sample
,
wrap
import
pkg_resources
from
bob.bio.base.test.utils
import
is_library_available
from
nose.plugins.attrib
import
attr
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_idiap_inceptionv2_msceleb
():
from
bob.bio.face.embeddings.tf2_inception_resnet
import
(
...
...
@@ -32,6 +34,7 @@ def test_idiap_inceptionv2_msceleb():
assert
output
.
size
==
128
,
output
.
shape
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_idiap_inceptionv2_msceleb_memory_demanding
():
from
bob.bio.face.embeddings.tf2_inception_resnet
import
(
...
...
@@ -59,6 +62,7 @@ def test_idiap_inceptionv2_msceleb_memory_demanding():
assert
output
.
size
==
128
,
output
.
shape
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_idiap_inceptionv2_casia
():
from
bob.bio.face.embeddings.tf2_inception_resnet
import
(
...
...
@@ -85,6 +89,7 @@ def test_idiap_inceptionv2_casia():
assert
output
.
size
==
128
,
output
.
shape
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_idiap_inceptionv1_msceleb
():
from
bob.bio.face.embeddings.tf2_inception_resnet
import
(
...
...
@@ -111,6 +116,7 @@ def test_idiap_inceptionv1_msceleb():
assert
output
.
size
==
128
,
output
.
shape
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_idiap_inceptionv1_casia
():
from
bob.bio.face.embeddings.tf2_inception_resnet
import
(
...
...
@@ -137,6 +143,7 @@ def test_idiap_inceptionv1_casia():
assert
output
.
size
==
128
,
output
.
shape
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_facenet_sanderberg
():
from
bob.bio.face.embeddings.tf2_inception_resnet
import
(
...
...
@@ -163,6 +170,7 @@ def test_facenet_sanderberg():
assert
output
.
size
==
128
,
output
.
shape
@attr
(
'
slow
'
)
@is_library_available
(
"
mxnet
"
)
def
test_arcface_insight_face
():
from
bob.bio.face.embeddings.mxnet_models
import
ArcFaceInsightFace
...
...
This diff is collapsed.
Click to expand it.
bob/bio/face/test/test_transformers.py
+
6
−
0
View file @
3dd816da
...
...
@@ -4,6 +4,7 @@ import numpy as np
from
bob.pipelines
import
Sample
,
SampleSet
from
bob.bio.base
import
load_resource
from
bob.bio.base.test.utils
import
is_library_available
from
nose.plugins.attrib
import
attr
def
get_fake_sample
(
face_size
=
(
160
,
160
),
eyes
=
{
"
leye
"
:
(
46
,
107
),
"
reye
"
:
(
46
,
53
)}):
...
...
@@ -13,6 +14,7 @@ def get_fake_sample(face_size=(160, 160), eyes={"leye": (46, 107), "reye": (46,
return
Sample
(
data
,
key
=
"
1
"
,
annotations
=
annotations
)
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_facenet_sanderberg
():
transformer
=
load_resource
(
"
facenet-sanderberg
"
,
"
transformer
"
)
...
...
@@ -24,6 +26,7 @@ def test_facenet_sanderberg():
assert
transformed_sample
.
data
.
size
==
128
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv2_msceleb
():
transformer
=
load_resource
(
"
inception-resnetv2-msceleb
"
,
"
transformer
"
)
...
...
@@ -35,6 +38,7 @@ def test_inception_resnetv2_msceleb():
assert
transformed_sample
.
data
.
size
==
128
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv2_casiawebface
():
transformer
=
load_resource
(
"
inception-resnetv2-casiawebface
"
,
"
transformer
"
)
...
...
@@ -46,6 +50,7 @@ def test_inception_resnetv2_casiawebface():
assert
transformed_sample
.
data
.
size
==
128
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv1_msceleb
():
transformer
=
load_resource
(
"
inception-resnetv1-msceleb
"
,
"
transformer
"
)
...
...
@@ -57,6 +62,7 @@ def test_inception_resnetv1_msceleb():
assert
transformed_sample
.
data
.
size
==
128
@attr
(
'
slow
'
)
@is_library_available
(
"
tensorflow
"
)
def
test_inception_resnetv1_casiawebface
():
transformer
=
load_resource
(
"
inception-resnetv1-casiawebface
"
,
"
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