A palimpsest is a historical manuscript in which the original text (termed undertext) was erased and overwritten with another script in order to recycle the parchment. Here we present our model for palimpsest text reconstruction. Fig.1.Results of Archimedes palimpsest reconstruction.
- Python =>3.5
- Tensorflow 1.12
- To start the inverse network for Archimedes palimpsest:
- Get or train weights for undertext and background generator.
- Set the
RESTOREDPATH_B
to background model file path andRESTOREDPATH_UTB
to undertext model in bash scriptarchi/finv_subgraphs.sh
- Set
LOGDIR
to desired directory for the results - Set the other parameters according to the instruction at the bottom of the file
archi/finv_subgraphs.py
- Run bash script
bash archi/finv_subgraphs.sh
.
- To train the undertext generator:
- Run file
archi/undertext_gen_train.py
, withmode
set to `utb`.
- Run file