MCPcopy Create free account
hub / github.com/CompVis/diff2flow / unscale_latents

Method unscale_latents

diff2flow/tiny_autoencoder.py:98–100  ·  view source on GitHub ↗

[0, 1] -> raw latents

(x)

Source from the content-addressed store, hash-verified

96
97 @staticmethod
98 def unscale_latents(x):
99 """[0, 1] -> raw latents"""
100 return x.sub(TinyAutoencoderKL.latent_shift).mul(2 * TinyAutoencoderKL.latent_magnitude)
101
102
103if __name__ == "__main__":

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected