- 
                Notifications
    You must be signed in to change notification settings 
- Fork 6.5k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
WanVACEPipeline has unnecessary/unsafe access to high-noise transformer module of the model which invalidates the ability to use low-noise stage only that was introduced in #12024
base = self.vae_scale_factor_spatial * self.transformer.config.patch_size[1] 
fix is trivial, gather transformer.config.patch_size[1] from either either transformer or transformer_2, whichever is available.
Reproduction
load WanVACEPipeline with low-noise stage only transformer_2 and keep high-noise stage transformer as None.
Logs
βC:\ai\sdnext\venv\Lib\site-packages\diffusers\pipelines\wan\pipeline_wan_vace.py:339 in check_inputs                  β
β                                                                                                                      β
β   338 β   ):                                                                                                         β
ββ±  339 β   β   base = self.vae_scale_factor_spatial * self.transformer.config.patch_size[1]                           β
β   340 β   β   if height % base != 0 or width % base != 0:                                                            β
β°βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ―
AttributeError: 'NoneType' object has no attribute 'config'System Info
diffusers main branch
Who can help?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working