Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JiahaoXia opened this issue Oct 28, 2024 · 13 comments

Comments

@JiahaoXia
Copy link

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
Copy link

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

@aiot-tech
Copy link

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

@PlanPersisitentPatient
Copy link

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
Copy link

I just did the above steps and it runs

@PlanPersisitentPatient
Copy link

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
Copy link

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

@Rayjryang
Copy link

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
Copy link

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
Copy link

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
Copy link

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

pip install gradio==3.43.0

@x4080
Copy link

x4080 commented Nov 8, 2024

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

@PlanPersisitentPatient
Copy link

@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
Copy link

x4080 commented Nov 10, 2024

@PlanPersisitentPatient thanks, I'll try again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants