Coder Social home page Coder Social logo

docproj's Introduction

The Flatteners

Project Page

Deep Learning U-Net Model Reference

DocProj Project Page

This work was heavily influenced by the DocProj project. Please checkout their code at the link above.

Dependencies

  • Python3
  • Windows (and Linux for Dataset Generation)
  • CUDA and CuDNN

Generate Your Own Dataset

Generating your own dataset is a great way to train an existing model. Please follow the instructiosn on the main page for dataset generation.

Generate Data-Set Patches

Please run the following pre-processing commands to create local and global patches of your data-set. These patches are necessary inputs for model training. Please change the arguments as necessary for your implementation.

python local_patch.py

python global_patch.py

Training

Please run the follwong command for training, and change the arguments as necessary for your implementation.

python train.py

Evaluate an Image with a Model

Please run the following four command to evaluate the model. An example is given in training.sh. Additionally, the Graphcut.exe application can be found here.

python eval.py --imgPath [input_image.png] --modelPath [model_to_save.pkl] --saveImgPath [new_resized_image.png] --saveFlowPath [myflow.npy]

Graphcut.exe [myflow.npy] [my_new_flow.npy]

python resampling.py --img_path [new_resized_image.png] --flow_path [my_new_flow.npy]

python.exe eval_illumination.py --imgPath [resamplling_result.png] --savPath [output.png] --modelPath [model_illNet.pkl]

Contact

Arnav Sharma - [email protected]

Austin Jeffries - [email protected]

Ali Badreddine - [email protected]

docproj's People

Contributors

xiaoyu258 avatar ajeffries0492 avatar aishmittal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.