Skip to content

Wan2.2-Fun-5B-Control-Camera 模型加载失败 #1144

@xsong-AI

Description

@xsong-AI

您好,示例里没有这个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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions