Skip to content
Snippets Groups Projects
Commit 118c7e47 authored by Amir MOHAMMADI's avatar Amir MOHAMMADI
Browse files

Annotations could be None

parent 759f10cc
No related branches found
No related tags found
1 merge request!40Annotations could be None
Pipeline #
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment