PowerPaint icon indicating copy to clipboard operation
PowerPaint copied to clipboard

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

Open JiahaoXia opened this issue 1 year ago • 13 comments

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

JiahaoXia avatar Oct 28 '24 04:10 JiahaoXia

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

PlanPersisitentPatient avatar Oct 31 '24 02:10 PlanPersisitentPatient

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

aiot-tech avatar Oct 31 '24 02:10 aiot-tech

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?

PlanPersisitentPatient avatar Oct 31 '24 04:10 PlanPersisitentPatient

I just did the above steps and it runs

aiot-tech avatar Oct 31 '24 08:10 aiot-tech

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.

PlanPersisitentPatient avatar Nov 01 '24 03:11 PlanPersisitentPatient

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

aiot-tech avatar Nov 06 '24 07:11 aiot-tech

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 avatar Nov 06 '24 23:11 Rayjryang

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?

Rayjryang avatar Nov 07 '24 00:11 Rayjryang

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.

aiot-tech avatar Nov 07 '24 02:11 aiot-tech

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

pip install gradio==3.43.0

Rayjryang avatar Nov 07 '24 02:11 Rayjryang

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

x4080 avatar Nov 08 '24 22:11 x4080

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

PlanPersisitentPatient avatar Nov 10 '24 01:11 PlanPersisitentPatient

@PlanPersisitentPatient thanks, I'll try again

x4080 avatar Nov 10 '24 03:11 x4080