(self, **kwargs)
| 501 | |
| 502 | class AutoencoderKL(AutoencodingEngineLegacy): |
| 503 | def __init__(self, **kwargs): |
| 504 | if "lossconfig" in kwargs: |
| 505 | kwargs["loss_config"] = kwargs.pop("lossconfig") |
| 506 | super().__init__( |
| 507 | regularizer_config={"target": ("sgm.modules.autoencoding.regularizers" ".DiagonalGaussianRegularizer")}, |
| 508 | **kwargs, |
| 509 | ) |
| 510 | |
| 511 | |
| 512 | class IdentityFirstStage(AbstractAutoencoder): |