(visuals, image_path, from_name, to_name)
| 75 | |
| 76 | |
| 77 | def save_images_test(visuals, image_path, from_name, to_name): |
| 78 | if not os.path.exists(image_path): |
| 79 | os.makedirs(image_path) |
| 80 | |
| 81 | for i, (label, img_numpy) in enumerate(visuals.items()): |
| 82 | img_name = "%s_%s_%s" % (from_name, to_name, label) |
| 83 | save_path = os.path.join(image_path, img_name) |
| 84 | save_image(img_numpy, save_path) |
| 85 | |
| 86 | |
| 87 | def compose_and_save_img(img_list, save_dir, img_name, col=4, row=1, img_size=(256, 200)): |
nothing calls this directly
no test coverage detected