Error using Model

#13
by Pobeller - opened

I tried to use the model as described in the model card, and I'm encountering the following error:

File "C:\Python312\Lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\diffusers-0.30.0.dev0-py3.12.egg\diffusers\pipelines\pipeline_utils.py", line 881, in from_pretrained
loaded_sub_model = load_sub_model(
^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\diffusers-0.30.0.dev0-py3.12.egg\diffusers\pipelines\pipeline_loading_utils.py", line 703, in load_sub_model
loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\huggingface_hub\utils_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\diffusers-0.30.0.dev0-py3.12.egg\diffusers\models\modeling_utils.py", line 784, in from_pretrained
accelerate.load_checkpoint_and_dispatch(
TypeError: load_checkpoint_and_dispatch() got an unexpected keyword argument 'strict'

fal org

Looks like you may be on a weird version of diffusers. Can you try out 0.29.2 by running pip install diffusers==0.29.2 ?

Installing collected packages: diffusers
Attempting uninstall: diffusers
Found existing installation: diffusers 0.29.2
Uninstalling diffusers-0.29.2:
Successfully uninstalled diffusers-0.29.2
Successfully installed diffusers-0.30.0.dev0

that solved the problem

Sign up or log in to comment