image-background-remove-tool icon indicating copy to clipboard operation
image-background-remove-tool copied to clipboard

Need transparency for white background images

Open himabinduyeddala opened this issue 2 years ago • 9 comments

I have gone through your code it's working well for some images which are having a white background. for some images, it's not working because images have high quality and shadows. How I can fix this please help me on this ASAP

I am using CPU setup processing and interacting via code snippet running.

Thanking you in Advance HimaBindu Y

himabinduyeddala avatar Jun 20 '22 12:06 himabinduyeddala

Hey, @himabinduyeddala

Could you provide example images, which have quality issues?

OPHoperHPO avatar Jun 20 '22 14:06 OPHoperHPO

Hi Nikita Selin, I have replied through mail [email protected] with attached images. please check the mail and reply to me on this.

Thanks&Regards HimaBindu Y

himabinduyeddala avatar Jun 21 '22 05:06 himabinduyeddala

Hi, I am having 5000x3000px portraits against a grey background. The background agains hairlines is not nicely removed, i.e., individual hair is not recognised.

helmutkaufmann avatar Jul 29 '22 13:07 helmutkaufmann

Hi, I am having 5000x3000px portraits against a grey background. The background agains hairlines is not nicely removed, i.e., individual hair is not recognised.

Hey @helmutkaufmann The out-of-the-box framework is designed to remove the background from images up to 2500x2500 pixels. You need to try changing some settings to improve the background removal quality. Try increasing the input image resolution of the matting neural network and increasing the dilation value in the trimap generator, this should solve the problem. But this would require a powerful computer to compute all.

OPHoperHPO avatar Jul 29 '22 15:07 OPHoperHPO

@OPHoperHPO for increasing the dilation value in the trimap generator would you increase the kernel_size value?

dabernstein avatar Aug 18 '22 22:08 dabernstein

@OPHoperHPO for increasing the dilation value in the trimap generator would you increase the kernel_size value?

@dabernstein, yes

OPHoperHPO avatar Aug 22 '22 11:08 OPHoperHPO

Thank you for your time and effort on this wonderful project. But I tried with these 2 images but it's not as good as remove.bg. https://user-images.githubusercontent.com/7751399/191201493-659b2683-cb5a-42ec-901d-32e468023039.jpeg

https://user-images.githubusercontent.com/7751399/191201470-f5b78198-82b5-40a9-b09e-c6d10116a38a.png

longleeproduction avatar Sep 20 '22 08:09 longleeproduction

Hi, @longleeproduction

We are working on a new big update for CarveKit, please check the developer version in the development-tracer branch. This version outperforms the stable version in terms of quality when removing backgrounds from objects. Keep in mind that this model is not final, we are optimizing it for problematic domains.

Here are some results (left - u2net with fba, right - tracer with fba)

image image

OPHoperHPO avatar Sep 20 '22 08:09 OPHoperHPO

Any plans for bringing or integrating with SAM?

polavishnu4444 avatar Jul 06 '23 02:07 polavishnu4444