Annotations

Hi @ydayer,

Why the annotations are shipped like this (https://gitlab.idiap.ch/bob/bob.db.meds/blob/master/bob/db/meds/database.py#L349):

            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,
                    eyes=self.eyes_position(filename),
                )
            )

This could be done like this and avoid you to create the Annotator in the config file

            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={'reye':(r_y, r_x), 'leye':(l_y, l_x)}
                )
            )

Cheers