(data_paths)
| 52 | |
| 53 | |
| 54 | def load_npz_from_paths(data_paths): |
| 55 | data = [np.load(data_path)['arr_0'] for data_path in data_paths] |
| 56 | data = np.concatenate(data, axis=0) |
| 57 | return data |
| 58 | |
| 59 | |
| 60 | def resize_numpy_image(image, max_resolution=512 * 512, resize_short_edge=None): |
nothing calls this directly
no outgoing calls
no test coverage detected