Rid7 / Table-OCR

Recognize tables from images and restore them into word.
GNU General Public License v3.0
273 stars 69 forks source link

test fail #8

Open cqray1990 opened 4 years ago

cqray1990 commented 4 years ago

model = load_model('E:\pyprjmy\Table-OCR-master\model\model_17_0.9887387033492799.hdf5')

model can not be loaded Traceback (most recent call last): File "E:/pyprjmy/Table-OCR-master/server.py", line 18, in model = load_model('E:\pyprjmy\Table-OCR-master\model\model_17_0.9887387033492799.hdf5') File "E:\python\lib\site-packages\keras\models.py", line 270, in load_model model = model_from_config(model_config, custom_objects=custom_objects) File "E:\python\lib\site-packages\keras\models.py", line 347, in model_from_config return layer_module.deserialize(config, custom_objects=custom_objects) File "E:\python\lib\site-packages\keras\layers__init.py", line 55, in deserialize printable_module_name='layer') File "E:\python\lib\site-packages\keras\utils\generic_utils.py", line 144, in deserialize_keras_object list(custom_objects.items()))) File "E:\python\lib\site-packages\keras\engine\topology.py", line 2525, in from_config process_layer(layer_data) File "E:\python\lib\site-packages\keras\engine\topology.py", line 2511, in process_layer custom_objects=custom_objects) File "E:\python\lib\site-packages\keras\layers__init__.py", line 55, in deserialize printable_module_name='layer') File "E:\python\lib\site-packages\keras\utils\generic_utils.py", line 146, in deserialize_keras_object return cls.from_config(config['config']) File "E:\python\lib\site-packages\keras\engine\topology.py", line 1271, in from_config return cls(*config) File "E:\python\lib\site-packages\keras\legacy\interfaces.py", line 91, in wrapper return func(args, **kwargs) File "E:\python\lib\site-packages\keras\layers\convolutional.py", line 1806, in init super(UpSampling2D, self).init(**kwargs) File "E:\python\lib\site-packages\keras\engine\topology.py", line 293, in init__ raise TypeError('Keyword argument not understood:', kwarg) TypeError: ('Keyword argument not understood:', 'interpolation')