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
120f1ec3
Commit
120f1ec3
authored
3 years ago
by
Yannick DAYER
Browse files
Options
Downloads
Patches
Plain Diff
Accelerate the replaymobile-img tests
parent
9ba8da7f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!128
Using sparse CSVDataset for replay-mobile
Pipeline
#52229
canceled
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/test/test_databases.py
+9
-12
9 additions, 12 deletions
bob/bio/face/test/test_databases.py
with
9 additions
and
12 deletions
bob/bio/face/test/test_databases.py
+
9
−
12
View file @
120f1ec3
...
...
@@ -276,10 +276,7 @@ def test_replaymobile():
database
=
bob
.
bio
.
base
.
load_resource
(
"
replaymobile-img
"
,
"
database
"
,
preferred_package
=
"
bob.bio.face
"
)
samples
=
database
.
all_samples
(
groups
=
(
"
dev
"
,
"
eval
"
))
assert
len
(
samples
)
==
1557600
,
len
(
samples
)
sample
=
samples
[
0
]
del
samples
sample
=
database
.
probes
()[
0
][
0
]
assert
hasattr
(
sample
,
"
annotations
"
)
assert
"
reye
"
in
sample
.
annotations
assert
"
leye
"
in
sample
.
annotations
...
...
@@ -292,16 +289,16 @@ def test_replaymobile():
# Only if data is available
if
rc
.
get
(
"
bob.db.replaymobile.directory
"
,
None
):
assert
sample
.
annotations
==
{
"
bottomright
"
:
[
7
85
,
395
],
"
topleft
"
:
[
4
75
,
1
67
],
"
leye
"
:
[
5
87
,
3
36
],
"
reye
"
:
[
5
88
,
2
38
],
"
mouthleft
"
:
[
70
5
,
25
2
],
"
mouthright
"
:
[
706
,
3
26
],
"
nose
"
:
[
643
,
29
5
],
"
bottomright
"
:
[
7
34
,
407
],
"
topleft
"
:
[
4
36
,
1
82
],
"
leye
"
:
[
5
41
,
3
50
],
"
reye
"
:
[
5
40
,
2
45
],
"
mouthleft
"
:
[
65
5
,
25
4
],
"
mouthright
"
:
[
657
,
3
38
],
"
nose
"
:
[
591
,
29
9
],
}
assert
sample
.
data
.
shape
==
(
3
,
1280
,
720
)
assert
sample
.
data
[
0
,
0
,
0
]
==
87
assert
sample
.
data
[
0
,
0
,
0
]
==
110
@pytest.mark.skipif
(
...
...
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