[{"data":1,"prerenderedAt":613},["ShallowReactive",2],{"project-41358490":3},{"id":4,"name":5,"line":6,"line_source":7,"title":8,"url":9,"domain":10,"maker":11,"posted_at":12,"year":13,"points":14,"comments":15,"rank_in_year":16,"shown_in_year":17,"top":18,"tier":19,"category":20,"subcategory":21,"format":22,"keywords":23,"reception":29,"sentiment":30,"stance_mix":31,"scored_comments":36,"aspects":37,"strip":49,"post_text":50,"what":51,"said":94,"maker_in_thread":255,"shape":265,"grid":269,"attempts":577,"same_week":578,"maker_shows":42,"maker_hidden":605,"reader_version":606,"card":607},"41358490","Remove-bg","open-source remove background using WebGPU","title","Show HN: Remove-bg – open-source remove background using WebGPU","https:\u002F\u002Fbannerify.co\u002Ftools\u002Fremove-bg","bannerify.co","anduc",1724687889,2024,286,121,226,3515,7,"legend","ai","background removal","web_app",[24,25,26,27,28],"background remover","webgpu","browser ai","transformer.js","open source","mixed",-0.175,{"positive":32,"neutral":33,"mixed":34,"critical":35},11,22,2,21,56,{"idea":38,"performance":41,"execution":44,"docs":47},{"positive":39,"critical":40},3,4,{"positive":42,"critical":43},1,6,{"positive":45,"critical":46},5,10,{"positive":48,"critical":48},0,[42,48,39,48,48,48,48,42,48,39,42,48,39,39,42,42,39,48,39,42,48,42,42,42,42,45,39,42,45,39,40,39,34,42,42,45,39,39,39,45],"Yesterday,I saw a post in X asking for a self-hostable background remover service. I was thinking, can we make it work by using WebGPU? So it will run in the browser and doesn't require any server\u002Fqueue to run\n\nAfter a couple of hours, I created this and published the source code on  https:\u002F\u002Fgithub.com\u002Fducan-ne\u002Fremove-bg\n\nIt's still new so welcome any ideas and contributions\n\nPowered by WebGPU and Transformer.js (RMBG V1.4 model)",{"problem":52,"audience":58,"pricing":58,"motivation":59,"time_to_build":63,"stack":67,"openness":91,"stage":92,"team_size":93},{"value":53,"source":54,"evidence":55},"Removing image backgrounds without a server or queue","maker",[56],{"id":57},"post",null,{"value":60,"source":54,"evidence":61},"Respond to a request for a self-hostable background remover; run it client-side without a server",[62],{"id":57},{"value":64,"source":54,"evidence":65},"A couple of hours",[66],{"id":57},[68,72,76,80],{"value":69,"source":54,"evidence":70},"WebGPU",[71],{"id":57},{"value":73,"source":54,"evidence":74},"Transformer.js",[75],{"id":57},{"value":77,"source":54,"evidence":78},"RMBG V1.4 model",[79],{"id":57},{"value":81,"source":82,"evidence":83},"React","commenter",[84,88],{"id":85,"by":86,"text":87},"41360799","hokkos","why do you use a canary version of an old react version ?",{"id":89,"by":11,"text":90},"41364935","Hi there, it's because I copied the project template from my previous project, will check and try to upgrade to the React 19 soon if it'll work with the libraries","open_source","beta","unknown",{"praise":95,"objections":121,"requests":175,"questions":196,"alternatives":218},[96,107,114],{"value":97,"source":82,"evidence":98},"Results are strong on many images, including hair and animals",[99,103],{"id":100,"by":101,"text":102},"41368915","san_dimitri","Thanks for sharing this repo. While I don't have time to actively contribute to the code, I have been testing on images to share my feedback for future devs. 1. Background…",{"id":104,"by":105,"text":106},"41362954","zurtri","I tried it on an image of me and a horse in front of a paddock and it worked perfectly. Really impressed. Other background removal tools would find me - but erase half the horse…",{"value":108,"source":82,"evidence":109},"Runs fully offline once the model is loaded",[110],{"id":111,"by":112,"text":113},"41364077","benatkin","Well, my question is about where it lies within the gray area between fully online and fully offline, so that wouldn't work. Edit: Good call! It's fully offline - I disabled the…",{"value":115,"source":82,"evidence":116},"Client-side processing with no server needed",[117],{"id":118,"by":119,"text":120},"41363053","jacobn","Nice work! Making AI accessible directly in the browser (even if you have to download quite the payload for the model parameters) is a real accessibility game changer. Shameless…",[122,141,156,167],{"value":123,"source":82,"evidence":124},"Crashes or freezes browsers and tabs, often from memory use",[125,129,133,137],{"id":126,"by":127,"text":128},"41359816","akpa1","Very cool idea, but for me it completely doesn't work. I'll open an image, the entire computer (running Linux) will briefly freeze (including stopping Spotify in its tracks) and…",{"id":130,"by":131,"text":132},"41359256","ramonverse","Opened, uploaded image, looked good (it worked!). Then my browser (Arc) started freezing, unfroze after closing your website :\u002F",{"id":134,"by":135,"text":136},"41364089","kamjin","I tried your site using the image: https:\u002F\u002Fbannerify.co\u002Ftools\u002Fremove-bg I crashed the page after 10 or so seconds and Chrome prompted me: Crashpad_NotConnectedToHandler, it…",{"id":138,"by":139,"text":140},"41366994","codedokode","You might want to warn about memory usage. I had Chromium consume several GBs of RAM and had to terminate it. But it is great that there now is more offline tools. It would be…",{"value":142,"source":82,"evidence":143},"WebGPU fails to start on many browsers without flags",[144,148,152],{"id":145,"by":146,"text":147},"41364924","ivolimmen","Well gave it 2 tries before giving up. Does not do anything in FireFox and in Chrome it also failed after loading some data. It told me to restart Chrome with some GPU unsafe flag.",{"id":149,"by":150,"text":151},"41359633","beeboobaa3","Status: Error Firefox on Linux: Error: Unsupported device: \"webgpu\". Should be one of: wasm. Chromium on Linux: Error: no available backend found. ERR: [webgpu] Error: Failed to…",{"id":153,"by":154,"text":155},"41363877","cutiepatootiee","It's not working for me",{"value":157,"source":82,"evidence":158},"Generic error messages on failure",[159,163],{"id":160,"by":161,"text":162},"41359139","ericol","The very first image I uploaded (A model lighthouse with a very obvious background) gives just \"Error\".",{"id":164,"by":165,"text":166},"41359920","Flop7331","Non-descript error after 180 seconds. Vivaldi on Android. Please turn off the rolling animation for the duration timer. It looks really wrong when the numbers wind back (which…",{"value":168,"source":82,"evidence":169},"Artifacts and lost detail on some images",[170,171],{"id":100,"by":101,"text":102},{"id":172,"by":173,"text":174},"41361127","lelandfe","Thanks for sharing; it looks like this has trouble with certain kinds of images. Here's likely the most representative example: Original: https:\u002F\u002Fimgur.com\u002Fa\u002FNrEXfua BG removed:…",[176,183,189],{"value":177,"source":82,"evidence":178},"Warn about model download size before loading",[179],{"id":180,"by":181,"text":182},"41361520","sva_","It would be cool if it could ask before loading the model, or at least indicate to me how large the download will be, as I'm on a metered connection right now. But maybe that's…",{"value":184,"source":54,"evidence":185},"Clearer error messages",[186],{"id":187,"by":11,"text":188},"41359882","The error is ambiguous right now and I'll try to make it clearer (welcome for contributions) The idea is it fallbacks to not use webgpu if your browser is not supported, but it…",{"value":190,"source":82,"evidence":191},"Use a better model such as BiRefNet",[192],{"id":193,"by":194,"text":195},"41364405","Mathnerd314","It is a 2024 model, for comparison https:\u002F\u002Fgithub.com\u002Fdanielgatis\u002Frembg\u002F uses U2-Net which is open source from 2022. There is also https:\u002F\u002Fgithub.com\u002FZhengPeng7\u002FBiRefNet (another…",[197,211],{"value":198,"source":82,"evidence":199},"Does the model license allow this distribution?",[200,204,207],{"id":201,"by":202,"text":203},"41362502","Birch-san","feels like it could be nice to abide by the license terms https:\u002F\u002Fbria.ai\u002Fbria-huggingface-model-license-agreement\u002F > 1.1 License. > BRIA grants Customer a time-limited,…",{"id":205,"by":112,"text":206},"41363209","It doesn't, except that it runs it. There's no download link or code playground for running arbitrary code on it, so while technically it transfers the model to the computer…",{"id":208,"by":209,"text":210},"41363617","papa_bear","Pretty sure downloading it to your browser counts as distributing it, legally speaking.",{"value":212,"source":82,"evidence":213},"Why not install through the Linux package manager?",[214],{"id":215,"by":216,"text":217},"41362855","amelius","Why can't I just \"apt-get install\" tools like this? I used to have all the powerful tools at my fingertips but now I feel like my Linux distro is slowly disappearing into a…",[219,230,234,241,248],{"value":220,"source":82,"evidence":221},"remove.bg",[222,226],{"id":223,"by":224,"text":225},"41363008","mvdtnz","Not sure if you realise you've given it the same name as another product that does this exact thing. (Disclosure I work for Canva, the company which owns remove.bg).…",{"id":227,"by":228,"text":229},"41359867","codethief","Ahh, for a second I thought https:\u002F\u002Fremove.bg had open-sourced their product (which I've been quite happy with on the few occasions I've used it). Very cool, though!",{"value":231,"source":82,"evidence":232},"rembg",[233],{"id":193,"by":194,"text":195},{"value":235,"source":82,"evidence":236},"transparent-background",[237],{"id":238,"by":239,"text":240},"41367875","makifoxgirl","I've tried many different background removal algorithms and found that InSPyReNet has been the most successful one. I use `transparent-background` on pip a whole bunch and it…",{"value":242,"source":82,"evidence":243},"imgly background-removal-js",[244],{"id":245,"by":246,"text":247},"41367945","hauschildt","Hi, nice work. I recently also published a WebGPU version of our browser-only background removal library. It's using the onnx-runtime under the hood. Weights are from isnet. It…",{"value":249,"source":82,"evidence":250},"Xenova remove-background-web playground",[251],{"id":252,"by":253,"text":254},"41359297","xnx","Great to have local tools. Here's another one that uses the exact same combination of technologies: https:\u002F\u002Fhuggingface.co\u002Fspaces\u002FXenova\u002Fremove-background-web (Feb 2024)",{"comments":256,"answered":34,"key":257},19,[258,261,262],{"id":259,"text":260},"41359932","Exactly this, as mentioned in the post I've used the same technology with this playground (copied lots of code from here) What I do is mostly make the UX better PS: WebGPU is the…",{"id":187,"text":188},{"id":263,"text":264},"41364981","Hey there, sorry for the issue, does it show status \"Error\"? if so can you try to enable WebGPU using this flag \"--enable-unsafe-webgpu --enable-features=Vulkan\", if not it…",{"commenters":266,"max_depth":46,"maker_replies":256,"first_comment_mins":267,"lifespan_hours":268},76,58,136,[270,272,276,279,280,282,284,286,290,291,294,297,298,300,303,306,308,312,314,317,320,323,325,327,330,332,335,338,339,343,346,348,351,355,356,358,361,365,369,371,375,377,379,380,381,383,384,386,388,391,394,397,400,402,404,406,409,411,415,417,418,421,424,427,430,431,433,435,438,440,443,446,448,450,452,455,458,461,464,466,468,471,473,475,479,482,484,487,489,490,492,496,499,502,505,507,508,512,516,519,522,525,527,529,533,536,538,542,544,546,547,550,552,556,560,562,565,568,571,573,575],[201,48,42,271,202,48],"project\u002Fcritical\u002Fnone",[273,48,48,274,275,48],"41363113","commenter\u002Fneutral\u002Fnone","Laaas",[277,48,48,274,278,48],"41363176","NewJazz",[205,48,48,274,112,48],[281,48,48,274,278,48],"41363286",[283,48,48,274,112,48],"41363743",[285,48,48,274,278,48],"41363811",[287,48,39,288,289,48],"41363982","project\u002Fneutral\u002Fnone","jfoster",[111,48,39,288,112,48],[292,48,48,293,289,48],"41364730","other\u002Fneutral\u002Fnone",[295,48,48,293,296,48],"41365655","nkrisc",[208,48,48,274,209,48],[299,48,48,274,112,48],"41363731",[301,48,48,274,302,48],"41366939","awwaiid",[304,48,48,274,305,48],"41415130","p91paul",[307,48,48,293,289,48],"41363143",[309,48,48,310,311,48],"41363697","other\u002Fneutral\u002Fidea","sangnoir",[313,48,48,293,289,48],"41363969",[315,48,48,293,316,48],"41364274","jaxn",[318,48,48,293,319,48],"41363356","EMIRELADERO",[321,48,48,293,322,48],"41363643","thenickdude",[324,48,48,274,319,48],"41363671",[193,48,42,326,194,48],"project\u002Fcritical\u002Fidea",[328,48,48,293,329,48],"41365245","littlestymaar",[331,48,48,293,278,48],"41368622",[333,48,48,293,334,48],"41366333","xdennis",[336,48,48,293,337,48],"41367497","giancarlostoro",[180,42,39,288,181,48],[340,42,39,341,342,48],"41362479","project\u002Fneutral\u002Fperformance","zamadatix",[344,42,39,341,345,48],"41362596","lynguist",[347,42,39,341,289,48],"41364000",[349,42,42,350,181,48],"41366317","project\u002Fcritical\u002Fperformance",[352,42,48,353,354,48],"41363369","other\u002Fneutral\u002Fperformance","Loughla",[252,34,48,293,253,48],[259,34,48,357,11,42],"maker\u002Fpositive\u002Fidea",[359,39,48,293,360,48],"41359449","stavros",[362,39,39,363,364,48],"41359535","project\u002Fneutral\u002Fidea","maven29",[366,39,45,367,368,48],"41362546","project\u002Fpositive\u002Fperformance","m00x",[160,40,42,370,161,48],"project\u002Fcritical\u002Fexecution",[372,40,39,373,374,48],"41359224","maker\u002Fneutral\u002Fnone","dindresto",[187,40,48,376,11,42],"maker\u002Fneutral\u002Fexecution",[100,45,39,378,101,48],"project\u002Fmixed\u002Fexecution",[145,43,42,370,146,48],[263,43,48,376,11,42],[382,43,48,376,11,42],"41364984",[245,18,48,310,246,48],[126,385,42,350,127,48],8,[387,385,48,373,11,42],"41359921",[389,385,39,390,127,48],"41359982","maker\u002Fmixed\u002Fnone",[392,385,48,353,393,48],"41362386","lxgr",[395,385,48,274,396,48],"41362833","ipaddr",[398,385,48,399,393,48],"41362906","commenter\u002Fneutral\u002Fperformance",[401,385,48,353,139,48],"41367036",[403,385,48,353,393,48],"41372974",[405,385,48,399,139,48],"41367015",[407,385,39,341,408,48],"41362433","jml7c5",[410,385,39,341,127,48],"41362499",[412,385,39,413,414,48],"41362818","project\u002Fneutral\u002Fexecution","cmgriffing",[164,416,42,370,165,48],9,[215,46,48,293,216,48],[419,46,48,293,420,48],"41362909","kinduff",[422,46,48,274,423,48],"41362945","akdev1l",[425,46,48,274,426,48],"41363540","solardev",[428,46,48,293,429,48],"41367410","fulafel",[172,32,42,370,173,48],[432,32,48,376,11,42],"41364908",[238,434,42,370,239,48],12,[436,437,48,373,11,42],"41367778",13,[130,439,42,350,131,48],14,[441,439,48,442,11,42],"41365117","maker\u002Fneutral\u002Fperformance",[444,439,39,341,445,48],"41378352","vednig",[134,447,42,350,135,48],15,[449,447,48,442,11,42],"41364960",[149,451,42,370,150,48],16,[453,451,39,413,454,48],"41359753","cwillu",[456,451,39,341,457,48],"41359959","cWave",[459,451,45,460,150,48],"41360102","project\u002Fpositive\u002Fexecution",[462,451,48,274,463,48],"41362367","arendtio",[465,451,48,376,11,42],"41359976",[467,451,39,413,150,48],"41360060",[469,451,39,413,470,48],"41363907","slimsag",[138,472,42,350,139,48],17,[474,472,48,442,11,42],"41367634",[476,477,48,310,478,48],"41359807",18,"nadermx",[480,477,48,481,11,42],"41360069","project\u002Fpositive\u002Fidea",[483,477,45,481,478,48],"41363033",[485,477,48,274,486,48],"41364643","afuqya",[488,477,48,274,478,48],"41375299",[223,256,39,288,224,48],[491,256,48,373,11,42],"41364942",[493,494,45,460,495,48],"41374915",20,"ccbikai",[497,35,45,460,498,48],"41359252","fragmede",[500,35,42,326,501,48],"41359769","seanthemon",[503,35,42,370,504,48],"41359967","wongarsu",[506,35,48,373,11,42],"41360051",[104,33,45,460,105,48],[509,510,45,460,511,48],"41360527",23,"cultureulterior",[513,514,42,326,515,48],"41361411",24,"andrewstuart",[517,514,42,326,518,48],"41361969","stephenr",[520,514,48,293,521,48],"41362253","nextaccountic",[523,514,39,524,518,48],"41365679","project\u002Fneutral\u002Fdocs",[153,526,42,350,154,48],25,[528,526,48,442,11,42],"41365124",[530,531,42,370,532,48],"41360396",26,"tech-no-logical",[534,531,42,370,535,48],"41361031","nabla9",[537,531,39,413,470,48],"41363903",[539,540,45,541,154,48],"41360765",27,"project\u002Fpositive\u002Fnone",[543,540,48,373,11,42],"41364950",[85,545,39,413,86,48],28,[89,545,48,373,11,42],[548,549,39,363,135,48],"41364074",29,[551,549,48,373,11,42],"41364928",[553,554,45,541,555,48],"41365458",30,"Akash_deshmukh",[557,558,42,370,559,48],"41359562",31,"simjnd",[561,558,48,376,11,42],"41360034",[563,558,39,373,564,48],"41360886","thelastparadise",[566,558,48,293,567,48],"41361154","ashishb",[569,558,48,293,570,48],"41361236","throwaway63820",[572,558,48,293,342,48],"41362533",[227,574,45,481,228,48],32,[118,576,45,481,119,48],33,[],[579,584,589,593,597,601],{"id":580,"name":581,"points":582,"category":583},"41322281","InstantDB",1145,"data",{"id":585,"name":586,"points":587,"category":588},"41384144","Skip",322,"dev_tools",{"id":590,"name":591,"points":592,"category":588},"41318133","ghidra-delinker-extension",304,{"id":594,"name":595,"points":596,"category":588},"41377960","IPA",270,{"id":598,"name":599,"points":600,"category":583},"41339308","ChartDB",227,{"id":602,"name":603,"points":604,"category":588},"41317988","Isaiah",196,false,"v2",{"id":608,"name":5,"line":6,"ai":605,"cat":20,"year":13,"points":14,"comments":15,"rec":29,"s":609,"top":18,"kw":610,"maker":11,"domain":10,"tier":19,"attempts":48,"strip":611,"url":9,"mix":612,"praise":97,"objection":123,"sub":21},41358490,-0.17,[24,25,26,27,28],"1030000103103311303101111531534321153335",[32,33,34,35],1793991098772]