(image_path, images_per_style=500)
| 30 | |
| 31 | |
| 32 | def run(image_path, images_per_style=500): |
| 33 | for class_id, style, group_ids in STYLE_MAPPING: |
| 34 | print('Get images for style: {}'.format(style)) |
| 35 | get_images_for_style(style, group_ids, image_path, images_per_style) |
| 36 | |
| 37 | # fetch_images(url_file, img_info_file, image_path) |
| 38 | # generate_train_test_dataset(img_info_file, train_file, test_file, train_ratio=0.8) |
| 39 | |
| 40 | |
| 41 | def get_images_for_style(style, group_ids, image_path, num_images): |
no test coverage detected