Code Monkey home page Code Monkey logo

deep_inpainting_localization's Introduction

Localization of Deep Inpainting Using High-Pass Fully Convolutional Network

This is the implementation of the paper Localization of Deep Inpainting Using High-Pass Fully Convolutional Network (ICCV 2019).

Requirements

  • Python 3
  • Tensorflow >= 1.10.0

Usage

Train

First, prepare the training data so that the images are stored in "xxx/jpg*/xxx/" and the corresponding groundtruth masks are stored in "xxx/msk*/xxx/". Then, run the following command.

python3 hp_fcn.py --data_dir <path_to_the_training_dataset> --logdir <path_to_the directory_for_saving_model_and_log> --mode train

Test

Prepare the testing data in a similar way and run the code as follows.

python3 hp_fcn.py --data_dir <path_to_the_testing_dataset> --logdir <path_to_the directory_where_the_trained_model_is_saved> --mode test

Pretrained checkpoint

The pretrained checkpoint of High-pass FCN is available at: https://drive.google.com/drive/folders/1W1f_piFIiK6JJLIXimr1vtRs8MVYLwjZ?usp=sharing

Note

This repo also includes an implementation of MFCN (mfcn.py):

Ronald Salloum, Yuzhuo Ren, and C.-C. Jay Kuo. Image splicing localization using a multi-task fully convolutional network (MFCN). Journal of Visual Communication and Image Representation, 51:201–209, 2018.

To run the code of MFCN, you should also have the edge masks in "xxx/edg*/xxx/".

Citation

If you use our code please cite:

@InProceedings{Li_2019_ICCV,
    author = {Li, Haodong and Huang, Jiwu},
    title = {Localization of Deep Inpainting Using High-Pass Fully Convolutional Network},
    booktitle = {The IEEE International Conference on Computer Vision (ICCV)},
    pages={8301--8310},
    month = {October},
    year = {2019}
}

Help

If you have any questions, please contact: lihaodong[AT]szu.edu.cn

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.