Skip to content

Commit 4d9f5ee

Browse files
committed
import error fix
1 parent 60889e8 commit 4d9f5ee

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/maxdiffusion/models/ltx2/ltx2_3_utils.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111
LTX_2_0_VIDEO_VAE_RENAME_DICT,
1212
)
1313

14-
LTX_2_3_VIDEO_VAE_RENAME_DICT = {
15-
**LTX_2_0_VIDEO_VAE_RENAME_DICT,
16-
# Decoder extra blocks
17-
"up_blocks.7": "up_blocks.3.upsamplers.0",
18-
"up_blocks.8": "up_blocks.3",
19-
}
14+
2015

2116
LTX_2_3_CONNECTORS_KEYS_RENAME_DICT = {
2217
"connectors.": "",

src/maxdiffusion/models/ltx2/ltx2_utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
from safetensors import safe_open
2525
from flax.traverse_util import unflatten_dict, flatten_dict
2626
from ..modeling_flax_pytorch_utils import (rename_key, rename_key_and_reshape_tensor, torch2jax, validate_flax_state_dict)
27-
from .ltx2_3_utils import LTX_2_3_VIDEO_VAE_RENAME_DICT
2827

2928

3029
LTX_2_0_VIDEO_VAE_RENAME_DICT = {
@@ -55,6 +54,13 @@
5554
"per_channel_statistics.std-of-means": "latents_std",
5655
}
5756

57+
LTX_2_3_VIDEO_VAE_RENAME_DICT = {
58+
**LTX_2_0_VIDEO_VAE_RENAME_DICT,
59+
# Decoder extra blocks
60+
"up_blocks.7": "up_blocks.3.upsamplers.0",
61+
"up_blocks.8": "up_blocks.3",
62+
}
63+
5864

5965

6066

0 commit comments

Comments
 (0)