stability-sdk icon indicating copy to clipboard operation
stability-sdk copied to clipboard

Inpainting not working

Open imperator-maximus opened this issue 3 years ago • 7 comments

Hello, I have a problem to get inpainting working again and I am sure that it was fine some weeks ago. But I might have done something wrong here anyway. Here is an example with my parameters: prompt: a photo of a green plant, highly detailed mask, image provided model: stable-inpainting-512-v2-0 ScheduleParameters - start: 1.0 step.setScaledStep(0)

mask artifact let promptMask = new Prompt() let artifact=new Artifact() artifact.setType(ArtifactType.ARTIFACT_MASK) artifact.setBinary(p.maskImage64) promptMask.setArtifact(artifact) request.addPrompt(promptMask)
image same but with ARTIFACT_IMAGE and promptParameters.setInit(true)

3a1fade9-5505-485b-b2c1-cdd15ee5ad8a 5a693e11-2f52-42a0-8721-13faff37228b Screenshot 2023-01-27 171604

Thank you!

imperator-maximus avatar Jan 27 '23 16:01 imperator-maximus

Hi there! @imperator-maximus Is this a problem that you are still encountering? Would you be willing to run additional tests and let us know if this is still a problem for you? If it is and you could provide us a number of examples including masks as you've done here, that would be excellent, thank you!

ChristopherValore avatar Mar 24 '23 21:03 ChristopherValore

Hello there is still this bug i use masks : 2 3 then i use parameters like in example : formdata.append('mask_source', 'MASK_IMAGE_BLACK') formdata.append( 'text_prompts[0][text]', 'woman sitting on bench' ) formdata.append('cfg_scale', '7') formdata.append('clip_guidance_preset', 'FAST_BLUE') formdata.append('samples', 1) formdata.append('steps', 30) formdata.append("init_image", binary); formdata.append("mask_image", binarymask); and result has black border: woman sitting on bench

grzegorzewskiflyingdog avatar Mar 28 '23 00:03 grzegorzewskiflyingdog

is there any news about this? inpainting doesn't work at all right now. this last image, shows it, there are black lines everywhere. will this is be solved? the post is months old. I'm using REST api, should I use a different API? thanks

UXDart avatar Jul 25 '23 23:07 UXDart

did more tests, sometimes using DDIM it seems to work but when trying to inpaint bottom right side, it adds the black line. any idea how to solve that? thanks. this happens with all models, including new ones. the last one, freeze and never replies.

UXDart avatar Jul 26 '23 15:07 UXDart

did a test in DreamStudio, and the same error happens. can I at least know if it will be fixed? thanks. also sent an email FYI with a bug in DreamStudio, other bug

UXDart avatar Jul 26 '23 15:07 UXDart

biggest problem is really when inpaint at the bottom, it creates a new image, it seems to work in other directions. again can I contact anyone? thanks

UXDart avatar Aug 16 '23 18:08 UXDart

I have just tested it and it is still a problem. Basically inpainting is not working, very poor results.

himmetozcan avatar Nov 27 '23 20:11 himmetozcan