Skip to content
项目

关于

使用 10 个开源 rmbg 模型的 FOSS 图片背景移除工具

设计与媒体

这些数字如何统计

实测星标增长

24小时
0
7天
+1
15天
-1
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

BGBye

Installation

Prerequisites

  • Latest Node.js and npm
  • python3 and python3-pip
  • Windows users must use Windows Subsystem for Linux (WSL)
  • Concurrently (optional): for running both server and client at once. npm i concurrently -g

Steps

  1. Clone the repository:

    git clone https://github.com/MangoLion/bgbye
    cd bgbye
    
  2. Install dependencies:

    npm install
    
  3. Set up the server:

    npm run setup-server
    

    Make sure to restart your terminal after!

AMD GPU

Goto ./server/setp.sh and replace the index url with --index-url https://download.pytorch.org/whl/rocm6.0

Do this before calling npm run setup-server

Diagnosis

  • NPM takes forever to install? (WSL)
    • You probably didn't install npm on WSL, so its using npm on windows. Install npm on WSL first.
  • Internal server error 500 whenever submit an image/video
    • Could be CUDA issues, make sure your cuda GPU is visible (nvidia-smi)?
  • Internal server error 500 whenever submit a video, but image works
    • Check if ffmpeg is installed

Running the App

To start both the web app and server, run:

npm start

Moar notes

I'm so sorry this is using the long dead create-react-app template! Was setting up Cloudflare Pages for the first time and their tutorial installed CRA 💀

I'll move this stuff to Vite later

探索相关项目

加载中…