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

Inpainting on cliRequests.py #75

Closed
hannibalbarx opened this issue Nov 3, 2022 · 7 comments
Closed

Inpainting on cliRequests.py #75

hannibalbarx opened this issue Nov 3, 2022 · 7 comments

Comments

@hannibalbarx
Copy link

i've tried various types of masks but no luck.

i assume the mask image needs to be transparent where it is to be inpainted.

it just seems to create a new image

@hannibalbarx
Copy link
Author

also the denoising strength can only be set in the file, no cmd line parameter

@db0
Copy link
Member

db0 commented Nov 3, 2022

Are you using cliRequest.py?

If so, you either need to send a black&white mask as the example files. Or you need to send only the source image with transparency. The source_processing has to be as "inpainting"

@hannibalbarx
Copy link
Author

hannibalbarx commented Nov 3, 2022

does the model have to be stable_diffusion_inpainting ? because that model always times out. (i have tried countless times through the day. StableUI is able to run that model no problems. (but you can't upload masks to StableUI)

this is the message it dies with (after some time):

ERROR | 2022-11-03 17:17:49 | main:generate:133 - {"message": "Request with ID '0ecdcee0-1a66-40d0-8bfd-e6f1984f546b' not found."}

@db0
Copy link
Member

db0 commented Nov 3, 2022

Yes the model has to be stable_diffusion_inpainting.

So you are using cliRequest.py?

@hannibalbarx
Copy link
Author

hannibalbarx commented Nov 3, 2022

python ~/Stable-Horde/cli_request.py -n 2 -p "a royal bedroom by Mark Ryden, cgsociety contest winner, pop surrealism, daz3d, polycount, deviantart hd" -f image1.png --source_image bella2_mask2.png --source_processing inpainting

also i'm able to run other models such as mo-di-diffusion

@db0
Copy link
Member

db0 commented Nov 3, 2022

your input is wrong. Did you try to use cliRequestsData.py instead? It's commented

--source_image is not the mask. --source_mask is the mask

@db0 db0 changed the title inpainting does not seem to work? Inpainting on cliRequests.py Nov 3, 2022
@hannibalbarx
Copy link
Author

it worked! thanks!

@db0 db0 closed this as completed Nov 3, 2022
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