VideoPadSample's output is not consistent
The samples generated by the bob.pad.face.database.VideoPadSample are not consistent. The attributes .data and .annotations do not have the same first dimensions. This behaviour can be reproduce with:
database = ReplayAttackPadDatabase(protocol='smalltest')
samples = database.fit_samples()
vid0 = samples[0].data # vid0.shape == (20, 3, 240, 320)
ann0 = samples[0].annotations # len(ann0) == 375
The .data attribute contains the sampled frames (i.e. by VideoAsArray container) whereas the .annotations attribute contains the annotations for the whole video (i.e. they are not sampled)