jhj0517 commited on
Commit ·
922c507
1
Parent(s): 2088999
move function
Browse filesFiles changed (2)
144 unmodified lines145146147148149150151152144 unmodified linesreturn Falseelse:raise argparse.ArgumentTypeError('Boolean value expected.')def save_image(numpy_array: np.ndarray, output_path: str):out = Image.fromarray(numpy_array)out.save(output_path, compress_level=1, format="png")144 unmodified lines145146147144 unmodified linesreturn Falseelse:raise argparse.ArgumentTypeError('Boolean value expected.')
50 unmodified lines51525350 unmodified linespos = pos2 - crop_sizereturn pos, pos2, crop_size50 unmodified lines515253545556575850 unmodified linespos = pos2 - crop_sizereturn pos, pos2, crop_sizedef save_image(numpy_array: np.ndarray, output_path: str):out = Image.fromarray(numpy_array)out.save(output_path, compress_level=1, format="png")
modules/utils/helper.py-5
modules/utils/image_helper.py+5