Giter Site home page Giter Site logo

liangcevv / satfl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tansq/satfl

1.0 0.0 0.0 45.46 MB

Self-Adversarial Training Incorporating Forgery Attention for Image Forgery Localization

License: MIT License

Jupyter Notebook 96.73% Python 3.27%

satfl's Introduction

Self-Adversarial Training incorporating Forgery Attention for Image Forgery Localization

This is the official repo for our paper. The source codes and a demo are provided in this repo.

Dirs:
Models-> Source codes of our framework
checkpoints-> The pretrained model fine-tuned on NIST dataset
samples-> Several forged samples and the corresponding masks

1. Dependency

Install the relevant libs according to requirements.txt. Our codes are written in Keras with the TensorFlow backend.

tensorflow==1.14.0
keras==2.3.1

2. Demo

View and run demo.ipynb with Jupyter Notebook. Some examples and demo are provided in demo.ipynb. One may view some samples predicted by our model and run this demo to localize the tampered regions of forged image.

Kindly note that the pretrained model was only fine-funed on NIST dataset. Thus, to obtain more robust performance, one need to train the model on more datasets.

3. Retrain

Modify train.py and load_dataset.py to load new datasets. Run the code for training:

python train.py

4. Visualization

!!!Updated for visulization!!!

To view the feature maps of the CW-HPF and Forgery Attention Module, we provide the code for visulization. Please run the code as follows:

''' python models/vis_code.py '''

satfl's People

Contributors

tansq avatar

Stargazers

 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.