diff --git a/bob/pad/face/database/batl.py b/bob/pad/face/database/batl.py index 6a3fda6a4ae5e23d66695f11774a7d5fef7ee0d3..fe44953db869c3e5839450cf04762407afa6ea64 100644 --- a/bob/pad/face/database/batl.py +++ b/bob/pad/face/database/batl.py @@ -248,14 +248,15 @@ class BatlPadDatabase(PadDatabase): if not os.path.isfile(file_path): # no file with annotations - video = f.f.load(directory=self.original_directory, - extension=self.original_extension, - modality="color", # TODO: this parameter is currently missing in bob.db.batl, add it there - reference_stream_type="color", - warp_to_reference=False, - convert_to_rgb=False, - crop=None, - max_frames=None)['video'] + f.stream_type = "color" + f.reference_stream_type = "color" + f.warp_to_reference = False + f.convert_to_rgb = False + f.crop = None + f.video_data_only = True + + video = f.load(directory=self.original_directory, + extension=self.original_extension) annotations = {}