I encountered an AttributeError: 'NoneType' object has no attribute 'expected_components'

#1
by shinymyy - opened

/data2_8t/user/myy/anaconda3/bin/conda run -n wan2 --no-capture-output python /data2_8t/user/myy/wan2/wan2_infer_i2v.py
Modular Diffusers is currently an experimental feature under active development. The API is subject to breaking changes in future releases.
The config attributes {'clip_output': False} were passed to AutoencoderKLWan, but are not expected and will be ignored. Please verify your config.json configuration file.
Loading checkpoint shards: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:04<00:00, 1.02it/s]
Loading pipeline components...: 0%| | 0/5 [00:00<?, ?it/s]
Loading checkpoint shards: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 3/3 [00:00<00:00, 77.38it/s]
Loading pipeline components...: 100%|β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 5/5 [00:00<00:00, 8.45it/s]
blocks is None, no default blocks class found for ModularPipeline
Traceback (most recent call last):
File "/data2_8t/user/myy/wan2/wan2_infer_i2v.py", line 23, in
image_processor = ModularPipeline.from_pretrained("YiYiXu/WanImageProcessor", trust_remote_code=True)
File "/data2_8t/user/myy/anaconda3/envs/wan2/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/data2_8t/user/myy/anaconda3/envs/wan2/lib/python3.10/site-packages/diffusers/modular_pipelines/modular_pipeline.py", line 1616, in from_pretrained
pipeline = pipeline_class(
File "/data2_8t/user/myy/anaconda3/envs/wan2/lib/python3.10/site-packages/diffusers/modular_pipelines/modular_pipeline.py", line 1499, in init
self._component_specs = {spec.name: deepcopy(spec) for spec in self.blocks.expected_components}
AttributeError: 'NoneType' object has no attribute 'expected_components'
ERROR conda.cli.main_run:execute(125): conda run python /data2_8t/user/myy/wan2/wan2_infer_i2v.py failed. (See above for error)

Sign up or log in to comment