All Projects → pbcquoc → Vietocr

pbcquoc / Vietocr

Licence: apache-2.0
Transformer OCR

Projects that are alternatives of or similar to Vietocr

Audiosignalprocessingforml
Code and slides of my YouTube series called "Audio Signal Proessing for Machine Learning"
Stars: ✭ 169 (-0.59%)
Mutual labels:  jupyter-notebook
Imagination Augmented Agents
Building Agents with Imagination: pytorch step-by-step implementation
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Shape Detection
🟣 Object detection of abstract shapes with neural networks
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Gate Decorator Pruning
Code for the NuerIPS'19 paper "Gate Decorator: Global Filter Pruning Method for Accelerating Deep Convolutional Neural Networks"
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Log Anomaly Detector
Log Anomaly Detection - Machine learning to detect abnormal events logs
Stars: ✭ 169 (-0.59%)
Mutual labels:  jupyter-notebook
Mlnd
Udacity Machine Learning Nano Degree Courses
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Fastai old
OLD REPO - PLEASE USE fastai/fastai
Stars: ✭ 169 (-0.59%)
Mutual labels:  jupyter-notebook
Ml Training Camp
Stars: ✭ 171 (+0.59%)
Mutual labels:  jupyter-notebook
Deep Learning Genomics Primer
Contains files for the deep learning in genomics primer.
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Word vectors game of thrones Live
This is the code for the "How to Make Word Vectors from Game of Thrones (LIVE) " Siraj Raval on Youtube
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Structurenet
StructureNet: Hierarchical Graph Networks for 3D Shape Generation
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Mimic extract
MIMIC-Extract:A Data Extraction, Preprocessing, and Representation Pipeline for MIMIC-III
Stars: ✭ 168 (-1.18%)
Mutual labels:  jupyter-notebook
Wbc Classification
Classifying White Blood Cells with CNNs
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Notebooks
Notebooks using the Hugging Face libraries 🤗
Stars: ✭ 168 (-1.18%)
Mutual labels:  jupyter-notebook
Segnet
A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
2048 Deep Reinforcement Learning
Trained A Convolutional Neural Network To Play 2048 using Deep-Reinforcement Learning
Stars: ✭ 169 (-0.59%)
Mutual labels:  jupyter-notebook
Torch Two Sample
A PyTorch library for two-sample tests
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Tutorials
MONAI Tutorials
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Convolutional autoencoder
Code for a convolutional autoencoder written on python, theano, lasagne, nolearn
Stars: ✭ 170 (+0%)
Mutual labels:  jupyter-notebook
Car Damage Detective
Assessing car damage with convolution neural networks for a personal auto claims expedition use case
Stars: ✭ 169 (-0.59%)
Mutual labels:  jupyter-notebook

VietOCR

Các bạn vui lòng cập nhật lên version vietocr>=0.3.5 để không xảy ra lỗi.

Trong project này, mình cài đặt mô hình Transformer OCR nhận dạng chữ viết tay, chữ đánh máy cho Tiếng Việt. Kiến trúc mô hình là sự kết hợp tuyệt vời giữ mô hình CNN và Transformer (là mô hình nền tảng của BERT khá nổi tiếng). Mô hình TransformerOCR có rất nhiều ưu điểm so với kiến trúc của mô hình CRNN đã được mình cài đặt. Các bạn có thể đọc tại đây về kiến trúc và cách huấn luyện mô hình với các tập dữ liệu khác nhau.

Mô hình VietOCR có tính tổng quát cực tốt, thậm chí có độ chính xác khá cao trên một bộ dataset mới mặc dù mô hình chưa được huấn luyện bao giờ.

Cài Đặt

Để cài đặt các bạn gõ lệnh sau

pip install vietocr==0.3.5

Quick Start

Các bạn tham khảo notebook này để biết cách sử dụng nhé.

Model Zoo

Thư viện này cài đặt cả 2 kiểu seq model đó là attention seq2seq và transfomer. Seq2seq có tốc độ dự đoán rất nhanh và được dùng trong industry khá nhiều, tuy nhiên transformer lại chính xác hơn nhưng lúc dự đoán lại khá chậm. Do đó mình cung cấp cả 2 loại cho các bạn lựa chọn.

Mô hình này được huấn luyện trên tập dữ liệu gồm 10m ảnh, bao gồm nhiều loại ảnh khác nhau như ảnh tự phát sinh, chữ viết tay, các văn bản scan thực tế. Pretrain model được cung cấp sẵn.

Kết quả thử nghiệm trên tập 10m

Backbone Config Precision full sequence time
VGG19-bn - Transformer vgg_transformer 0.8800 86ms @ 1080ti
VGG19-bn - Seq2Seq vgg_seq2seq 0.8701 12ms @ 1080ti

Thời gian dự đoán của mô hình vgg-transformer quá lâu so với mô hình seq2seq, trong khi đó không có sự khác biệt rõ ràng giữ độ chính xác của 2 loại kiến trúc này.

Dataset

Mình chỉ cung cấp tập dữ liệu mẫu khoảng 1m ảnh tự phát sinh. Các bạn có thể tải về tại đây.

License

Mình phát hành thư viện này dưới các điều khoản của Apache 2.0 license.

Liên hệ

Nếu bạn có bất kì vấn đề gì, vui lòng tạo issue hoặc liên hệ mình tại [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].