GithubHelp home page GithubHelp logo

hungrygeek16 / unet_artifact_removal Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 311 KB

A CNN-based model that could remove jpeg artifacts from a given jpeg image.

License: MIT License

Python 1.59% Jupyter Notebook 98.41%

unet_artifact_removal's Introduction

unet_artifact_removal

A CNN-based model that could remove jpeg artifacts from a given jpeg image.

  • For details on artifact removal, purpose, model architecture and training, please refer this article.

Training and Inference:

  • Tensorflow version 2.1 is required to execute training and inference of the model.

  • Installation of necessay libraries can be done using the command given below:

pip install -r requirements.txt
  • Download the dataset for training and testing by executing the command given below:
gdown 1Bppd8WW2N7Ji2BVizDINBkbuaZg9lkUY
unzip jpeg_dataset.zip
rm jpeg_dataset.zip
  • Please make sure that the dataset is present in the same directory as the repository.

  • For training, execute command given below:

mkdir outputs
python train.py --steps 20000
  • This will train the model for 20,000 steps and will output a folder named "UNET_month_day_hour_minute_second".

  • Folder named outputs would be created while training that has model's output results at every step.

  • Another folder named __outputs will be given out that has checkpoint and summary details, please do not delete this folder.

  • To check model's performance on some image from the dataset, please execute the command given below:

python infer.py --ckpt_path path/to/UNET_month_day_hour_minute_second/ckpt-20000
  • This will output two image files, one would be the downgraded image and another would be the artifact removed image.

Code and concept Credits: ppooiiuuyh, ShakedDovrat

unet_artifact_removal's People

Contributors

hungrygeek16 avatar

Watchers

 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.