Python 3.10 support
Hello, Right now the project explicitely excludes Python 3.10; is there a reason for that? Can we expected Python 3.10+ support in the future? Thanks in advance
I forked this to add support for python3.10 and new versions of tensorflow in the meantime. It works exactly the same as keras-ocr and it supports google colab new backend.
pip install image-ocr
Repo : image-ocr Example : Google Colab
@geo-tp did you consider making a pull request to this repo? I'm just wondering.
Are there any plans for keras-ocr to support Python 3.10 in the near future?
@geo-tp I'm getting the same error running your Colab notebook above (with Python 3.10) that I get when I try to run keras-ocr in Colab:
Looking for /root/.keras-ocr/craft_mlt_25k.h5
Downloading /root/.keras-ocr/craft_mlt_25k.h5
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
[<ipython-input-2-3493125f04a9>](https://localhost:8080/#) in <cell line: 7>()
5 # image-ocr will automatically download pretrained
6 # weights for the detector and recognizer.
----> 7 pipeline = image_ocr.pipeline.Pipeline()
8
9 # Get a set of three example images
4 frames
[/usr/local/lib/python3.10/dist-packages/keras/src/layers/layer.py](https://localhost:8080/#) in __init__(self, activity_regularizer, trainable, dtype, autocast, name, **kwargs)
283 self._input_shape_arg = input_shape_arg
284 if kwargs:
--> 285 raise ValueError(
286 "Unrecognized keyword arguments "
287 f"passed to {self.__class__.__name__}: {kwargs}"
ValueError: Unrecognized keyword arguments passed to Dense: {'weights': [array([[0., 0., 0., 0., 0., 0.],
!pip install --force-reinstall -v "tensorflow==2.15.1" keras-ocr supports Python >= 3.6 and TensorFlow >= 2.0.0.