Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions diffsynth_engine/configs/__init__.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
from .base import PipelineConfig
from .qwen_image import QwenImagePipelineConfig
from .wan import WanPipelineConfig
from .z_image import ZImagePipelineConfig

__all__ = [
"PipelineConfig",
"QwenImagePipelineConfig",
"WanPipelineConfig",
"ZImagePipelineConfig",
]
8 changes: 8 additions & 0 deletions diffsynth_engine/configs/z_image.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from dataclasses import dataclass

from diffsynth_engine.configs.base import PipelineConfig


@dataclass
class ZImagePipelineConfig(PipelineConfig):
pass
2 changes: 2 additions & 0 deletions diffsynth_engine/models/qwen_image/transformer_qwenimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@ class QwenImageTransformer2DModel(DiffusionModel):
The dimensions to use for the rotary positional embeddings.
"""

_repeated_blocks = ["QwenImageTransformerBlock"]

@register_to_config
def __init__(
self,
Expand Down
1 change: 1 addition & 0 deletions diffsynth_engine/models/wan/transformer_wan.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ class WanTransformer3DModel(DiffusionModel):

_keep_in_fp32_modules = ["time_embedder", "scale_shift_table", "norm1", "norm2", "norm3"]
_keys_to_ignore_on_load_unexpected = ["norm_added_q"]
_repeated_blocks = ["WanTransformerBlock"]

@register_to_config
def __init__(
Expand Down
1 change: 1 addition & 0 deletions diffsynth_engine/models/wan/transformer_wan_animate.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,6 +545,7 @@ class WanAnimateTransformer3DModel(DiffusionModel):
"motion_synthesis_weight",
]
_keys_to_ignore_on_load_unexpected = ["norm_added_q"]
_repeated_blocks = ["WanTransformerBlock"]

@register_to_config
def __init__(
Expand Down
1 change: 1 addition & 0 deletions diffsynth_engine/models/wan/transformer_wan_vace.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ class WanVACETransformer3DModel(DiffusionModel):

_keep_in_fp32_modules = ["time_embedder", "scale_shift_table", "norm1", "norm2", "norm3"]
_keys_to_ignore_on_load_unexpected = ["norm_added_q"]
_repeated_blocks = ["WanTransformerBlock", "WanVACETransformerBlock"]

@register_to_config
def __init__(
Expand Down
5 changes: 5 additions & 0 deletions diffsynth_engine/models/z_image/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .transformer_z_image import ZImageTransformer2DModel

__all__ = [
"ZImageTransformer2DModel",
]
Loading