Skip to content

Add Metadata into the samples

Hey @ydayer

Is it possible to add all the possible metadata in the samples?

For instance, here https://gitlab.idiap.ch/bob/bob.db.meds/blob/master/bob/db/meds/database.py#L351

You could have amended the metadata from here direct in the samples: https://gitlab.idiap.ch/bob/bob.db.meds/blob/master/bob/db/meds/subject_metadata.csv

Like this:

            sets[subject].insert(
                index=-1, # Insert at last position
                item=DelayedSample(
                    load=functools.partial(
                        bob.io.image.load,
                        os.path.join(self.directory, path),
                    ),
                    key=path,
                    subject=subject,
                    annotations=self._annotations(filename),
                    gender=GENDER,
                    ethnicity=ETHNICITY,
                    height=HEIGHT,
                    weight=WEIGHT,
                    pode=POSE,

This can be useful in the future.

For instance, we could craft a script that given a score file and a database, we could do all the analysis we want without having to parse the score file.....

Can you add these metadata in the database if you have the time?

Thanks