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.bio.face
Commits
91b16612
Commit
91b16612
authored
Jun 25, 2021
by
Laurent COLBOIS
Browse files
Simplify id types
parent
ea1a3d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/face/database/ijbc.py
View file @
91b16612
...
...
@@ -17,8 +17,8 @@ def _make_sample_from_template_row(row, image_directory):
return
DelayedSample
(
load
=
partial
(
bob
.
io
.
image
.
load
,
os
.
path
.
join
(
image_directory
,
row
[
"FILENAME"
])),
reference_id
=
str
(
row
[
"TEMPLATE_ID"
]
)
,
subject_id
=
str
(
row
[
"SUBJECT_ID"
]
)
,
reference_id
=
row
[
"TEMPLATE_ID"
],
subject_id
=
row
[
"SUBJECT_ID"
],
key
=
os
.
path
.
splitext
(
row
[
"FILENAME"
])[
0
]
+
"-"
+
hashstr
,
annotations
=
{
"topleft"
:
(
float
(
row
[
"FACE_Y"
]),
float
(
row
[
"FACE_X"
])),
...
...
@@ -160,7 +160,7 @@ class IJBCDatabase(Database):
grouped_matches
=
self
.
matches
.
groupby
(
"PROBE_TEMPLATE_ID"
)
for
probe_sampleset
in
self
.
_cached_probes
:
probe_sampleset
.
references
=
list
(
grouped_matches
.
get_group
(
int
(
probe_sampleset
.
reference_id
)
)
[
grouped_matches
.
get_group
(
probe_sampleset
.
reference_id
)[
"REFERENCE_TEMPLATE_ID"
]
)
...
...
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