ValueError: Layer 'conv2d_9' expected 1 variables, but received 0 variables during loading. Expected: ['conv2d_9/kernel:0'] #1792
Labels
framework: tensorflow
Related to TensorFlow backend
os: windows
Involving Windows users
type: bug
Something isn't working
Bug description
Hello thanks for the awesome package. I am going to process a pdf document with OCR but I am facing the issue in Window Machine. I have installed the doctr, tf and pt from source via the following line.
Code snippet to reproduce the bug
Traceback (most recent call last):
File "E:\OCR\ml_mo\doctr_mo\testing_doct.py", line 5, in
model = kie_predictor(det_arch='db_resnet50', reco_arch='crnn_vgg16_bn', pretrained=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\OCR\ml_mo\doctr\doctr\models\zoo.py", line 228, in kie_predictor
return _kie_predictor(
^^^^^^^^^^^^^^^
File "E:\OCR\ml_mo\doctr\doctr\models\zoo.py", line 146, in _kie_predictor
det_predictor = detection_predictor(
^^^^^^^^^^^^^^^^^^^^
File "E:\OCR\ml_mo\doctr\doctr\models\detection\zoo.py", line 110, in detection_predictor
return _predictor(
^^^^^^^^^^^
File "E:\OCR\ml_mo\doctr\doctr\models\detection\zoo.py", line 50, in _predictor
_model = detection.dict[arch](
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\OCR\ml_mo\doctr\doctr\models\detection\differentiable_binarization\tensorflow.py", line 390, in db_resnet50
return _db_resnet(
^^^^^^^^^^^
File "E:\OCR\ml_mo\doctr\doctr\models\detection\differentiable_binarization\tensorflow.py", line 318, in _db_resnet
load_pretrained_params(
File "E:\OCR\ml_mo\doctr\doctr\models\utils\tensorflow.py", line 73, in load_pretrained_params
model.load_weights(archive_path, skip_mismatch=skip_mismatch)
File "C:\Users\admin\anaconda3\envs\doctr_ocr\Lib\site-packages\tf_keras\src\utils\traceback_utils.py", line 70, in error_handler
raise e.with_traceback(filtered_tb) from None
File "C:\Users\admin\anaconda3\envs\doctr_ocr\Lib\site-packages\tf_keras\src\engine\base_layer.py", line 3518, in load_own_variables
raise ValueError(
ValueError: Layer 'conv2d_9' expected 1 variables, but received 0 variables during loading. Expected: ['conv2d_9/kernel:0']
The text was updated successfully, but these errors were encountered: