From 8ec9c77382120ac0cbd5ea55c6efda48d27af33a Mon Sep 17 00:00:00 2001 From: Antti Tarvainen Date: Wed, 21 Jun 2017 19:42:47 +0300 Subject: [PATCH] Fix Pascal VOC installation for Python 3 (#114) --- keras_contrib/datasets/pascal_voc.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keras_contrib/datasets/pascal_voc.py b/keras_contrib/datasets/pascal_voc.py index c859935..e17db6b 100644 --- a/keras_contrib/datasets/pascal_voc.py +++ b/keras_contrib/datasets/pascal_voc.py @@ -617,8 +617,8 @@ def get_augmented_pascal_image_annotation_filename_pairs(pascal_root, pascal_ber list(train_from_pascal)) overall_train_image_annotation_filename_pairs = \ - train_from_berkeley_image_annotation_pairs + \ - train_from_pascal_image_annotation_pairs + list(train_from_berkeley_image_annotation_pairs) + \ + list(train_from_pascal_image_annotation_pairs) overall_val_image_annotation_filename_pairs = \ get_pascal_selected_image_annotation_filenames_pairs(pascal_root, @@ -735,8 +735,8 @@ def pascal_voc_berkeley_combined(dataset_path, mode=voc_data_subset_mode) # combine the annotation files into one folder pascal_combine_annotation_files( - overall_train_image_annotation_filename_pairs + - overall_val_image_annotation_filename_pairs, + list(overall_train_image_annotation_filename_pairs) + + list(overall_val_image_annotation_filename_pairs), combined_annotations_path) # generate the train imageset txt pascal_filename_pairs_to_imageset_txt(