stable_diffusion.openvino icon indicating copy to clipboard operation
stable_diffusion.openvino copied to clipboard

hf_hub_download seems to get an invalid argument

Open zoldseges opened this issue 2 years ago • 2 comments

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

zoldseges avatar Jun 23 '23 02:06 zoldseges