MCPcopy Create free account
hub / github.com/IceClear/StableSR / __init__

Method __init__

scripts/util_image.py:806–807  ·  view source on GitHub ↗
(self, min_max=(-1, 1))

Source from the content-addressed store, hash-verified

804# ----------------------Patch Cropping----------------------------
805class Clamper:
806 def __init__(self, min_max=(-1, 1)):
807 self.min_bound, self.max_bound = min_max[0], min_max[1]
808
809 def __call__(self, im):
810 if isinstance(im, np.ndarray):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected