(x, val=True, shp=False)
| 130 | image_pil.save(image_path) |
| 131 | |
| 132 | def print_numpy(x, val=True, shp=False): |
| 133 | x = x.astype(np.float64) |
| 134 | if shp: |
| 135 | print('shape,', x.shape) |
| 136 | if val: |
| 137 | x = x.flatten() |
| 138 | print('mean = %3.3f, min = %3.3f, max = %3.3f, median = %3.3f, std=%3.3f' % ( |
| 139 | np.mean(x), np.min(x), np.max(x), np.median(x), np.std(x))) |
| 140 | |
| 141 | def mkdirs(paths): |
| 142 | if isinstance(paths, list) and not isinstance(paths, str): |
nothing calls this directly
no outgoing calls
no test coverage detected