def create_grocery_mappings(grocery_folder):
    sys.path.append(os.path.join(grocery_folder, "..", "utils", "annotations"))
    from annotations_helper import create_class_dict, create_map_files
    abs_path = os.path.dirname(os.path.abspath(__file__))
    data_set_path = os.path.join(abs_path, "..", "Grocery")
    class_dict = create_class_dict(data_set_path)
    create_map_files(data_set_path, class_dict, training_set=True)
    create_map_files(data_set_path, class_dict, training_set=False)
def create_grocery_mappings(grocery_folder):
    sys.path.append(os.path.join(grocery_folder, "..", "..", "Detection", "utils", "annotations"))
    from annotations_helper import create_class_dict, create_map_files
    abs_path = os.path.dirname(os.path.abspath(__file__))
    data_set_path = os.path.join(abs_path, "..", "..", "DataSets", "Grocery")
    class_dict = create_class_dict(data_set_path)
    create_map_files(data_set_path, class_dict, training_set=True)
    create_map_files(data_set_path, class_dict, training_set=False)
Beispiel #3
0
 def create_custom_image_annotations():
     print("\nCreating custom image annotations...")
     base_folder = os.path.dirname(os.path.abspath(__file__))
     sys.path.append(os.path.join(base_folder, "utils", "annotations"))
     from annotations_helper import create_class_dict, create_map_files
     data_set_path = args.tagged_images
     
     class_dict = create_class_dict(data_set_path)
     create_map_files(data_set_path, class_dict, training_set=True)
     create_map_files(data_set_path, class_dict, training_set=False)
def create_mappings(folder_path):
    sys.path.append(
        os.path.join(folder_path, "..", "..", "Detection", "utils",
                     "annotations"))
    from annotations_helper import create_class_dict, create_map_files
    abs_path = os.path.dirname(os.path.abspath(__file__))
    data_set_path = os.path.join(abs_path, cfg["CNTK"].MAP_FILE_PATH)

    class_dict = create_class_dict(data_set_path)
    create_map_files(data_set_path, class_dict, training_set=True)
    create_map_files(data_set_path, class_dict, training_set=False)