-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy pathMakefile
29 lines (20 loc) · 809 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
MODEL_NAME = db_resnet18
train:
cnstd train -m $(MODEL_NAME) --train-config-fp examples/train_config.json -i data/icdar2015
predict:
cnstd predict -m $(MODEL_NAME) --model_epoch 29 --rotated-bbox --box-score-thresh 0.3 --resized-shape 768,768 \
--context cpu -i examples -o prediction
layout:
cnstd analyze -m layout --conf-thresh 0.25 --resized-shape 800 --img-fp examples/mfd/zh.jpg
mfd:
cnstd analyze -m mfd --conf-thresh 0.25 --resized-shape 700 --img-fp examples/mfd/zh4.jpg
demo:
pip install streamlit
streamlit run cnstd/app.py
package:
rm -rf build
python setup.py sdist bdist_wheel
VERSION := $(shell sed -n "s/^__version__ = '\(.*\)'/\1/p" cnstd/__version__.py)
upload:
python -m twine upload dist/cnstd-$(VERSION)* --verbose
.PHONY: train predict layout mfd demo package upload