5 ms·
Open source Background Remover: Remove Background from images and video using AI
- Oras 4y agoNice work. I like that you have listed all the resources in the repo. Side note, I checked your website and the about page is empty https://backgroundremoverai.com/about/ https://backgroundremoverai.com/about/
- MrThoughtful 4y agoThe about page probably had the background on how the site was created, who made it etc. But then somehow it was removed.
- selcuka 4y agoWhat we need is an open source background check software.
- postsantum 4y agoLooking forward to comments under every post like "Uhh, nice project but did you know the author was caught making offensive jokes in 2012"
- nadermx 4y agoUpdated the about us
- logicallee 4y agoWorks awesome!!! I went to the web site it powers: https://BackgroundRemoverAI.com https://BackgroundRemoverAI.com Uploaded this photo: https://ibb.co/9bv0662 https://ibb.co/9bv0662 Selected the option to remove all background elements and nearly instantly got this result: https://ibb.co/WfFsbqW https://ibb.co/WfFsbqW While, arguably, the legs are part of Zuckerberg, it is an unusual pose and instead the AI picked the subject in a way that is totally suited for inclusion against another background (for example a montage of various founders). The outline it chose looks great. It's a pleasing result that shows the power of AI.
- rikroots 4y agoI was going to say that I like the MediaPipe Selfie Segmentation model for doing this sort of thing in a web page, but I've just noticed (when getting the GitHub link[1]) that Google have marked the code as legacy[2] ... no idea if the new solution is better/easier to use[3]. For what it's worth, my CodePen using the old model is here: https://codepen.io/kaliedarik/pen/PopBxBM https://codepen.io/kaliedarik/pen/PopBxBM [1] - https://github.com/google/mediapipe/blob/master/docs/solutions/selfie_segmentation.md https://github.com/google/mediapipe/blob/master/docs/solutio... [2] - "Attention: Thank you for your interest in MediaPipe Solutions. As of April 4, 2023, this solution was upgraded to a new MediaPipe Solution." [3] - https://developers.google.com/mediapipe/solutions/vision/image_segmenter/web_js https://developers.google.com/mediapipe/solutions/vision/ima...
- nwoli 4y agoMediapipe is such a mess (but so useful). I wish someone would just extract the main tflite models and make a light wrapper around it on GitHub somewhere
- EmilyHughes 4y agoWhy is never a binary provided? Me and 99% of users won't check the code for malicious behaviour so I might as well run a binary from the web.
- frenchman99 4y agoEncouraging users to run some random binary from GitHub is a really good way to spread all kinds of viruses. People should only run binaries from trusted sources.
- marginalia_nu 4y agoCompiling and running random git projects isn't that big of a step up.
- frenchman99 4y agoYou're totally right, it's just as bad, maybe even worse because build tools sometimes ask for admin permissions. People should ideally really on some kind of reputation system or get software from trusted vendors.
- zamnos 4y agoYou probably don't run curl | sudo bash either but other people have different threat models.
- gumballindie 4y agoWe need a gimp like app with all these integrated.
- vladstudio 4y agoI do realize it's not the same at all, but Pixelmator for Mac is a great little image editor that has "Remove background" and more AI-powered features, such as smart up-scaling. https://www.pixelmator.com/ https://www.pixelmator.com/
- bookofjoe 4y agoIn the latest MacOS I noticed "Remove Background" as an option when editing photos in Photos app. It's like magic. AI for everyone.
- dagmx 4y agoit’s in many places on macOS and iOS. The Lock Screen on iOS , safari, photos, keynote, shortcuts etc… I don’t think there’s API access though which would be really handy.
- newjersey 4y agoI think this only applies to photos with depth information, right?
- bookofjoe 4y agoThat's above my TechnoDolt©® pay grade
- ace2358 4y agoNope. This works on any old picture you can view. Just as the text highlight in a picture is also os wide. Just background AI processing. It’s very neato
- lazycouchpotato 4y agoNope. Works with any image in the Photos app. I don't remember the steps, but its either in a menu or you can press and hold the foreground object to make a "cut out" of it and paste it in a different app. https://youtu.be/qX82kIaRNKA?t=15 https://youtu.be/qX82kIaRNKA?t=15
- smartmic 4y agoAlternative: https://www.remove.bg/ https://www.remove.bg/
- NaaYYs 4y agoNot open-source nor free. So I wouldn't really call this an alternative. At least https://baseline.is/tools/background-remover/ https://baseline.is/tools/background-remover/ is free, but not open-source either.
- nidnogg 4y agoOnce you run out of free "credits", they give you a tiny image and you have to pay to get more for for full-res. For a while that was all I had as far as AI bg removal goes and it was quite frustrating.
- stevesearer 4y agoWe use it for the Zapier integration and it works pretty well. Cloudinary has bg removal transformations too but the color seemed to get degraded. Would be happy to learn of an alternative!
- wruza 4y agoAnyone knows how it compares to rembg in speed/quality?
- bennyp101 4y agoChucked this into a Dockerfile, and had a play with it. (Takes a while for torch to download, had to set the pip default-timeout higher) Seems to work pretty well, there were some images I had where it left a bit of a blur around hair, but overall it worked pretty well on most of the ones I tried! Chucked in imagemagik as well to do some trimming/colour manipulation - works pretty nicely
- lucg 4y agoCould you share your Dockerfile please? I was planning to do exactly the same thing with imagemagik as a complement.
- bennyp101 4y agoSure, it was a quick test, but it works for me, YMMV https://gist.github.com/benperiton/2d37ea18377a80f9b9768522d08a4253 https://gist.github.com/benperiton/2d37ea18377a80f9b9768522d...
- dicknuckle 4y agoMight as well open a PR to add your dockerfile.
- jiggywiggy 4y agoCanva has one, pretty good actually
- nadermx 4y agoAuthor of project here. Waking up and seeing my project on the front of HN blew me away, thank you everyone. I will go ahead and update the about us on the page on the website.
- Daub 4y agoI am a painter who has collaborated with computer vision engineers on style transfer between paintings (aesthetic exemplars) and photographs. One of the things that distinguishes a painter from a camera operator is their depth aware organisation of colour contrasts. I use plural as there are many forms of colour contrast. I believe that effective Foreground-background separation has greatly underestimated potential to impact the future of the photographically acquired image. More power to you sir.
- Daub 4y agoFYI... the golden value in FG.BG separation is the single pixel bleed between the two. Unless the new background is of the same value as the old, then this would show up as a light or a dark fringe. At erode filter can remove this in hard-edged objects, but an erode would destroy fuzzy objects like hair. This is why compositors often separate soft and hard selections.
- sebastiennight 4y agoThis project looks promising! Your pricing is also attractive, at about half of Unscreen's API. Plus you're open source which is another bonus point. However, your pricing structure is confusing to me: what does "commercial license for 10" mean when pricing for developers? If we want to integrate your tool in an app, then we would need to have commercial licenses for all generated content, in order to pass that on to the end user. Can you clarify that point? Also, your outputs all seem to have all-white backgrounds. Would it be possible to specify an image or hex color code that would be used as the new background?
- nadermx 4y agoThanks for pointing out how confusing the pricing page was for developers. I went ahead and fixed that. In regards to the background color, it should come out clear. Depending on your viewer I guess it's white. I can put those features on the road map. Have something similar for videos already, so I presume you mean images.
- rg111 4y agoCan anyone suggest me an open source, free upscaler powered by Deep Learning/AI?
- addandsubtract 4y agoThere's a list of upscaling models here, based on your content: https://upscale.wiki/wiki/Model_Database https://upscale.wiki/wiki/Model_Database The easiest one to get started with is probably Real-ESRGAN: https://github.com/xinntao/Real-ESRGAN https://github.com/xinntao/Real-ESRGAN
- croes 4y agoWe will lose an import data source if we remove unwanted backgrounds. Historical, forensic or just interesting.
- PufPufPuf 4y agoDo you have similar objections to image editors that are able to do a rectangular crop?
- croes 4y agoWith crop you lose part of the picture, the one who took the photo don't want that. With AI removal tools they lose nothing.
- dagmx 4y agoYou assume that the new one would replace the original. It’s digital, both would exist. This simply makes it easier to do something people have done manually since the invention of the photograph, or even prior with print. It’s the equivalent of scissors or a razor blade but automated. It’s not even the first ML based solution, and doesn’t do anything that we don’t already do every day for advertising or film.
- croes 4y agoIt's not a new technique but more accessible and easier to use and it get integrated into the photo apps. You assume that people keep photos they don't want, especially if they show "flaws" they don't like.
- nico 4y agoThe photo worked great. The video I tried couldn’t be played or downloaded.
- nadermx 4y agoThe video must of not had a object in the beginning? https://backgroundremoverai.com/results/205ef8ad6b0f4cfa8f66361b8dfeca4e/ https://backgroundremoverai.com/results/205ef8ad6b0f4cfa8f66...
- weird_user 4y agoFun fact: The demo image is an example of the hand-in-waistcoat gesture[1]. [1] https://en.wikipedia.org/wiki/Hand-in-waistcoat https://en.wikipedia.org/wiki/Hand-in-waistcoat
- tough 4y agoYou mean the astronaut shot?
- Pxtl 4y agoHow fast is this? I know I've always craved a "ai-based Magic Wand selector" for GIMP.
- rasz 4y agoSomeone will probably write gimp plugin for https://github.com/facebookresearch/segment-anything https://github.com/facebookresearch/segment-anything soon enough, there already is chrome extension https://github.com/kevmo314/magic-copy https://github.com/kevmo314/magic-copy and figma plugin https://www.figma.com/community/plugin/1234171506421686729/Magic-Cut https://www.figma.com/community/plugin/1234171506421686729/M...
- yashg 4y agoThis is good. Remove.bg is pretty much the gold standard of background removal services due to it's nearly flawless detection of lines separating foreground from the background. But it is a paid service, there are other 2 free services that I have used occasionally when I have needed to remove background which allow download of full sized image after removing the background. https://www.inpixio.com/remove-background/ https://www.inpixio.com/remove-background/ https://express.adobe.com/tools/remove-background https://express.adobe.com/tools/remove-background Adobe is by the best for free services which allows downloading full size transparent image. I compared your tool with the other 3. The results can be seen at https://i.imgur.com/RQT28yp.jpg https://i.imgur.com/RQT28yp.jpg I will download this and try to build myself. Thanks for making it open source.
- rgbrgb 4y agoAre you trying to just cut out the person with those? Looks like adobe and remove.bg do the best on getting a good selection (edges) but OP's tool does best on selecting just the person.
- yashg 4y agoI am just comparing default output from each tool. OP's tool asks for what object to detect and keep, I had selected human so I guess that's why it only kept the person. But yes, my intention was to keep just the person. For this photo, I would go with Adobe because OP's tool adds a halo like outline all around the person. It would differ from photo to photo I think.
- rgbrgb 4y agoMakes sense, and agreed, adobe's has the best cutout and the plant "artifact" is much easier to get rid of than the halo.
- RobinL 4y agoPhotoroom claim they have the best model but not sure whether that's accurate. It's definitely pretty impressive: https://twitter.com/matthieurouif/status/1647281207023992834?s=20 https://twitter.com/matthieurouif/status/1647281207023992834...
- zerr 4y agoHow do you train such models? Where do you get the training dataset?
- sebastianavina 4y agoneat tool. thank you
- Freedom2 4y agoFor the example image (moon landing), couldn't you just remove the background by getting the original source that has a green screen? (I'm joking, of course).