(self, x)
| 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) |