Comments (5)
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.
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.
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.
Thank you so much !
solved @ikiss-fit
from pero-ocr.
I'm glad to hear that. If you have any problems in the future, let us know.
from pero-ocr.
Related Issues (20)
- ALTO export BUG HOT 1
- Where does model for region detector place? HOT 1
- training model HOT 2
- Layout analysis crashes HOT 1
- Page color does not switch to DONE if some lines were deleted. HOT 1
- Rename "Download Pages" to "Download transcriptions" HOT 1
- .
- .
- FIX: Switch WIDTH and HIGHT in ALTO export HOT 1
- Layout for one of the pages not displayed on preview
- layout detection not good on exercise books HOT 1
- Can't install through pip HOT 7
- PERO generates 0kB ALTO files HOT 6
- XML headers HOT 1
- OMR transformers produce nonsense transcriptions HOT 1
- Getting KeyError HOT 5
- Add region categories HOT 1
- Music pull request feedback
- problem of numpy version HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pero-ocr.