MCPcopy Create free account
hub / github.com/ml-explore/mlx-examples / decode

Method decode

stable_diffusion/stable_diffusion/vae.py:256–258  ·  view source on GitHub ↗
(self, z)

Source from the content-addressed store, hash-verified

254 )
255
256 def decode(self, z):
257 z = z / self.scaling_factor
258 return self.decoder(self.post_quant_proj(z))
259
260 def encode(self, x):
261 x = self.encoder(x)

Callers 4

__call__Method · 0.95
coco_encode_rleFunction · 0.45
txt2image.pyFile · 0.45
image2image.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected