Commit 9c79dad2 authored by Laurent COLBOIS's avatar Laurent COLBOIS

Follow bob.bio.base convention : template_id -> reference_id

parent 6b38ab4c
Pipeline #51492 failed with stage
in 162 minutes and 37 seconds
......@@ -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"])
),
template_id=str(row["TEMPLATE_ID"]),
reference_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, template_id=samples[0].template_id, subject_id=samples[0].subject_id
samples, reference_id=samples[0].template_id, subject_id=samples[0].subject_id
)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment