Skip to content

Commit

Permalink
require specific pre-v2 Tensorflow version
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Feb 20, 2020
1 parent 8db687f commit c377fde
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ help:
deps:
$(PIP) install -r requirements.txt

deps-test: install
deps-test:
$(PIP) install -r requirements_test.txt

install: deps
Expand Down
2 changes: 1 addition & 1 deletion ocrd_keraslm/wrapper/rate.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def _page_get_tokenisation_problems(level, pcgts):
# as a minor mitigation, try to guess consistency a text annotation on multiple levels
# (i.e. infer wrong tokenisation when mother node has TextEquiv deviating from
# concatenated child node TextEquivs only w.r.t. white-space):
report = PageValidator.validate(ocrd_page=pcgts, strictness='strict')
report = PageValidator.validate(ocrd_page=pcgts, page_textequiv_consistency='strict')
problems = {}
if not report.is_valid:
LOG.warning("Page validation failed: %s", report.to_xml())
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ocrd >= 2.3.1
click
keras >= 2.2.4
keras >= 2.3.1
numpy
tensorflow < 2.0
tensorflow == 1.15.2
h5py
networkx >= 2.0
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
author_email='[email protected], [email protected], [email protected]',
url='https://github.com/OCR-D/ocrd_keraslm',
license='Apache License 2.0',
packages=find_packages(exclude=('tests', 'docs')),
packages=find_packages(exclude=('test', 'repo', 'build')),
install_requires=open('requirements.txt').read().split('\n'),
extras_require={
'plotting': [
Expand All @@ -32,6 +32,7 @@
package_data={
'': ['*.json', '*.yml', '*.yaml'],
},
include_package_data=True,
entry_points={
'console_scripts': [
'keraslm-rate=ocrd_keraslm.scripts.run:cli',
Expand Down

0 comments on commit c377fde

Please sign in to comment.