I am successfully using U2Net to remove the background of images using the terminal and I am also using the nice interface of this repo to do the same thing just in an easier way and validate the similarity of the results. However, my issue is that the background removal is too strong for images like this:
Where I get the following result (i.e. packaging is also removed):
If I upload the image in Foco clipping website and I select Type=='Graphic'
I get exactly the same results. That means that the website is using the same algorithm to remove the background for Graphic-type images. Nevertheless, if I select Type=='Product'
, then the result is the following and is exactly what I want:
Does anyone have any idea on what to do to obtain the same result?
/* I've removed the code because I am not sure if it has some portion copied from other open-sourced codes, I am using it in my apps but I can't remember if it is quoted from other source, so I've removed it, also it could be auto-completed using github copilot */
note: this is very quick example, you could refine it more