DocUnet.pytorch
This is a pytorch implementation of DocUNet: Document Image Unwarping via A Stacked U-Net
Install / Use
/learn @teresasun/DocUnet.pytorchREADME
DocUNet: Document Image Unwarping via A Stacked U-Net
how to run
- prepare some scans and background images
- use flow scipt to generated some images and labels
python3 data_generator/generator.py -i scan_images_path -b background_images_path -o output_path
- change
trainrootinconfig.py - use flow scipt to train
python3 train.py
how to eval
- change
model_pathandimg_pathinpredict.py - use flow scipt to train
python3 predict.py
generated images sample

result
result on training data
left:input, right output

result on really data
left:output, right input

View on GitHub80/100
Security Score
Audited on Mar 11, 2026
No findings
