Coder Social home page Coder Social logo

Comments (5)

ikiss-fit avatar ikiss-fit commented on July 17, 2024

I'm not sure what checkpoint you are using (there is no such checkpoint in the available models). Anyway, you need to check if the model exists in that particular location. Otherwise I'm not able to help you without more details (processing configuration, checkpoint information, etc).

from pero-ocr.

halaneji avatar halaneji commented on July 17, 2024

Thank you so much for your reply.
I have this files :
ocr_model/
├── checkpoint_646000.ckpt.data-00000-of-00001
├── checkpoint_646000.ckpt.index
├── checkpoint_646000.ckpt.meta
└── ocr_engine.json

and the configuration is
cat config.ini
[PAGE_PARSER]
RUN_LAYOUT_PARSER = yes
RUN_LINE_PARSER = yes
RUN_LINE_CROPPER = yes
RUN_OCR = yes
RUN_DECODER = no

[LAYOUT_PARSER]
METHOD = WHOLE_PAGE_REGION

[LINE_PARSER]
METHOD = cnn
#for CNN line engine
MODEL_PATH = ./layout_model/ParseNet_exported

DOWNSAMPLE = 4
USE_CPU = no
PAD = 52
DETECTION_THRESHOLD = 0.2

#for line postprocessing
MERGE_LINES = no
STRETCH_LINES = 0
RESAMPLE_LINES = yes
ORDER_LINES = vertical

[LINE_CROPPER]
INTERP = 2
LINE_SCALE = 1
LINE_HEIGHT = 32

[OCR]
OCR_JSON = ./ocr_model/ocr_engine.json

when I run the docker I have the problem "ocr_model/checkpoint_646000.ckpt does not exist"

from pero-ocr.

ikiss-fit avatar ikiss-fit commented on July 17, 2024

I guess you are using very old models that are probably no longer compatible with the current version of pero-ocr (we used Tensorflow before, now we only use PyTorch). The easiest thing to do is to download the latest available model package and the latest version of pero-ocr that are compatible with each other.

Otherwise, if you insist on using these older versions, the problem is obviously in the wrong paths. You can try setting absolute paths to the required files (MODEL_PATH, OCR_JSON) in the configuration file.

from pero-ocr.

halaneji avatar halaneji commented on July 17, 2024

Thank you so much !
solved @ikiss-fit

from pero-ocr.

ikiss-fit avatar ikiss-fit commented on July 17, 2024

I'm glad to hear that. If you have any problems in the future, let us know.

from pero-ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.