error in downloading
I have this error:
Couldn't connect to the Hub: 401 Client Error. (Request ID: Root=1-64a9819b-72b807877627fa4c40bfa82a;d76da702-79fb-4d4b-864f-f6ab39e5d7ac)
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.
I use this code for start:
from diffusers import DiffusionPipeline
import torch
pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-0.9", torch_dtype=torch.float16, use_safetensors=True, variant="fp16",)
pipe.unet = torch.compile(pipe.unet, mode="reduce-overhead", fullgraph=True)
pipe.to("cuda")
prompt = "An astronaut riding a green horse"
images = pipe(prompt=prompt).images[0]
same
Please make sure to be logged in. As this is a gated model you need to run:
from huggingface_hub import login
login()
before downloading the model
Thanks!
thanks too
Why is this not mentioned in the install instructions?
Please make sure to be logged in. As this is a gated model you need to run:
from huggingface_hub import login login()
before downloading the model
how to do this, I am new to this, can you please explain, I am using window 10
Please make sure to be logged in. As this is a gated model you need to run:
from huggingface_hub import login login()
before downloading the model
How do I do that?
Please make sure to be logged in. As this is a gated model you need to run:
from huggingface_hub import login login()
before downloading the model
how to do this, I am new to this, can you please explain, I am using window 10
I saw this answer in another post I solve this problem by logging into Huggingface as follows:
Use huggingface-cli login in the terminal
Enter your token extracted from Token
Run the program again
This problem is cause