diff --git a/bob/bio/face/script/annotate.py b/bob/bio/face/script/annotate.py index 02201b40fd11764c18ee938cd559f6faa441d7bc..e8a50d838ed054f31f20ca14cefb885cfaefbee1 100644 --- a/bob/bio/face/script/annotate.py +++ b/bob/bio/face/script/annotate.py @@ -62,6 +62,7 @@ def annotate(database, annotator, output_dir, force, jobs, **kwargs): logger.debug('jobs: %s', jobs) logger.debug('kwargs: %s', kwargs) biofiles = database.objects(groups=None, protocol=database.protocol) + biofiles = sorted(biofiles) if jobs > 1: start, end = indices(biofiles, jobs) biofiles = biofiles[start:end]