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

unrecognized arguments error #5

Closed
msskaa12 opened this issue May 3, 2024 · 2 comments
Closed

unrecognized arguments error #5

msskaa12 opened this issue May 3, 2024 · 2 comments

Comments

@msskaa12
Copy link

msskaa12 commented May 3, 2024

thanks for this aswesome work . when I run this code , I got unrecognized arguments error, what is the problem?
I had mannually download the pretrained molel in ./stabilityai/stable-diffusion-2-base/512-base-ema.safetensors

python main.py --harmonize_iterations 10 --save_dir "./output" --is_single_image --image_path "./demo/girl_comp.jpg" --mask_path "./demo/girl_mask.jpg" --foreground_prompt "girl autumn" --background_prompt "girl winter" --pretrained_diffusion_path "./stabilityai/stable-diffusion-2-base/512-base-ema.safetensors" --use_edge_map
usage: main.py [-h] [--pidinet_model PIDINET_MODEL] [--sa] [--dil] [--config CONFIG] [--evaluate EVALUATE] [--gpu GPU]
main.py: error: unrecognized arguments: --harmonize_iterations 10 --save_dir ./output --is_single_image --image_path ./demo/girl_comp.jpg --mask_path ./demo/girl_mask.jpg --foreground_prompt girl autumn --background_prompt girl winter --pretrained_diffusion_path ./stabilityai/stable-diffusion-2-base/512-base-ema.safetensors --use_edge_map

@WindVChen
Copy link
Owner

Hi @msskaa12 ,

Thanks for catching that bug! It's been fixed in the latest commit. You can grab the updated code or just make the same changes as shown here. It should work.

Cheers.

@msskaa12
Copy link
Author

msskaa12 commented May 4, 2024

Thanks for your prompt reply. It works

@msskaa12 msskaa12 closed this as completed May 4, 2024
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

2 participants