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

Method normalize

models/flowsep/diffusers/image_processor.py:91–95  ·  view source on GitHub ↗

Normalize an image array to [-1,1]

(images)

Source from the content-addressed store, hash-verified

89
90 @staticmethod
91 def normalize(images):
92 """
93 Normalize an image array to [-1,1]
94 """
95 return 2.0 * images - 1.0
96
97 @staticmethod
98 def denormalize(images):

Callers 8

preprocessMethod · 0.95
window_sumsquareFunction · 0.45
forwardMethod · 0.45
get_text_embeddingMethod · 0.45
get_audio_embeddingMethod · 0.45
zero_shot_classifierFunction · 0.45
runFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected