Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to use a Communities model from civitai or huggingface #4

Open
AhBumm opened this issue Apr 16, 2024 · 2 comments
Open

how to use a Communities model from civitai or huggingface #4

AhBumm opened this issue Apr 16, 2024 · 2 comments

Comments

@AhBumm
Copy link

AhBumm commented Apr 16, 2024

the model from huggingface, /unet/model.safetensors can't load.
run demo_gradio.py logs:

Traceback (most recent call last):
  File "E:\zest_code\demo_gradio.py", line 37, in <module>
    pipe = StableDiffusionXLControlNetInpaintPipeline.from_pretrained(
  File "E:\zest_code\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 119, in _inner_fn
    return fn(*args, **kwargs)
  File "E:\zest_code\venv\lib\site-packages\diffusers\pipelines\pipeline_utils.py", line 819, in from_pretrained
    loaded_sub_model = load_sub_model(
  File "E:\zest_code\venv\lib\site-packages\diffusers\pipelines\pipeline_loading_utils.py", line 473, in load_sub_model
    loaded_sub_model = load_method(os.path.join(cached_folder, name), **loading_kwargs)
  File "E:\zest_code\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 119, in _inner_fn
    return fn(*args, **kwargs)
  File "E:\zest_code\venv\lib\site-packages\diffusers\models\modeling_utils.py", line 632, in from_pretrained
    model_file = _get_model_file(
  File "E:\zest_code\venv\lib\site-packages\huggingface_hub\utils\_validators.py", line 119, in _inner_fn
    return fn(*args, **kwargs)
  File "E:\zest_code\venv\lib\site-packages\diffusers\utils\hub_utils.py", line 306, in _get_model_file
    raise EnvironmentError(
OSError: Error no file named diffusion_pytorch_model.bin found in directory ./Juggernaut-XL-v9\unet.
@ttchengab
Copy link
Owner

Hi @AhBumm, which version of diffusers are you using?

@AhBumm
Copy link
Author

AhBumm commented Apr 17, 2024

Hi @AhBumm, which version of diffusers are you using?

My diffusers is diffusers==0.27.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants