Improve argment.

This commit is contained in:
corkborg
2023-10-11 17:37:08 +09:00
parent 5f29cab792
commit 7a243b4649
3 changed files with 66 additions and 10 deletions
+24 -2
View File
@@ -4,11 +4,33 @@
```
venv/bin/python -m venv venv
venv/bin/pip install -r requirements.txt
source venv/bin/activate
pip install -r requirements.txt
```
## usage
```
venv/bin/python run.py image.jpg
usage: run.py [-h] [--dir DIR | --file FILE] [--threthold THRETHOLD] [--ext EXT]
options:
-h, --help show this help message and exit
--dir DIR ディレクトリ内の画像すべてに予測を行う
--file FILE ファイルに対して予測を行う
--threthold THRETHOLD
予測値の足切り確率(デフォルトは0.35)
--ext EXT dirの場合にキャプションファイルにつける拡張子
```
single file
```
python3 run.py --file image.jpg
```
batch execution
```
python3 run.py --dir dir/dir
```