install model

#23
by 7dem0n - opened

hi,
when i try to load model from huggingface --> model--> selct model
i've got this message

{
Diffuser model downloaded error: model=stabilityai/stable-diffusion-xl-base-0.9 [Errno 2] No such file or directory: 'C:\sdxl\automatic\models\Diffusers\models--stabilityai--stable-diffusion-xl-base-0.9\refs\main'
}
i'm newbie

thanks

Can you please open an issue on diffusers?

What code snippet do you use to download the model?

Can you try loading the model as written on https://huggingface.co/stabilityai/stable-diffusion-xl-base-0.9#%F0%9F%A7%A8-diffusers

Also see this notebook which shows that downloading works: https://colab.research.google.com/drive/1u3Q5dnfuw7SJoi5sDlB-fuwo4xTchBrR?usp=sharing

Did you maybe forgot to login?

I am getrting the error following the model as written in the above post by @patrickvonplaten . I am getting the same error:

PS C:\Users\crisp\projects\imagegenerator> python .\imagegen.py
Couldn't connect to the Hub: 401 Client Error. (Request ID: Root=1-64b9cf73-4ee354d23f53e1a039bcc7ff;1b004c38-1996-4d8a-9f15-1f412ff668e0)

Repository Not Found for url: https://huggingface.co/api/models/stabilityai/stable-diffusion-xl-base-0.9.
Please make sure you specified the correct repo_id and repo_type.
If you are trying to access a private or gated repo, make sure you are authenticated.
Invalid username or password..
Will try to load from local cache.
Traceback (most recent call last):
File "C:\Users\crisp\projects\imagegenerator\imagegen.py", line 4, in
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", torch_dtype=torch.float16, use_safetensors=True, variant="fp16")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\crisp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\diffusers\pipelines\pipeline_utils.py", line 882, in from_pretrained
cached_folder = cls.download(
^^^^^^^^^^^^^
File "C:\Users\crisp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\diffusers\pipelines\pipeline_utils.py", line 1324, in download
cached_folder = snapshot_download(
^^^^^^^^^^^^^^^^^^
File "C:\Users\crisp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\huggingface_hub\utils_validators.py", line 118, in _inner_fn
return fn(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\crisp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\huggingface_hub_snapshot_download.py", line 169, in snapshot_download
with open(ref_path) as f:
^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\crisp\.cache\huggingface\hub\models--stabilityai--stable-diffusion-xl-base-0.9\refs\main'

Sign up or log in to comment