Skip to content

This is a pytorch implementation of DocUNet: Document Image Unwarping via A Stacked U-Net

Notifications You must be signed in to change notification settings

teresasun/docUnet.pytorch

Repository files navigation

DocUNet: Document Image Unwarping via A Stacked U-Net

paper zhihu

how to run

  1. prepare some scans and background images
  2. 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
  1. change trainroot in config.py
  2. use flow scipt to train
python3 train.py

how to eval

  1. change model_path and img_path in predict.py
  2. use flow scipt to train
python3 predict.py

generated images sample

data

result

result on training data

left:input, right output result1

result on really data

left:output, right input result1

About

This is a pytorch implementation of DocUNet: Document Image Unwarping via A Stacked U-Net

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages