• Stars
    star
    104
  • Rank 330,604 (Top 7 %)
  • Language
    Jupyter Notebook
  • Created about 5 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

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