githubharald / SimpleHTR

Handwritten Text Recognition (HTR) system implemented with TensorFlow.
https://towardsdatascience.com/2326a3487cd5
MIT License
1.96k stars 885 forks source link

main.py run and says unable to convert function return value to a Python type after reinstallation of Tensorflow and Numpy + upgrades #148

Closed eo0017 closed 2 years ago

eo0017 commented 2 years ago

Everytime I run the main.py code, I get this error:

" File "C:\Users\epoch\anaconda3\envs\spyder-env\lib\site-packages\tensorflow\python\framework\dtypes.py", line 29, in _np_bfloat16 = _pywrap_bfloat16.TF_bfloat16_type()

TypeError: Unable to convert function return value to a Python type! The signature was () -> handle " I tried solutions both of downgrading and upgrading tensorflow and reinstalling both tensorflow and numpy, and the same issue arose.

githubharald commented 2 years ago

Start with an empty venv (or conda env) and then pip install the requirements as described in the README.