https://github.com/baban/image_sort_outer
画像分類コード
https://github.com/baban/image_sort_outer
Last synced: about 1 year ago
JSON representation
画像分類コード
- Host: GitHub
- URL: https://github.com/baban/image_sort_outer
- Owner: baban
- Created: 2023-03-21T13:09:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-13T12:09:10.000Z (about 2 years ago)
- Last Synced: 2025-01-27T10:26:30.895Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 使い方
## install方法
```sh
pip install deepdanbooru
mkdir train-data
```
以下のURLから学習済データをダウンロードしてtrain-data ディレクトリに保存する。
https://github.com/KichangKim/DeepDanbooru/releases
### 画像にタグを付与する
`/mnt/c/cg/`以下に画像をおいている場合、deepdanbooruを使って、以下の様にして画像にタグを付与します。
```sh
deepdanbooru evaluate /mnt/c/cg/*.{jpg,png,webp} --project-path ./train-data --save-txt
```
### タグを参考に画像を分類する
画像と同じディレクトリに、タグを記述したtxtファイルを用意してください。
その状態で以下のコマンドを実行。
```sh
python ./filter.py /mnt/c/cg/
```