glyphnet-pytorch
С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.
Science Score: 54.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
✓Academic publication links
Links to: ieee.org -
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.0%) to scientific vocabulary
Keywords
Repository
С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.
Basic Info
Statistics
- Stars: 14
- Watchers: 1
- Forks: 4
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
glyphnet-pytorch
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).
|
|
|
|
|
------------ | ------------- | ------------- | ------------- | ------------- | -------------
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/....
bash
python3 main.py model.epochs=10
How to cite
If you use the GlyphNet model, please cite the original work:
bibtex
@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:
bibtex
@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:
bibtex
@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
- morrisfranken/glyphreader, the source of the Pyramid of Unas data
- Please do not confuse this work with another GlyphNet project training networks to communicate using a visual language
Owner
- Name: Anton Alekseev
- Login: alexeyev
- Kind: user
- Website: https://ai.pdmi.ras.ru/
- Repositories: 52
- Profile: https://github.com/alexeyev
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: Alekseev
given-names: Anton
orcid: https://orcid.org/0000-0001-6456-3329
title: "glyphnet-pytorch"
date-released: 2021-12-19
GitHub Events
Total
- Watch event: 2
Last Year
- Watch event: 2
Issues and Pull Requests
Last synced: 9 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0