-
Notifications
You must be signed in to change notification settings - Fork 205
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
hf_hub_download seems to get an invalid argument #154
Comments
Can you provide more details about your environment, how you installed this repo? |
Now I just tried to install and run it in a clean environment: MS-Win 10 New Python virt-env. And I get the same problem (in a CMD prompt without admin-rights):
This is strange. According to the console logs something big got downloaded - but under "C:\Users\me/.cache\huggingface" there are no bigger files. It worked for my before - but longer ago. |
$ python demo.py --prompt "Street-art painting of Emilia Clarke in style of Banksy, photorealism"
Traceback (most recent call last):
File "C:\repos\stable_diffusion.openvino\demo.py", line 83, in
main(args)
File "C:\repos\stable_diffusion.openvino\demo.py", line 35, in main
engine = StableDiffusionEngine(
File "C:\repos\stable_diffusion.openvino\stable_diffusion_engine.py", line 34, in init
hf_hub_download(repo_id=model, filename="text_encoder.xml"),
File "C:\Users\paada\AppData\Local\Programs\Python\Python39\lib\site-packages\huggingface_hub\file_download.py", line 1232, in hf_hub_download
with FileLock(lock_path):
File "C:\Users\paada\AppData\Local\Programs\Python\Python39\lib\site-packages\filelock_api.py", line 255, in enter
self.acquire()
File "C:\Users\paada\AppData\Local\Programs\Python\Python39\lib\site-packages\filelock_api.py", line 213, in acquire
self._acquire()
File "C:\Users\paada\AppData\Local\Programs\Python\Python39\lib\site-packages\filelock_windows.py", line 27, in _acquire
fd = os.open(self.lock_file, flags, self._context.mode)
OSError: [Errno 22] Invalid argument: 'C:\Users\paada/.cache\huggingface\hub\models--bes-dev--stable-diffusion-v1-4-openvino\blobs\W/"18427dfd350d372b46e0f97328cd81bc3e11ca78.lock'
I'm not sure what's going on here, but there's a ` " ' in the path. The directory is empty, I don't know if that's relevant.
Also, the path uses \ and / inconsistently, I don't know if that could cause an issue. From the path you can guess that i'm on windows.
The text was updated successfully, but these errors were encountered: