Skip to content

TypeError: _get_model_file() got an unexpected keyword argument 'resume_download' #225

Description

@ucas010
>>> pipe.load_photomaker_adapter(
...     os.path.dirname(photomaker_ckpt),
...     subfolder="",
...     weight_name=os.path.basename(photomaker_ckpt),
...     trigger_word="img",
...     pm_version="v1",
... )
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/data/envs/photomaker/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
  File "/data/envs/photomaker/lib/python3.10/site-packages/photomaker/pipeline.py", line 196, in load_photomaker_adapter
    model_file = _get_model_file(
  File "/data/envs/photomaker/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
TypeError: _get_model_file() got an unexpected keyword argument 'resume_download'

这是咋回事啊?大佬,app.py 文件执行报错。模型已经下载了。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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