>>520
git clone https://github.com/SkyTNT/anime-segmentation.git を実行する
git clone https://huggingface.co/skytnt/anime-seg 次にこれを実行
inference.pyを移動させたいのでユーザー/ユーザー名/のところにanime-segmentation、anime-segがDLされてるのでanime-segからanime-segmentationへinference.py移動
cd anime-segmentation 実行 → python -m venv venv 実行 → .\venv\scripts\activate.bat 実行
anime-segmentationのrequirements.txtのtorchに==1.12.1+cu113、torchvisionに==0.13.1+cu113を追記して適当な真っ白い行に--extra-index-url https://download.pytorch.org/whl/cu113を書く
pip install -r requirements.txt 実行
python inference.py --net isnet_is --ckpt isnetis.ckpt --data 1024サイズの切り抜く画像があるファイル名(日本語使用禁止) --out 出力先ファイル名(日本語使用禁止) --img-size 1024 --only-matted 実行で切り抜き開始