Code Monkey home page Code Monkey logo

forgery_localization_hled's Introduction

Localization of Image Forgeries

This project presents a framework to localize the image manipulation from an image. The network employs resampling features, Long-Short Term Memory (LSTM) cells, and encoder-decoder network in order to segment out manipulated regions from an image.

Data

We create a large dataset by splicing different objects obtained from MS-COCO dataset into the images of DRESDEN benchmark. Please check "synthetic_data" folder for more details.

Model

Model can be found in "./model" folder. Please note that the given model is obtained by finetuning the base model with NIST data. The base model is trained on synthesized data.

Resampling Features

The codes for extracting resampling features can be found on "Radon" folder. Please change the input and output directory for your own dataset. Following is the command to extract the resampling features.

python extract_resamp_feat.py

In this code, the images are stored in hdf5 format. Please note that the package "pyfftw" are required to be installed before running the script. Please use the following command to install the package.

sudo pip install pyfftw

Train

First, the data needs to be prepared either hdf5 format or any other formats. The training code needs to be modified accordingly. In order to train the model, an image and a corresponding binary mask is required.

python train.py

The model will be stored in the model path.

Test

We provide 8 sample images which will be found on test_data folder in order to demonstrate the output of the network. Please use the following command.

python test.py

The code will automatically generate the binary mask and the heat map of prediction score.

Sample Outputs

Screenshot Screenshot

Citation

Please cite the following paper for reference.

@article{bappy2019hybrid,
  title={Hybrid LSTM and Encoder-Decoder Architecture for Detection of Image Forgeries},
  author={Bappy, Jawadul H and Simons, Cody and Nataraj, Lakshmanan and Manjunath, BS and Roy-Chowdhury, Amit K},
  journal={IEEE Transactions on Image Processing},
  year={2019},
  publisher={IEEE}
}

forgery_localization_hled's People

Contributors

csimo005 avatar jawadbappy avatar

Watchers

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