(image_numpy, image_path, )
| 21 | return img |
| 22 | |
| 23 | def save_image(image_numpy, image_path, ): |
| 24 | image_pil = Image.fromarray(image_numpy) |
| 25 | image_pil.save(image_path) |
| 26 | |
| 27 | def mkdirs(paths): |
| 28 | if isinstance(paths, list) and not isinstance(paths, str): |