Code Monkey home page Code Monkey logo

shallowdeepfakeslocalization's Introduction

Shallow- and Deep-fake Image Manipulation Localization Using Deep Learning

This is the repository for paper Shallow- and Deep-fake Image Manipulation Localization Using Deep Learning accepted to ICNC 2023.

Datasets

Deepfakes

The deepfake dataset we constructed in Section II.C of our paper can be downloaded here.

Shallowfakes

Shallowfake dataset used in our paper can be downloaded individually via the following links:

Train/Val/Test Subsets

The way (file paths) of how we split the datasets into train/val/test subsets can be downloaded here.

The format of each line in these files is as the following. For authentic images, /path/to/mask.png and /path/to/egde.png are set to string None. We use digit 0 to represent authentic images, and 1 to represent manipulated images.

/path/to/image.png /path/to/mask.png /path/to/egde.png 0/1

Usage

Training

Run the following code to train the network.

For the option --model, to reproduce experiments in Table III of our paper:

  • Use mvssnet for experiments 1/2/3;
  • Use upernet for experiments 4/5/6;
  • Use ours for experiments 7/8/9.
python -u train_torch.py --paths_file /path/to/train.txt --val_paths_file /path/to/val.txt --model {mvssnet, upernet, ours}

Testing

Run the following code to evaluate the network.

Trained models for experiments in Table III of our paper can be found in the following links: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9.

python -u evaluate.py --paths_file /path/to/test.txt --load_path /path/to/trained/model.path --model {mvssnet, upernet, ours}

shallowdeepfakeslocalization's People

Contributors

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