pkuliyi2015 / multidiffusion-upscaler-for-automatic1111

Tiled Diffusion and VAE optimize, licensed under CC BY-NC-SA 4.0
Other
4.71k stars 334 forks source link

Can You limit feather so it doesnt feather on bottom? #129

Open 2blackbar opened 1 year ago

2blackbar commented 1 year ago

Theres an issue where it feathers bottom as well, most of the time on portraits Shes cut off on botton and blended with background which is what i dont want Some tick box to disable blending / feathering on bottom maybe? or a detection so if a foreground box with character is touching bottom of the image frame, then disable blending on bottom ? I still want to feather from all sides when i have full body character or something but on portraits that is not desirable Also this is an issue on higher feather values like 0.3, it takes away a lot from bottom, the image is default 0.1 By the way, did you thought about using rembg code to remove background from under character and then blend it with image? not sure how it would work in the end tho, without any background and if light would match but how about this - have separate bg feather and fg character feather if theyre separated with rembg, in the end it might not be worth it but maybe it would work. image image

pkuliyi2015 commented 1 year ago

Thanks for your feedback. You raise a valid point that I have never thought about. I will consider how to arrange the UI.

Regarding to the remove background: It may not be that accurate to detect the character in the latent images. But I will have a try in my leisure time.

2blackbar commented 1 year ago

I know it might be hard to exclude feathering from one side --- had some issue, solved it,edited post