ComfyUI-PhotoMaker-ZHO
ComfyUI-PhotoMaker-ZHO copied to clipboard
error when running comfyui-photomaker
"Error occurred when executing PhotoMaker_Zho:
_get_model_file() got an unexpected keyword argument 'token'
File "C:\Users\Dennis\ComfyUI_windows_portable\ComfyUI\execution.py", line 155, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dennis\ComfyUI_windows_portable\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:\Users\Dennis\ComfyUI_windows_portable\ComfyUI\execution.py", line 78, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dennis\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\PhotoMakerNode.py", line 60, in process_images pipe.load_photomaker_adapter( File "C:\Users\Dennis\ComfyUI_windows_portable\python_embeded\Lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\Dennis\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\pipeline.py", line 80, in load_photomaker_adapter model_file = _get_model_file("
How to fix this?
Mine is the same
Had the same problem. This code needs diffusers
>= 0.25.0. You probably have another custom node which installs an older version of diffusers. (stablezero123 in my case.)
You can try looking for the requirements.txt
in the other custom node and upping the version there (or removing the version constraint altogether).
I am having the same issue, upgrading diffusers didn't seem to work and I have no other nodes with diffusers as a requirement, so I am assuming this has something to do with needing a huggingface token to download models?
No, you don't need one, I also do not have one. The token is just passed through by the code even it is None
.
If you have the exact same error message, then it must be about the diffusers version. Not sure how that happens in your case though.
You were right, something was wonky with the diffusers. I must have diffusers installed somewhere I can't find or something. I made a new install of Comfy with a venv and it's working perfectly now, thank you for your work on this!