MCPcopy Create free account
hub / github.com/MegaScenes/nvs / quantize

Method quantize

ldm/models/autoencoder.py:439–442  ·  view source on GitHub ↗
(self, x, *args, **kwargs)

Source from the content-addressed store, hash-verified

437 return x
438
439 def quantize(self, x, *args, **kwargs):
440 if self.vq_interface:
441 return x, None, [None, None, None]
442 return x
443
444 def forward(self, x, *args, **kwargs):
445 return x

Callers 7

encodeMethod · 0.80
decodeMethod · 0.80
p_sample_ddimMethod · 0.80
p_mean_varianceMethod · 0.80
p_mean_varianceMethod · 0.80
p_mean_varianceMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected