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
651 stars 41 forks source link

OSError: Error no file named config.json found in directory checkpoints/ppt-v2 #114

Open JiahaoXia opened 2 weeks ago

JiahaoXia commented 2 weeks ago

Thanks for your great work! I followed the inference instructions in the readme to run the app.py but got the "OSError: Error no file named config.json found in directory checkpoints/ppt-v2".

The arguments of the command are not aligned with the app script, so I changed it to match the script.

# Clone PowerPaint Model
git lfs clone https://huggingface.co/JunhaoZhuang/PowerPaint_v2/ ./checkpoints/ppt-v2

python app.py --share --pretrained_model_path checkpoints/ppt-v2

# checkpoints/ppt-v2
# ---PowerPaint_Brushnet
# ---realisticVisionV60B1_v51VAE
PlanPersisitentPatient commented 1 week ago

I've encountered the same issue, and I would like to ask how you solved it. Thank you.

aiot-tech commented 1 week ago

Just convert the code from the dev branch to the main branch, and then it works.

PlanPersisitentPatient commented 1 week ago

Just convert the code from the dev branch to the main branch, and then it works.

Thank you very much for your detailed response. I have tried the suggestions, but unfortunately, I am still encountering the issue. Could you kindly offer any further recommendations or guidance?

aiot-tech commented 1 week ago

I just did the above steps and it runs

PlanPersisitentPatient commented 1 week ago

I just did the above steps and it runs

I tried your suggestions again, and it worked successfully. Thank you very much for your help. However, I've encountered another issue. I am using the object removal inpainting feature. While everything runs smoothly in the terminal, the 'inpainting result' and 'mask' sections in the Gradio interface display errors. Have you come across a similar situation before? Any further guidance would be greatly appreciated.

aiot-tech commented 1 week ago

No, I have not. Refreshing the web-page maybe work.

Rayjryang commented 6 days ago

Hi, I also encountered the same issue initially. First, the provided script did not match app.py. After modifying the command, I also got the error: "OSError: No file named config.json found in directory checkpoints/ppt-v2." Do you have any updates since the last time you faced this?

Rayjryang commented 6 days ago

I fixed the issue by switching to the main branch, but I still encounter problems. The "inpainting result" and "mask" sections in the Gradio interface display errors. Did you address this?

aiot-tech commented 6 days ago

I have not encountered this problem. Without specific error information, it is difficult to locate the problem. You can try to print out the intermediate results to locate the error.

Rayjryang commented 6 days ago

Thanks! I've identified the issue, and it can be fixed by running:

pip install gradio==3.43.0
x4080 commented 4 days ago

@PlanPersisitentPatient do you clone from the dev branch ? I tried it but still the same error

PlanPersisitentPatient commented 3 days ago

@PlanPersisitentPatient do you clone from the dev branch ? I tried it but still the same error

I initially cloned from the dev branch, but no matter what I tried, I couldn't get it to run, so I eventually switched to the main branch.

x4080 commented 3 days ago

@PlanPersisitentPatient thanks, I'll try again