rembg
rembg copied to clipboard
Rembg is a tool to remove images background
Hi. Loving rembg and how easy it is to use. I'm wondering is there any way to use models like SAM-HQ: https://github.com/SysCV/sam-hq And DIS: https://github.com/xuebinqin/DIS Would they need integrating or...
**Is your feature request related to a problem? Please describe.** When using the Rembg API and passing the bgc property to remove background, the output image format defaults to PNG....
**Describe the bug** 1] When user is using id card, rembg is unable to crop inage **To Reproduce** Steps to reproduce the behavior: 1. Give model image of person with...
**Describe the bug** I'm getting some onnx runtime errors, though an image seems to still be getting created. command is rembg i "!Masked!" "!Intermediate!" `P Error *************** [EP Error D:\a\_work\1\s\onnxruntime\python\onnxruntime_pybind_state.cc:456...
# I tried human_seg it's taking same time and the file downladed are same of 178 mb and no diff in human_seg and u2net model
The background around products such as rings or bracelets is easily removed, but the background of the middle cavity of these objects is not removed.  
**Is your feature request related to a problem? Please describe.** I would like to use this library to create stickers **Describe the solution you'd like** allow to set a border_color...
**Describe the bug** When switching from isnet-general-use to sam. Encountered the following bug ` File "/Users/XX/opt/anaconda3/envs/genai/lib/python3.11/site-packages/rembg/bg.py", line 257, in remove masks = session.predict(img, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/XX/opt/anaconda3/envs/genai/lib/python3.11/site-packages/rembg/sessions/sam.py", line 169,...
``` rembg_session = rembg.new_session() rembg.remove(data=Image.open(input_path), session=rembg_session, only_mask=True) rembg_session.inner_session.get_providers() # prints out ['CPUExecutionProvider'] ``` I also saw that there were no spikes at all on my GPU RAM graph. I am...
**Describe the bug** I tried using the SAM model to remove the background and normally I get this result (using e.g. u2netp)  With SAM...