Giter Site home page Giter Site logo

alexeyev / glyphnet-pytorch Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 4.0 64 KB

Сracking Egyptologist's MNIST: PyTorch implementation of the Glyphnet model introduced in "A Deep Learning Approach to Ancient Egyptian Hieroglyphs Classification", Barucci et al., 2021.

License: MIT License

Python 98.98% Shell 1.02%
egyptian-hieroglyphics deep-learning computer-vision egyptology inception hieroglyphics hieroglyph-recognition

glyphnet-pytorch's Introduction

glyphnet-pytorch

Python 3x

This repository presents a custom (non-official) PyTorch-based implementation of the Glyphnet classifier introduced in the work A Deep Learning Approach to Ancient Egyptian Hieroglyphs Classification, 2021 and applies it to the data accompanying the work "Automatic Egyptian Hieroglyph Recognition by Retrieving Images as Texts", 2013 (NB! Glyphnet paper uses a larger dataset).

what a pretty bird you are
G17 G26 G25 G4 G5 G43

We hope that this implementation of the model will encourage the further research in this direction.

UPDATE April 2022: the original AUTHORS' CODE is now available.

Requirements

Please see requirements.txt.

Quickstart

TL;DR: run prepare_data.sh, then main.py.

Setting everything up

An entry point is the script prepare_data.sh that downloads the dataset and splits it into train/test parts in a 'stratified' manner, i.e. keeping all labels with just a single image in the training set, yet preserving similar label counts distributions in each part of the dataset.

It should print

DEBUG:root:Labels total: 172
DEBUG:root:Labels seen just once: 37

before shutting down.

Training

Training script main.py uses standard hydra configuration mechanism; the parameters one can modify at the CLI call can be found in configs/....

python3 main.py model.epochs=10

How to cite

If you use the GlyphNet model, please cite the original work:

@article{barucci2021deep,
  title={A Deep Learning Approach to Ancient Egyptian Hieroglyphs Classification},
  author={Barucci, Andrea and Cucci, Costanza and Franci, Massimiliano and Loschiavo, Marco and Argenti, Fabrizio},
  journal={IEEE Access},
  volume={9},
  pages={123438--123447},
  year={2021},
  publisher={IEEE}
}

If you use the dataset, please cite the original work:

@inproceedings{franken2013automatic,
  title={Automatic Egyptian hieroglyph recognition by retrieving images as texts},
  author={Franken, Morris and van Gemert, Jan C},
  booktitle={Proceedings of the 21st ACM international conference on Multimedia},
  pages={765--768},
  year={2013}
}

Citing this repository is also appreciated:

@misc{glyphnetpytorch2021alekseev,
  title     = {{alexeyev/glyphnet-pytorch: GlyphNet, PyTorch implementation}},
  author    = {Anton Alekseev}, 
  year      = {2021},
  url       = {https://github.com/alexeyev/glyphnet-pytorch},
  language  = {english}
}

TODO

  • Add a practical usage scenario using data augmentation
  • Add an end-to-end image-to-prediction inference script using a pre-trained GlyphNet model

Notes

glyphnet-pytorch's People

Contributors

alexeyev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.