(visuals, image_path)
| 65 | |
| 66 | |
| 67 | def save_images(visuals, image_path): |
| 68 | if not os.path.exists(image_path): |
| 69 | os.makedirs(image_path) |
| 70 | |
| 71 | for i, (label, img_numpy) in enumerate(visuals.items()): |
| 72 | img_name = '%d_%s.jpg' % (i, label) |
| 73 | save_path = os.path.join(image_path, img_name) |
| 74 | save_image(img_numpy, save_path) |
| 75 | |
| 76 | |
| 77 | def save_images_test(visuals, image_path, from_name, to_name): |
nothing calls this directly
no test coverage detected