Skip to content

Code that implements the Quaternion Generative Adversarial Network.

Notifications You must be signed in to change notification settings

sfikas/quaternion-gan

Repository files navigation

Paper code for "Quaternion Generative Adversarial Networks for Inscription Detection in Byzantine Monuments"

This repository contains source code for the paper " Quaternion Generative Adversarial Networks for Inscription Detection in Byzantine Monuments " by Sfikas et al. (PatReCH 2020).

QGAN results

Requirements

Use pip3 install -r requirements.txt (after creating a virtual environment optionally, followed by pip3 install --upgrade pip). Subsequently, please follow first the instructions in https://github.com/Orkis-Research/Pytorch-Quaternion-Neural-Networks to install the Quaternion Convolution layer code.

Dataset

The data used for the paper may be downloaded from this google drive link. Unzip the tgz file so that a fixtures/bessarion-midi folder is created under the repository home directory.

Code execution

The main executable is quaternion-gan.py, which will train the model using data found in the fixtures/ folder. You can use the code by supplying your own data, which should come in pairs of image (png) and annotation (npz) files (see BessarionMini class for details).

If you find the paper and/or the code useful, please cite the paper using the following bibtex code:

@inproceedings{sfikas2021quaternionGAN,
  title={Quaternion Generative Adversarial Networks for Inscription Detection in Byzantine Monuments},
  author={Sfikas, Giorgos and Giotis, A.P. and Retsinas, George and Nikou, Christophoros},
  booktitle={2^{nd} International Workshop on Pattern Recognition for Cultural Heritage (PatReCH)},
  year={2021}
}

About

Code that implements the Quaternion Generative Adversarial Network.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages