Skip to content

Commit

Permalink
Added check for existance of groundtruth_dict[standard_fields.InputDa…
Browse files Browse the repository at this point in the history
…taFields.groundtruth_difficult]
  • Loading branch information
gedefet committed Nov 14, 2018
1 parent 8a8d3bc commit 61b5a0c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ def add_single_ground_truth_image_info(self, image_id, groundtruth_dict):
# use values from the dictionary or insert None otherwise.
if (standard_fields.InputDataFields.groundtruth_difficult in
groundtruth_dict.keys() and
groundtruth_dict[standard_fields.InputDataFields.groundtruth_difficult] and
(groundtruth_dict[standard_fields.InputDataFields.groundtruth_difficult]
.size or not groundtruth_classes.size)):
groundtruth_difficult = groundtruth_dict[
Expand Down Expand Up @@ -473,6 +474,7 @@ def add_single_ground_truth_image_info(self, image_id, groundtruth_dict):
# use values from the dictionary or insert None otherwise.
if (standard_fields.InputDataFields.groundtruth_group_of in
groundtruth_dict.keys() and
groundtruth_dict[standard_fields.InputDataFields.groundtruth_group_of] and
(groundtruth_dict[standard_fields.InputDataFields.groundtruth_group_of]
.size or not groundtruth_classes.size)):
groundtruth_group_of = groundtruth_dict[
Expand Down

0 comments on commit 61b5a0c

Please sign in to comment.