modelscope / modelscope/DiffSynth-Studio
Wan2.2-Fun-5B-Control-Camera 模型加载失败
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13.1k
- Forks
- 1.3k
- Avg merge
- 13h 12m
- Merged PRs (30d)
- 45
Description
您好,示例里没有这个Wan2.2-Fun-5B-Control-Camera 模型的运行示例,我写了一个本地模型加载测试
pipe = WanVideoPipeline.from_pretrained(
torch_dtype=torch.bfloat16,
device="cuda",
model_configs=[
ModelConfig(path="ckpts/Wan2.2-Fun-5B-Control-Camera/diffusion_pytorch_model.safetensors"),
ModelConfig(path="ckpts/Wan2.2-Fun-5B-Control-Camera/models_t5_umt5-xxl-enc-bf16.pth"),
ModelConfig(path="ckpts/Wan2.2-Fun-5B-Control-Camera/Wan2.2_VAE.pth"),
],
tokenizer_config=ModelConfig(path="ckpts/Wan2.1-T2V-1.3B/google/umt5-xxl/"),
)
然后就报错了,ValueError: Cannot detect the model type. File: /data/xs.song/ckpts/Wan2.2-Fun-5B-Control-Camera/diffusion_pytorch_model.safetensors. Model hash: 0e2ab7dec4711919374f3d7ffdea90be
具体信息如下:
Loading models from: "/data/xs.song/ckpts/Wan2.2-Fun-5B-Control-Camera/diffusion_pytorch_model.safetensors" Traceback (most recent call last): File "/data/xs.song/miniforge3/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/data/xs.song/miniforge3/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/data/xs.song/.vscode-server/extensions/ms-python.debugpy-2025.18.0/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/__main__.py", line 71, in <module> cli.main() File "/data/xs.song/.vscode-server/extensions/ms-python.debugpy-2025.18.0/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 508, in main run() File "/data/xs.song/.vscode-server/extensions/ms-python.debugpy-2025.18.0/bundled/libs/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 358, in run_file runpy.run_path(target, run_name="__main__") File "/data/xs.song/.vscode-server/extensions/ms-python.debugpy-2025.18.0/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 310, in run_path return _run_module_code(code, init_globals, run_name, pkg_name=pkg_name, script_name=fname) File "/data/xs.song/.vscode-server/extensions/ms-python.debugpy-2025.18.0/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 127, in _run_module_code _run_code(code, mod_globals, init_globals, mod_name, mod_spec, pkg_name, script_name) File "/data/xs.song/.vscode-server/extensions/ms-python.debugpy-2025.18.0/bundled/libs/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 118, in _run_code exec(code, run_globals) File "/data/xs.song/2025_arf_ws/DiffSynth-Studio-main/examples/wanvideo/model_inference/Wan2.2-Fun-5B-Control-Camera.py", line 7, in <module> pipe = WanVideoPipeline.from_pretrained( File "/data/xs.song/2025_arf_ws/DiffSynth-Studio-main/diffsynth/pipelines/wan_video.py", line 130, in from_pretrained model_pool = pipe.download_and_load_models(model_configs, vram_limit) File "/data/xs.song/2025_arf_ws/DiffSynth-Studio-main/diffsynth/diffusion/base_pipeline.py", line 289, in download_and_load_models model_pool.auto_load_model( File "/data/xs.song/2025_arf_ws/DiffSynth-Studio-main/diffsynth/models/model_loader.py", line 80, in auto_load_model raise ValueError(f"Cannot detect the model type. File: {path}. Model hash: {model_hash}") ValueError: Cannot detect the model type. File: /data/xs.song/ckpts/Wan2.2-Fun-5B-Control-Camera/diffusion_pytorch_model.safetensors. Model hash: 0e2ab7dec4711919374f3d7ffdea90be
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with examples/wanvideo/model_inference/Wan2.2-Fun-5B-Control-Camera.py and reproduce the failure using the model paths in the report. Read diffsynth/models/model_loader.py, then trace how diffsynth/pipelines/wan_video.py and diffsynth/diffusion/base_pipeline.py load model configurations. Done means the reported model loads successfully through the example without the model-type error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100