Remove Bg #23
Replies: 7 comments 3 replies
-
I am not using any libraries that have any sort of compatibility issues that could make the automatic installation process require any manual work. Also they using an API to remove backgrounds, not their own code. According to their website the removed background images are for attribution use unless you are paying for the service. That's no good for a MIT commercial project. |
Beta Was this translation helpful? Give feedback.
-
Regarding the onnxruntime-gpu library, I understand your point of view. In fact, I wanted to warn you, although it must be said that it is not the library itself that is having problems. As for the removebg itself, I don't think you read it right or I apologize for not being clear myself: Clipdrop, which as you say uses api and is not free, I only pointed it out to you as a comparison. The subject of the message is rembg |
Beta Was this translation helpful? Give feedback.
-
Definitely install it is a mess, I also have CUDA 11.8 for my 4090, in automatic1111 I was able to do it with the system I mentioned above (once installed you can pip install --force-reinstall --no-deps of the others one at a time) and it works very well both in the extra tab and with the extension https://github.com/thygate/stable-diffusion-webui-depthmap-script. I understand that you don't want to have files outside of your parent folder. |
Beta Was this translation helpful? Give feedback.
-
To be honest, I see it much easier to have the files out of your parent folder than to venture into a conversion and host. |
Beta Was this translation helpful? Give feedback.
-
I agree with you, at present it is not advisable to attempt any of the ways analyzed. Maybe when ONNX is more integrated we can reconsider. ;) |
Beta Was this translation helpful? Give feedback.
-
May be there's another way: demo: https://segment-anything.com/dataset/index.html In this landing website they say that : The prompt encoder and mask decoder even if then in github there is: pip install opencv-python pycocotools matplotlib onnxruntime onnx https://github.com/facebookresearch/segment-anything (Off Topic: The implications of this type of technology applied to drones moved by an AI can be very worrying): |
Beta Was this translation helpful? Give feedback.
-
Pycocotools needs special build tools for C++ so won't rely on anything with pycoco. Almost dumped BLIP for same reason. I can't even install build tools it needs cause I used 2020 version for other software, and it won't build the package. So anything that requires users to download specific versions that make other stuff of theirs incompatible I won't be using. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be great if you could integrate the remove background (Also very useful for Depth maps), as done in automatic1111 :
https://github.com/thygate/stable-diffusion-webui-depthmap-script
https://github.com/danielgatis/rembg
It's not so good as clipdrop https://clipdrop.co/
but is not bad at all and it's free, here a comparison : AUTOMATIC1111/stable-diffusion-webui#8541
About this comparison, however, it must be said that I think clipdrop does an upscale before performing the key cut and then have a cleaner key.
I tried doing this in auto111 and actually then remove bg cuts almost as well as clipdrop.
( I warn you, however, that installing the required onnxruntime-gpu library is a bit of a mess, in auto111 win10 for to make it work I had to do some wizardry: The problem is that by doing that the other linked libraries go out of version. But once installed you can pip install --force-reinstall --no-deps of the others one at a time. while if you don't use the --no-deps each library brings back the linked versions and the onnxruntime-gpu doesn't work (loop) )
Beta Was this translation helpful? Give feedback.
All reactions