-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Attempting to use model_type=vision
breaks due to outdated imports with error:
ImportError: cannot import name 'img_to_array' from 'keras.preprocessing.image'
in line 7 of pdftotree/pdftotree/visual/visual_utils.py
, likely because these imports have moved to tf.keras.utils
a la here and here. And as per the changelog, on 2020-10-13 ptt has upgraded Keras to 2.4.0 or later (and TensorFlow 2.2 or later). (#86, [@HiromuHota][HiromuHota]).
But, when I tried to make this edit locally and compile the package myself from the 0.5.1+dev
channel, the kernel crashed, so leaving this as an issue here.
Environment:
- OS: macOS Ventura 13.0
pdftotree
Version: v0.5.0pdfminer.six
Version: 20221105python
Version: 3.10.4
Metadata
Metadata
Assignees
Labels
No labels