MCPcopy Create free account
hub / github.com/AlayaLab/Hive / denormalize

Method denormalize

models/flowsep/diffusers/image_processor.py:98–102  ·  view source on GitHub ↗

Denormalize an image array to [0,1]

(images)

Source from the content-addressed store, hash-verified

96
97 @staticmethod
98 def denormalize(images):
99 """
100 Denormalize an image array to [0,1]
101 """
102 return (images / 2 + 0.5).clamp(0, 1)
103
104 def resize(self, images: PIL.Image.Image) -> PIL.Image.Image:
105 """

Callers 1

postprocessMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected