ZHO-ZHO-ZHO / ComfyUI-PhotoMaker-ZHO

Unofficial implementation of PhotoMaker for ComfyUI
GNU General Public License v3.0
789 stars 41 forks source link

"_get_model_file() got an unexpected keyword argument 'token'" #22

Open danganbenpa opened 10 months ago

danganbenpa commented 10 months ago

Error occurred when executing PhotoMakerAdapter_Loader_local:

_get_model_file() got an unexpected keyword argument 'token'

File "D:\Users\Ben\comfyui\ComfyUI\execution.py", line 155, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "D:\Users\Ben\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 "D:\Users\Ben\comfyui\ComfyUI\execution.py", line 78, in map_node_over_list results.append(getattr(obj, func)(*slice_dict(input_data_all, i))) File "D:\Users\Ben\comfyui\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\PhotoMakerNode.py", line 150, in load_photomaker_adapter pipe.load_photomaker_adapter( File "D:\Users\Ben\comfyui\python_embeded\lib\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn return fn(args, **kwargs) File "D:\Users\Ben\comfyui\ComfyUI\custom_nodes\ComfyUI-PhotoMaker\pipeline.py", line 80, in load_photomaker_adapter model_file = _get_model_file(

wandrzej commented 10 months ago

+1 had the same error with both the hub version and local version

razvanab commented 10 months ago

Same error here, please help.

AI2lab commented 10 months ago

solution: pip install diffusers --upgrade

KINGLIFER commented 10 months ago

didnt work for me.

ludogemma commented 10 months ago

found solution go in your \ComfyUI\ComfyUI\custom_nodes\ directory from cmd then write: example C:\Users\name\ComfyUI\python_embeded \python.exe -s -m pip install -r ./requirements.txt then after finish C:\Users\name\ComfyUI\ComfyUI\custom_nodes\ComfyUI-PhotoMaker>C:\Users\Sergio\ComfyUI\python_embeded\python.exe -s -m pip install diffusers --upgrade

this way you install requirements and diffusers upgrade on the embeded python instead system python.

hope that helps ;)