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

meet error in load v1 text_encoder.safetensors #41

Closed WenmuZhou closed 1 week ago

WenmuZhou commented 1 month ago

my scripts is python gradio_PowerPaint.py

image

lijiaxing0213 commented 1 month ago

It looks like an issue with the model weights. Try manually downloading from https://huggingface.co/JunhaoZhuang/PowerPaint-v1 and then modify the path.

WenmuZhou commented 1 month ago

I downloaded the model directly from here, and I would encounter this problem. After I added the parameter of strict=False, it could be loaded normally.