Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.pad.face
Commits
b3fb6d49
Commit
b3fb6d49
authored
Feb 10, 2020
by
Amir MOHAMMADI
Browse files
[casia_fasd] Fix annotations test
parent
7b670b5f
Pipeline
#36811
passed with stage
in 9 minutes
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
bob/pad/face/test/test_databases.py
View file @
b3fb6d49
...
...
@@ -224,7 +224,7 @@ def test_casiasurf():
assert
len
(
casiasurf
.
objects
(
groups
=
(
'dev'
,),
purposes
=
(
'real'
,)))
==
2994
assert
len
(
casiasurf
.
objects
(
groups
=
(
'dev'
,),
purposes
=
(
'attack'
,)))
==
6614
assert
len
(
casiasurf
.
objects
(
groups
=
(
'dev'
,),
purposes
=
(
'real'
,
'attack'
)))
==
9608
assert
len
(
casiasurf
.
objects
(
groups
=
(
'eval'
,),
purposes
=
(
'real'
,)))
==
17458
assert
len
(
casiasurf
.
objects
(
groups
=
(
'eval'
,),
purposes
=
(
'real'
,)))
==
17458
assert
len
(
casiasurf
.
objects
(
groups
=
(
'eval'
,),
purposes
=
(
'attack'
,)))
==
40252
assert
len
(
casiasurf
.
objects
(
groups
=
(
'eval'
,),
purposes
=
(
'real'
,
'attack'
)))
==
57710
...
...
@@ -270,8 +270,10 @@ def test_casia_fasd():
# test annotations since they are shipped with bob.db.casia_fasd
f
=
[
f
for
f
in
casia_fasd
.
objects
()
if
f
.
path
==
'train_release/1/2'
][
0
]
assert
len
(
f
.
annotations
)
==
132
assert
f
.
annotations
[
'0'
]
==
\
{
'topleft'
:
(
102
,
214
),
'bottomright'
:
(
242
,
354
)}
a
=
f
.
annotations
[
'0'
]
oracle
=
{
'topleft'
:
(
102
,
214
),
'bottomright'
:
(
242
,
354
),
'reye'
:
(
151.0
,
249.0
),
'leye'
:
(
151.0
,
319.0
)}
assert
a
==
oracle
,
a
@
db_available
(
'casia_fasd'
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment