Skip to content

ocr_predictor error #24

@enjiushuozhexie

Description

@enjiushuozhexie

Hello!
I am trying to use this cool project but when running code snippets in Colab:

from doctr.models import ocr_predictor
predictor = ocr_predictor(pretrained=True)
print("doctr predictor loaded.")

An error occurred:
ValueError: Layer 'conv2d_87' expected 1 variables, but received 0 variables during loading. Expected: ['fast/fast_neck/fast_conv_layer_33/conv2d_87/kernel:0']

I have confirmed that the model download did not encounter any errors and used the environment of "tensorflow==2.17.0", "tf keras==2.17.0", and "python doctr [tf, viz]==0.10.0".

Do you know why this happen?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions