Skip to main content

Moveread OCR model, in tensorflow

Project description

Moveread OCR

CLIs

Data Exporting

ocr records boxes 'data/ocr-dataset/**/*' -vo path/to/tfrecords
ocr records samples 'data/ocr-dataset/**/*' -vo path/to/tfrecords

Inference

ocr predict -v --weights model.weights.h5 --data path/to/tfrecords > top-preds.ndjson

Finetuning

ocr finetune -vw model.weights.h5 --train path/to/tfrecords --val path/to/tfrecords \
  --epochs 20 --batch-size 32 --lr 0.001

Evaluation

ocr evaluate -vw model.weights.h5 -d path/to/tfrecords

Serving Export

ocr export -vw model.weights.h5 -o path/to/SavedModel

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moveread_ocr-0.1.11.tar.gz (11.5 kB view hashes)

Uploaded Source

Built Distribution

moveread_ocr-0.1.11-py3-none-any.whl (16.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page