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

Need transparency for white background images #83

Open
himabinduyeddala opened this issue Jun 20, 2022 · 9 comments
Open

Need transparency for white background images #83

himabinduyeddala opened this issue Jun 20, 2022 · 9 comments
Assignees

Comments

@himabinduyeddala
Copy link

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

@OPHoperHPO
Copy link
Owner

Hey, @himabinduyeddala

Could you provide example images, which have quality issues?

@OPHoperHPO OPHoperHPO self-assigned this Jun 20, 2022
@OPHoperHPO OPHoperHPO added the question Further information is requested label Jun 20, 2022
@himabinduyeddala
Copy link
Author

Hi Nikita Selin,
I have replied through mail himabindu.y@msr-it.com with attached images. please check the mail and reply to me on this.

Thanks&Regards
HimaBindu Y

@OPHoperHPO OPHoperHPO removed the question Further information is requested label Jun 23, 2022
@helmutkaufmann
Copy link

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.

@OPHoperHPO
Copy link
Owner

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.

@dabernstein
Copy link

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

@OPHoperHPO
Copy link
Owner

OPHoperHPO commented Aug 22, 2022

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

@dabernstein, yes

@longleeproduction
Copy link

longleeproduction commented Sep 20, 2022

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

@OPHoperHPO
Copy link
Owner

OPHoperHPO commented Sep 20, 2022

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

@polavishnu4444
Copy link

Any plans for bringing or integrating with SAM?

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

6 participants