Giter Site home page Giter Site logo

mobile-chicken / watermark-removal Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zuruoke/watermark-removal

0.0 0.0 0.0 42 KB

a machine learning image inpainting task that instinctively removes watermarks from image indistinguishable from the ground truth image

Python 100.00%

watermark-removal's Introduction

Watermark-Removal

version pytorch license

An open source project that uses a machine learning based image inpainting methodology to remove watermark from images which is totally indistinguishable from the ground truth version of the image.

This project was inspired by the Contextual Attention (CVPR 2018) and Gated Convolution (ICCV 2019 Oral).

And also a shoutout to Chu-Tak Li for his Medium article series that really gave me a deep insight into the image inpainting papers stated above

Run

  • use Google colab

  • First of all, clone this repo

    !git clone https://github.com/zuruoke/watermark-removal
    
  • Change Directory to the repo

    !cd watermark-removal
    
  • Since Google Colab uses the latest Tensorflow 2x version and this project uses 1.15.0, downgrade to Tensorflow 1.15.0 version and restart the runtime, (although the new version of Google Colab does not need you to restart the runtime).

    !pip install tensorflow==1.15.0
    
  • Install tensorflow toolkit neuralgym.

    !pip install git+https://github.com/JiahuiYu/neuralgym
    
  • Download the model dirs using this link and put it under model/ (rename checkpoint.txt to checkpoint because sometimes google drive automatically adds .txt after download)

And you're all Set!!

  • Now remove the watermark on the image by runing the main.py file

    !python main.py --image path-to-input-image --output path-to-output-image --checkpoint_dir model/ --watermark_type istock
    

Citing

@article{yu2018generative,
  title={Generative Image Inpainting with Contextual Attention},
  author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},
  journal={arXiv preprint arXiv:1801.07892},
  year={2018}
}

@article{yu2018free,
  title={Free-Form Image Inpainting with Gated Convolution},
  author={Yu, Jiahui and Lin, Zhe and Yang, Jimei and Shen, Xiaohui and Lu, Xin and Huang, Thomas S},
  journal={arXiv preprint arXiv:1806.03589},
  year={2018}
}

watermark-removal's People

Contributors

zuruoke 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.