(self, x)
| 103 | self.model_ema(self) |
| 104 | |
| 105 | def encode(self, x): |
| 106 | h = self.encoder(x) |
| 107 | h = self.quant_conv(h) |
| 108 | quant, emb_loss, info = self.quantize(h) |
| 109 | return quant, emb_loss, info |
| 110 | |
| 111 | def encode_to_prequant(self, x): |
| 112 | h = self.encoder(x) |