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 problem #16

Open
grzegorzewskiflyingdog opened this issue Mar 14, 2023 · 3 comments
Open

inpainting problem #16

grzegorzewskiflyingdog opened this issue Mar 14, 2023 · 3 comments

Comments

@grzegorzewskiflyingdog
Copy link

Ive tried to make inpainting using Stability-AI/REST-API
operation: image-to-image/masking
url : /v1betageneration/operation/imageToImage

I use param mask_source:INIT_IMAGE_ALPHA the example promt:man sitting, for this image, but i always get result with black border
what is wrong here ?
11111notwork

this is example of one wrong image result i got:

result man sitting

@dribnet
Copy link

dribnet commented Apr 24, 2023

Just a guess based on my experience with other models: you might have to align your alpha layer mask to a 16x16 grid. Try pre-processing your alpha layer assuming the alpha mask is an image made up of 16x16 pixel tiles and expand your original mask to fill those grid tiles.

@enzymezoo-code
Copy link

Are you both using an image with alpha and painting the original image black? Can you paint the alpha channel with the mask without modifying the other channels? @grzegorzewskiflyingdog

@grzegorzewskiflyingdog
Copy link
Author

im not modify other channels. For alpha channels, only alpha For INIT_IMAGE_ALPHA option i do not use other mask in this case. If i would use black color then i should send two images to server , original one plus mask one, for alpha mask i send only one.

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

3 participants