rembg
Rembg는 이미지 배경을 제거하는 도구입니다.
파일 탐색기
최종 버전 다운로드 (.zip)- bug_report.md
- feature_request.md
- close_inactive_issues.yml
- lint_python.yml
- publish_docker.yml
- publish_pypi.yml
- windows_installer.yml
- FUNDING.yml
- animal-1.jpg
- animal-1.out.png
- animal-2.jpg
- animal-2.out.png
- animal-3.jpg
- animal-3.out.png
- anime-girl-1.jpg
- anime-girl-1.out.png
- anime-girl-2.jpg
- anime-girl-2.out.png
- anime-girl-3.jpg
- anime-girl-3.out.png
- car-1.jpg
- car-1.out.png
- car-2.jpg
- car-2.out.png
- car-3.jpg
- car-3.out.png
- food-1.jpg
- food-1.out.alpha.jpg
- food-1.out.jpg
- girl-1.jpg
- girl-1.out.png
- girl-2.jpg
- girl-2.out.png
- girl-3.jpg
- girl-3.out.png
- plants-1.jpg
- plants-1.out.png
- rembg.1
- __init__.py
- b_command.py
- d_command.py
- i_command.py
- m_command.py
- p_command.py
- s_command.py
- __init__.py
- base.py
- ben_custom.py
- birefnet_cod.py
- birefnet_dis.py
- birefnet_general.py
- birefnet_general_lite.py
- birefnet_hrsod.py
- birefnet_massive.py
- birefnet_portrait.py
- bria_rmbg.py
- dis_anime.py
- dis_custom.py
- dis_general_use.py
- sam.py
- silueta.py
- u2net.py
- u2net_cloth_seg.py
- u2net_custom.py
- u2net_human_seg.py
- u2netp.py
- withoutbg.py
- __init__.py
- bg.py
- cli.py
- matting.py
- session_factory.py
- anime-girl-1.jpg
- car-1.jpg
- cloth-1.jpg
- plants-1.jpg
- anime-girl-1.birefnet-cod.png
- anime-girl-1.birefnet-dis.png
- anime-girl-1.birefnet-general-lite.png
- anime-girl-1.birefnet-general.png
- anime-girl-1.birefnet-hrsod.png
- anime-girl-1.birefnet-massive.png
- anime-girl-1.birefnet-portrait.png
- anime-girl-1.isnet-anime.png
- anime-girl-1.isnet-general-use.png
- anime-girl-1.sam.png
- anime-girl-1.silueta.png
- anime-girl-1.u2net.png
- anime-girl-1.u2net_cloth_seg.png
- anime-girl-1.u2net_human_seg.png
- anime-girl-1.u2netp.png
- test_decontaminate.py
- test_matting.py
- test_migrate.py
- test_model_home.py
- test_remove.py
- test_withoutbg.py
- .dockerignore
- .editorconfig
- .gitattributes
- .gitignore
- .markdownlint.yaml
- .python-version
- _build-exe.ps1
- _modpath.iss
- _setup-cpu.iss
- _setup-gpu.iss
- CITATION.cff
- docker-compose.yml
- Dockerfile
- Dockerfile_nvidia_cuda_cudnn_gpu
- LICENSE.txt
- logo.png
- MANIFEST.in
- onnxruntime-installation-matrix.png
- pyproject.toml
- pytest.ini
- README.md
- rembg.ipynb
- rembg.py
- rembg.spec
- USAGE.md
# 설치 가이드
1. 코드 내려받기
git clone https://github.com/danielgatis/rembg
깃허브에서 프로젝트 코드 전체를 내 컴퓨터로 내려받습니다.
cd rembg
방금 내려받은 프로젝트 폴더 안으로 이동합니다.
2. 공식 설치 스크립트
쉬움 추천사전 준비물
- Python 3 pip 명령어를 쓰려면 Python이 필요합니다.
pip install "rembg[cpu]" # for library
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install "rembg[cpu,cli]" # for library + cli
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install "rembg[gpu]" # for library
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install "rembg[gpu,cli]" # for library + cli
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
설치 후 새 터미널을 열고, 프로그램의 버전 확인 명령(예: --version)으로 정상 설치됐는지 확인하세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
3. Docker
쉬움사전 준비물
- Git GitHub에서 프로젝트 코드를 내려받으려면 필요합니다.
- Docker Desktop 컨테이너를 빌드하고 실행하려면 필요합니다. 설치 후 실행해서 백그라운드에 켜두세요.
docker run -v .:/data danielgatis/rembg i /data/input.png /data/output.png
빌드된 이미지를 실제 컨테이너로 실행합니다.
docker build -t rembg-nvidia-cuda-cudnn-gpu -f Dockerfile_nvidia_cuda_cudnn_gpu .
Dockerfile을 기반으로 실행 가능한 이미지를 빌드합니다.
sudo docker run --rm -it --gpus all -v /dev/dri:/dev/dri -v $PWD:/data rembg-nvidia-cuda-cudnn-gpu i -m birefnet-general /data/input.png /data/output.png
빌드된 이미지를 실제 컨테이너로 실행합니다.
터미널에 docker compose ps 를 입력해 컨테이너들이 Up 상태인지 확인하세요. README에 포트 번호가 적혀있다면 브라우저에서 http://localhost:포트번호 로 접속해보세요.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
4. Python
쉬움사전 준비물
pip install "rembg[cpu]" # for library
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install "rembg[cpu,cli]" # for library + cli
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install "rembg[gpu]" # for library
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install "rembg[gpu,cli]" # for library + cli
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
pip install "rembg[rocm]" # for library
PyPI에 배포된 패키지를 바로 설치합니다. 소스 클론이 필요 없습니다.
에러 메시지 없이 실행되고 터미널에 안내 문구가 출력되면 정상입니다.
이 레포의 README에 적힌 실제 명령어를 그대로 가져왔습니다.
// repository documentation
Was this content helpful?
(0 ratings)
