https://github.com/shirayu/rm_anime_bg
Anime background remover
https://github.com/shirayu/rm_anime_bg
anime background-removal image-processing python segmentation
Last synced: 6 months ago
JSON representation
Anime background remover
- Host: GitHub
- URL: https://github.com/shirayu/rm_anime_bg
- Owner: shirayu
- License: apache-2.0
- Archived: true
- Created: 2023-01-30T11:42:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-02T12:37:18.000Z (almost 2 years ago)
- Last Synced: 2025-12-15T19:49:33.852Z (6 months ago)
- Topics: anime, background-removal, image-processing, python, segmentation
- Language: Python
- Homepage:
- Size: 595 KB
- Stars: 24
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE.txt
Awesome Lists containing this project
README
# rm_anime_bg
[](https://badge.fury.io/py/rm_anime_bg)
[](https://pypi.org/project/rm_anime_bg/)
[](https://opensource.org/licenses/Apache-2.0)
[](https://pepy.tech/project/rm_anime_bg)
[](https://github.com/shirayu/rm_anime_bg/actions/workflows/ci.yml)
[](https://github.com/shirayu/rm_anime_bg/actions/workflows/codeql-analysis.yml)
[](https://github.com/shirayu/rm_anime_bg/actions/workflows/typos.yml)
A simple CLI of anime background remover with [SkyTNT/anime-segmentation](https://github.com/SkyTNT/anime-segmentation)


[Image source](https://ja.wikipedia.org/wiki/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB:Wikipe-tan_meets_mathematics.png), licensed under CC-BY-SA-3.0, Funa Funa
## Setup
```bash
# For CPU
pip install -U 'rm_anime_bg[cpu]'
# For GPU
pip install -U 'rm_anime_bg[gpu]'
```
## Usage
```bash
rm_anime_bg -o [Output directory] [Input 1] [Input 2] [Input 3] ... [Input N]
```
- ``--cpu``: Force use of CPU
Run ``rm_anime_bg --help`` to check full command options
### Example
```bash
rm_anime_bg -o /path/to/output_dir input1.png input2.png
```
## Links
-
- Another image background remover: [rembg](https://github.com/danielgatis/rembg)
## License
Apache License 2.0