Closed allo- closed 1 year ago
Hey @allo-,
Just to confirm - did you login before with:
huggingface-cli login
?
Yes, I was logged in and I can still reproduce.
The textual_inversion script in the diffusers repo raises the exception. It seems that initializing CLIPTokenizer with CLIPTokenizer.from_pretrained
doesn't work while StableDiffusionPipeline.from_pretrained
works. When downloading the full pipeline with StableDiffusionPipeline
and then using local_files_only
for loading the CLIPTokenizer I can use textual inversion.
The other issue is unrelated. The model that was downloaded is waifu (Anime retrained model), which indeed got an update recently.
Hi @allo- !
I think you may need to upgrade transformers
too. Could you please give it a go?
1) textual inversion has the same issue 2) textual inversion with local_files_only now throws ´No such file or directory: '~/.cache/huggingface/hub/models--CompVis--stable-diffusion-v1-4/refs/main` 3) Inference with local_files_only still works. 4) Inference without local_files_only has the same issue (now).
The token is stored in .huggingface/token
as before.
huggingface-cli login
with the same token works, but doesn't change anything. The same token is stored in the file and I still get the same error. Logged into the website I can access the 401 URL and see the json.
Installing diffusers stable and then reinstalling the git version pulled a new huggingface-hub version and now the downloads work. I guess I need to install the requirements.txt
more often between git updates.
pip install --upgrade diffusers
solved it for me.
The general command is: pip install --upgrade -r diffusers/requirements.txt
to get all packages to (at least) the version needed by diffusers.
Installing from pypi does this automatically, but a git pull
doesn't.
for examples
it's recommended to install from main
or clone the repo and install from source. Will actually add version checks in example scripts which will raise an error if correct version is not installed.
pip install --upgrade diffusers
solved it for me.
This worked for me too on MacOS, Silicon M1.
Describe the bug
After updating my git checkout to a version that removed
use_auth_token
parameters, diffusers cannot downloadCompVis/stable-diffusion-v1-4
anymore with an error 401.I am logged in with the same auth token as before. Downloading another model that is not protected with an auth token using the same script works.
Another possibly related issue: Using the different model from huggingface, the script re-downloaded it even when no new version was published. As far as I understand the cache structure, even a change in the snapshot id for some reason should still be able to avoid the ~4GB download of the model.
Reproduction
Run
or an inference script, that had
use_auth_token
removed.Logs
System Info
diffusers
version: 0.5.0.dev0