TencentARC / PhotoMaker

PhotoMaker

Home Page:https://photo-maker.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error occurred when executing PhotoMakerAdapter_Loader_local:

sacha58 opened this issue · comments

Error occurred when executing PhotoMakerAdapter_Loader_local:

_get_model_file() got an unexpected keyword argument 'token'

File "C:\ComfyUI\ComfyUI\execution.py", line 155, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI\ComfyUI\execution.py", line 85, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI\ComfyUI\execution.py", line 78, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\PhotoMakerNode.py", line 151, in load_photomaker_adapter
pipe.load_photomaker_adapter(
File "C:\ComfyUI\python_embeded\Lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\pipeline.py", line 80, in load_photomaker_adapter
model_file = _get_model_file(
^^^^^^^^^^^^^^^^

https://github.com/bmaltais/PhotoMaker/tree/v1.0.1

What do you mean by pointing to that link?

Follow this link to use photomaker on windows Luis Burdallo @.>于2024年1月22日 周一01:31写道:

https://github.com/bmaltais/PhotoMaker/tree/v1.0.1 What do you mean by pointing to that link? — Reply to this email directly, view it on GitHub <#91 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFATMT3DYDXGZAVYMAAQN2TYPVGHRAVCNFSM6AAAAABCD3XQX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBSG4YDGOBSGU . You are receiving this because you commented.Message ID: @.
>

Ok it seems we are trying to use ComfyUI instead and that installation points to a gradio installation. I tried and it's working but the problem was related to some nodes used in ComfyUI. I guess this isn't the right repo. :)

The primary reason is that you need to upgrade the diffusers. The function _get_model_file is imported from diffusers.utils.