Skip to content

为什么加载不到权重路径 #12

@JerryZ01

Description

@JerryZ01
Image

具体报错信息
Traceback (most recent call last):
File "/root/LongVie/inference.py", line 92, in
main(args)
File "/root/LongVie/inference.py", line 24, in main
pipe = LongViePipeline.from_pretrained(
File "/root/LongVie/diffsynth/pipelines/wan_video_new_longvie.py", line 407, in from_pretrained
model_manager.load_model(
File "/root/LongVie/diffsynth/models/model_manager.py", line 408, in load_model
if model_detector.match(file_path, state_dict):
File "/root/LongVie/diffsynth/models/model_manager.py", line 166, in match
state_dict = load_state_dict(file_path)
File "/root/LongVie/diffsynth/models/utils.py", line 66, in load_state_dict
if file_path.endswith(".safetensors"):
AttributeError: 'list' object has no attribute 'endswith'

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