Skip to content

Commit 5956a9e

Browse files
committed
fix _always_upcast_modules for asym ae and vq_model
1 parent d22465a commit 5956a9e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/diffusers/models/autoencoders/autoencoder_asym_kl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class AsymmetricAutoencoderKL(ModelMixin, ConfigMixin):
6060
Synthesis with Latent Diffusion Models](https://arxiv.org/abs/2112.10752) paper.
6161
"""
6262

63-
_always_upcast_modules = ["MaskConditionDecoder"]
63+
_always_upcast_modules = ["decoder"]
6464

6565
@register_to_config
6666
def __init__(

src/diffusers/models/autoencoders/vq_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class VQModel(ModelMixin, ConfigMixin):
7171
Type of normalization layer to use. Can be one of `"group"` or `"spatial"`.
7272
"""
7373

74-
_always_upcast_modules = ["VectorQuantizer"]
74+
_always_upcast_modules = ["quantize"]
7575

7676
@register_to_config
7777
def __init__(

0 commit comments

Comments
 (0)