stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

inpaint full resolution seems to be broken

Open natemac opened this issue 3 years ago • 9 comments

Describe the bug I updated about an hour ago and now when using inpaint at full resolution I get strange image errors. I can't say for sure the latest update caused this, but earlier this morning I was not having the issue.

ORIGINAL original

Inpaint at full resolution OFF fullres_off

Inpaint at full resolution ON, padding pixels 12 fullres_on_12

Inpaint at full resolution ON, padding pixels 96 fullres_on_96

natemac avatar Oct 13 '22 19:10 natemac

+1 . About half the time, full res inpainting results in just black or tan fills of the brush area.

aperullo avatar Oct 13 '22 19:10 aperullo

I've had these black bars showing up for a while depending on resolution settings, but they never seem to appear if the resolution is square. Sometimes I can push the aspect ratio up to a point while inpainting at full resolution, and then those black bars start appearing.

CodeExplode avatar Oct 13 '22 19:10 CodeExplode

the black bars appear when you have tall res - width is less than height in pixels, i thin kthis part of the code needs better formula to calculate the result so its without bars like wide ones. Thats should solve it

1blackbar avatar Oct 13 '22 22:10 1blackbar

the black bars appear when you have tall res - width is less than height in pixels, i thin kthis part of the code needs better formula to calculate the result so its without bars like wide ones. Thats should solve it

agreed, when I changed the height to match the size of the inpaint ratio it seems to do much better.

natemac avatar Oct 13 '22 22:10 natemac

You could use these settings (crop and resize, and resize and fill)

image

to fix black bars and usually fix other artifacts regarding different height/width ratio of masked section

Pontifice avatar Oct 14 '22 15:10 Pontifice

the way i've worked around this was to always use a square ratio when inpainting, it's not going to resize your image

Mozoloa avatar Oct 16 '22 00:10 Mozoloa

You could use these settings (crop and resize, and resize and fill)

image

to fix black bars and usually fix other artifacts regarding different height/width ratio of masked section

With "tall images" i tried the three resize options and got the black bars too. The only thing that worked for me was using a square aspect ratio in inpating like Mozola suggested.

Dravoss avatar Oct 19 '22 15:10 Dravoss

just wanna ask is it fixed? I don't see black border anymore

dtlnor avatar Nov 11 '22 13:11 dtlnor

just wanna ask is it fixed? I don't see black border anymore

I think it is, cause it has not happened to me in two weeks~

Dravoss avatar Nov 11 '22 14:11 Dravoss

I think it's been fixed long ago, but just in case someone still encounters this - please comment.

mezotaken avatar Jan 10 '23 17:01 mezotaken