raw latents -> [0, 1]
(x)
| 91 | |
| 92 | @staticmethod |
| 93 | def scale_latents(x): |
| 94 | """raw latents -> [0, 1]""" |
| 95 | return x.div(2 * TinyAutoencoderKL.latent_magnitude).add(TinyAutoencoderKL.latent_shift).clamp(0, 1) |
| 96 | |
| 97 | @staticmethod |
| 98 | def unscale_latents(x): |
nothing calls this directly
no outgoing calls
no test coverage detected