Skip to content

Commit

Permalink
Merge pull request #75 from breezedeus/dev
Browse files Browse the repository at this point in the history
fix: wrong urls for model downloading
  • Loading branch information
breezedeus authored Apr 26, 2020
2 parents d10c7d3 + d2cdbda commit 20568af
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,12 @@ predict:
python scripts/cnocr_predict.py --model_name $(MODEL_NAME) --file examples/rand_cn1.png


.PHONY: gen-lst gen-rec train evaluate predict
package:
python setup.py sdist bdist_wheel

VERSION = 1.1.1
upload:
python -m twine upload dist/cnocr-$(VERSION)* --verbose


.PHONY: gen-lst gen-rec train evaluate predict package upload
2 changes: 1 addition & 1 deletion cnocr/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '1.1.1'
__version__ = '1.1.2.1'
2 changes: 1 addition & 1 deletion cnocr/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

root_url = (
'https://raw.githubusercontent.com/breezedeus/cnocr-models/master/models/%s'
% __version__
% MODEL_VERSION
)
# name: (epochs, url)
AVAILABLE_MODELS = {
Expand Down

0 comments on commit 20568af

Please sign in to comment.