GithubHelp home page GithubHelp logo

huyhoang17 / kuzushiji_recognition Goto Github PK

View Code? Open in Web Editor NEW
18.0 1.0 2.0 92.13 MB

[Late Submission] Solution for Kuzushiji recognition (Kaggle competition)

Home Page: https://viblo.asia/p/V3m5WPngKO7

License: MIT License

Python 100.00%
kaggle kuzushiji-recognition kuzushiji unet resnet tensorflow-serving tf-serving viblo nom nom-document

kuzushiji_recognition's Introduction

Kuzushiji Recognition

[Late Submission] Solution for kuzushiji recognition (kaggle competition)

Segmentation model

  • Unet with custom resnet-based backbone
Evaluate on detection model

Classification model

  • Baseline model for kuzushiji character recognition

  • Number of classes: 3422

Command

  • Clone repository
git clone https://github.com/huyhoang17/kuzushiji_recognition
cd kuzushiji_recognition
  • Install some prerequisite libs
pip install -r requirements.txt
  • [Optional] Install Git LFS and pull model files, follow by this tutorial

  • Open kuzu_tfserving.config on editor, change base_path of 2 models to absolute path to each sub-folder

# change this line
base_path: '/home/phan.huy.hoang/workspace/projects/kaggle_kuzushiji/model_server/kuzu_segment'

# to
base_path: '/absolute-path-to-root-folder/model_server/kuzu_segment'
  • Install tensorflow_model_server from this link

  • Run tensorflow model server

tensorflow_model_server --port=8500 --rest_api_port=8501 --model_config_file=/absolute-path-to-kuzu-tfserving.config
  • Test detection & recognition model
python3 src/grpc_infer.py
  • Check result image in assets folder

Result

Result 2

  • I tested on Chữ_Nôm and used pre-trained detection model from kuzushiji dataset

Đại Việt sử ký toàn thư

Chùa Thắng Nghiêm

Lục Vân Tiên

TODO

  • Add pytorch code

  • Update docker / docker-compose

Other issue

Contact

  • If you find this repo useful, please star the project to let people know that it's reliable ⭐⭐⭐ Thank you!

  • For more information, please contact me at email address: [email protected]

kuzushiji_recognition's People

Contributors

hoangph-1744 avatar huyhoang17 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

kuzushiji_recognition's Issues

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.