From 7f14efcb6a5412873f97146dd4b40137e8f362ae Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Tue, 23 Jul 2019 14:21:14 +0200 Subject: [PATCH] Removed obsolete code Signed-off-by: Jim Martens --- src/twomartens/masterthesis/data.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/twomartens/masterthesis/data.py b/src/twomartens/masterthesis/data.py index 4d3ed4d..2f07201 100644 --- a/src/twomartens/masterthesis/data.py +++ b/src/twomartens/masterthesis/data.py @@ -415,7 +415,6 @@ def load_scenenet_data(photo_paths: Sequence[Sequence[str]], annotation_file_train = f"{coco_path}/annotations/instances_train2014.json" cats_to_classes, _, _, _ = coco_utils.get_coco_category_maps(annotation_file_train) - max_nr_labels = -1 for i, trajectory in enumerate(trajectories): if nr_trajectories is not None and i >= nr_trajectories: @@ -437,10 +436,6 @@ def load_scenenet_data(photo_paths: Sequence[Sequence[str]], float(bbox[2]), # x max float(bbox[3]), # y max ]) - - len_labels = len(labels) - if len_labels > max_nr_labels: - max_nr_labels = len_labels final_image_paths.append(image_path) final_labels.append(labels)