Skip to content

ducan-ne/remove-bg

Repository files navigation

Remove-BG

Remove background directly in your browser, powered by WebGPU
Learn more »

Introduction · Tech Stack ·

Twitter Hacker News


Introduction

Remove background directly in your browser, powered by WebGPU, we use RMBG V1.4 model from Hugging Face

Under the hood, it uses transformer.js to interact with the model

Tech Stack

  • Pnpm
  • Vite
  • Transformers.js
  • NextUI
  • React aria components
  • Tailwind
  • RMBG V1.4 model

Troubleshooting

Status "Error"

Try to put the flag "--enable-unsafe-webgpu --enable-features=Vulkan" to your Chrome flags, read more about it here

Crash the browser

Some people reported that the browser crashed when they try to remove the background. This is a known issue and we are working on a fix. In the mean time, you can try to disable "WebGPU" in the "Experimental features" section in your browser's settings and try again (this will make the tool use CPU instead)

Contributing

  • pnpm install
  • pnpm dev

That's it

About

Remove background directly in your browser, powered by WebGPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published