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
9c79dad2
Commit
9c79dad2
authored
3 years ago
by
Laurent COLBOIS
Browse files
Options
Downloads
Patches
Plain Diff
Follow bob.bio.base convention : template_id -> reference_id
parent
6b38ab4c
No related branches found
No related tags found
1 merge request
!124
Resolve "IJBC database will fail on non-Idiap filesystems"
Pipeline
#51492
failed
3 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bob/bio/face/database/ijbc.py
+2
-6
2 additions, 6 deletions
bob/bio/face/database/ijbc.py
with
2 additions
and
6 deletions
bob/bio/face/database/ijbc.py
+
2
−
6
View file @
9c79dad2
...
...
@@ -7,16 +7,12 @@ import bob.io.image
from
functools
import
partial
def
load
(
path
):
return
bob
.
io
.
image
.
load
(
os
.
path
.
join
(
rc
[
"
bob.db.ijbc.directory
"
],
path
))
def
_make_sample_from_template_row
(
row
,
image_directory
):
return
DelayedSample
(
load
=
partial
(
bob
.
io
.
image
.
load
,
path
=
os
.
path
.
join
(
image_directory
,
row
[
"
FILENAME
"
])
),
templat
e_id
=
str
(
row
[
"
TEMPLATE_ID
"
]),
referenc
e_id
=
str
(
row
[
"
TEMPLATE_ID
"
]),
subject_id
=
str
(
row
[
"
SUBJECT_ID
"
]),
key
=
os
.
path
.
splitext
(
row
[
"
FILENAME
"
])[
0
],
annotations
=
{
...
...
@@ -37,7 +33,7 @@ def _make_sample_set_from_template_group(template_group, image_directory):
)
)
return
SampleSet
(
samples
,
templat
e_id
=
samples
[
0
].
template_id
,
subject_id
=
samples
[
0
].
subject_id
samples
,
referenc
e_id
=
samples
[
0
].
template_id
,
subject_id
=
samples
[
0
].
subject_id
)
...
...
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