Traceback (most recent call last):


 "inference.py", line 30, in <module>

prediction_model.load_weights(model_path, by_name=True)


 "/home/suryadi/.local/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/training.py", line 182, in load_weights

return super(Model, self).load_weights(filepath, by_name)


 "/home/suryadi/.local/lib/python3.7/site-packages/tensorflow_core/python/keras/engine/network.py", line 1371, in load_weights

saving.load_weights_from_hdf5_group_by_name(f, self.layers)


 "/home/suryadi/.local/lib/python3.7/site-packages/tensorflow_core/python/keras/saving/hdf5_format.py", line 754, in load_weights_from_hdf5_group_by_name

str(weight_values[i].shape) + '.')
ValueError: Layer #338 (named "class_head"), weight <tf.Variable 'pyramid_classification/kernel:0' shape=(3, 3, 64, 180) dtype=float32> has shape (3, 3, 64, 180), but the saved weight has shape (720, 64, 3, 3).

Traceback (most recent call last):


 "<input>", line 2, in <module>


 "C:\Users\sdelail\AppData\Local\Continuum\anaconda3\envs\Financial_Extraction\lib\site-packages\camelot\io.py", line 117, in read_pdf

**kwargs


 "C:\Users\sdelail\AppData\Local\Continuum\anaconda3\envs\Financial_Extraction\lib\site-packages\camelot\handlers.py", line 172, in parse

p, suppress_stdout=suppress_stdout, layout_kwargs=layout_kwargs


 "C:\Users\sdelail\AppData\Local\Continuum\anaconda3\envs\Financial_Extraction\lib\site-packages\camelot\parsers\stream.py", line 458, in extract_tables

cols, rows = self._generate_columns_and_rows(table_idx, tk)


 "C:\Users\sdelail\AppData\Local\Continuum\anaconda3\envs\Financial_Extraction\lib\site-packages\camelot\parsers\stream.py", line 349, in _generate_columns_and_rows

ncols = max(set(elements), key=elements.count)
ValueError: max() arg is an empty sequence
