open-mmlab / PowerPaint

[ECCV 2024] PowerPaint, a versatile image inpainting model that supports text-guided object inpainting, object removal, image outpainting and shape-guided object inpainting with only a single model. 一个高质量多功能的图像修补模型,可以同时支持插入物体、移除物体、图像扩展、形状可控的物体生成,只需要一个模型
https://powerpaint.github.io/
MIT License
364 stars 18 forks source link

FileNotFoundError: No such file or directory: "./models/unet/diffusion_pytorch_model.safetensors" #16

Closed JohanHuynh0130 closed 4 months ago

JohanHuynh0130 commented 4 months ago

Thanks for the work, just wondering whether huggingface accidentally deleted your files as this error happened when I tried to run Gradio: Traceback (most recent call last): File "E:\mmagic\projects\powerpaint\gradio_PowerPaint.py", line 36, in load_model(pipe.unet, './models/unet/diffusion_pytorch_model.safetensors') File "C:\Users\master\miniconda3\envs\PowerPaint\lib\site-packages\safetensors\torch.py", line 197, in load_model state_dict = load_file(filename) File "C:\Users\master\miniconda3\envs\PowerPaint\lib\site-packages\safetensors\torch.py", line 308, in load_file with safe_open(filename, framework="pt", device=device) as f: FileNotFoundError: No such file or directory: "./models/unet/diffusion_pytorch_model.safetensors"

JohanHuynh0130 commented 4 months ago

Fixed! Just need to change the gradio, i think just the typo