Skip to content

hf_hub_download seems to get an invalid argument #154

@zoldseges

Description

@zoldseges

$ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions