This repository is the implementation of PaddlePaddle-based handwriting removal model.
├── dataloader.py
├── Dataset
├── generate_files.py
├── Log
├── loss.py
├── main.py
├── model.py
├── README.md
├── requirement.txt
├── run.sh
└── utils.py
The environment can be seen in requirement.txt
file.
Running the generate_files.py
to generate file list in dataset directory.
Once the data is well prepared, you can begin training:
python train_segformer.py\
--train 1\
--arch segformer_b2\
--dataRoot 'Your Path'\
If you want to predict the results, run:
python train_segformer.py\
--loadSize 512\
--train 0\
--arch segformer_b2\
--testDataRoot 'Your Path'\
--modelLog 'Your Path'