MCPcopy
hub / github.com/FoundationVision/LlamaGen / encode

Method encode

tokenizer/vqgan/model.py:69–73  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

67 print(f"Unexpected Keys in State Dict: {unexpected}")
68
69 def encode(self, x):
70 h = self.encoder(x)
71 h = self.quant_conv(h)
72 quant, emb_loss, info = self.quantize(h)
73 return quant, emb_loss, info
74
75 def decode(self, quant):
76 quant = self.post_quant_conv(quant)

Callers 11

mainFunction · 0.95
forwardMethod · 0.95
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
encode_requestMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected