Commit 9272cf4e authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

Merge branch 'annotator' into 'master'

Annotations could be None

See merge request !40
parents 759f10cc 118c7e47
Pipeline #17522 passed with stages
in 32 minutes and 59 seconds
......@@ -135,7 +135,7 @@ def read_annotation_file(file_name, annotation_type):
raise ValueError(
"The given annotation type '%s' is not known, choose one of ('eyecenter', 'named', 'idiap')" % annotation_type)
if 'leye' in annotations and 'reye' in annotations and annotations['leye'][1] < annotations['reye'][1]:
if annotations is not None and 'leye' in annotations and 'reye' in annotations and annotations['leye'][1] < annotations['reye'][1]:
logger.warn(
"The eye annotations in file '%s' might be exchanged!" % file_name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment