(img, low, high)
| 112 | "value_range has to be a tuple (min, max) if specified. min and max are numbers" |
| 113 | |
| 114 | def norm_ip(img, low, high): |
| 115 | img.clamp(min=low, max=high) |
| 116 | img.sub_(low).div_(max(high - low, 1e-5)) |
| 117 | |
| 118 | def norm_range(t, value_range): |
| 119 | if value_range is not None: |