GithubHelp home page GithubHelp logo

peterwang512 / faldetector Goto Github PK

View Code? Open in Web Editor NEW
1.6K 81.0 234.0 21.21 MB

Code for the paper: Detecting Photoshopped Faces by Scripting Photoshop

Home Page: https://peterwang512.github.io/FALdetector/

License: Apache License 2.0

Python 98.22% Shell 1.78%

faldetector's Introduction

Detecting Photoshopped Faces by Scripting Photoshop
[Project Page] [Paper]

Sheng-Yu Wang1, Oliver Wang2, Andrew Owens1, Richard Zhang2, Alexei A. Efros1.
UC Berkeley1, Adobe Research2.
In ICCV, 2019.

9/30/2019 Update The code and model weights have been updated to correspond to the v2 of our paper. Note that the global classifer architecture is changed from resnet-50 to drn-c-26.

1/19/2019 Update Dataset for evaluation is released! The link is here.

(0) Disclaimer

Welcome! Computer vision algorithms often work well on some images, but fail on others. Ours is like this too. We believe our work is a significant step forward in detecting and undoing facial warping by image editing tools. However, there are still many hard cases, and this is by no means a solved problem.

This is partly because our algorithm is trained on faces warped by the Face-aware Liquify tool in Photoshop, and will thus work well for these types of images, but not necessarily for others. We call this the "dataset bias" problem. Please see the paper for more details on this issue.

While we trained our models with various data augmentation to be more robust to downstream operations such as resizing, jpeg compression and saturation/brightness changes, there are many other retouches (e.g. airbrushing) that can alter the low-level statistics of the images to make the detection a really hard one.

Please enjoy our results and have fun trying out our models!

(1) Setup

Install packages

  • Install PyTorch (pytorch.org)
  • pip install -r requirements.txt

Download model weights

  • Run bash weights/download_weights.sh

(2) Run our models

Global classifer

python global_classifier.py --input_path examples/modified.jpg --model_path weights/global.pth

Local Detector

python local_detector.py --input_path examples/modified.jpg --model_path weights/local.pth --dest_folder out/

Note: Our models are trained on faces cropped by the dlib CNN face detector. Although in both scripts we included the --no_crop option to run the models without face crops, it is used for images with already cropped faces.

(3) Dataset

A validation set consisting of 500 original and 500 modified images each from Flickr and OpenImage can be downloaded here. Due to licensing issues, the released validation set is different from the set we evaluate in the paper, and the training set will not be released.

In the zip file, original faces are in the original folder, and modified faces are in the modified folder. For reference, the reference folder contains the same faces in the modified folder, but those are before modification (original).

To evaluate the dataset, run:

# Download the dataset
cd data
bash download_valset.sh
cd ..
# Run evaluation script. Model weights need to be downloaded.
python eval.py --dataroot data --global_pth weights/global.pth --local_pth weights/local.pth --gpu_id 0

The following are the models' performances on the released set:

Accuracy AP PSNR Increase
93.9% 98.9% +2.66

(A) Acknowledgments

This repository borrows partially from the pytorch-CycleGAN-and-pix2pix, drn, and the PyTorch torchvision models repositories.

(B) Citation, Contact

If you find this useful for your research, please consider citing this bibtex. Please contact Sheng-Yu Wang <sheng-yu_wang at berkeley dot edu> with any comments or feedback.

faldetector's People

Contributors

ke-zhang-rd avatar miraclewkf avatar peterwang512 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

faldetector's Issues

RuntimeError with numpy.ndarray

Thanks for your sharing the FALdetector code and careful installation instructions.
However, one RuntimeError occurs when excluding the '--no_crop' options.

dets = cnn_face_detector(im, 0)
RuntimeError: Expected writable numpy.ndarray with shape set.

What do I need to do to get it to work? Thanks : )

local.pth

I am very interested in your code.
is local.pth not released?

EOFError: Ran out of input

python global_classifier.py --input_path ./examples/modified.jpg --model_path ./weights/global.pth --gpu_id 1

Traceback (most recent call last): File "global_classifier.py", line 64, in <module> model = load_classifier(args.model_path, args.gpu_id) File "global_classifier.py", line 19, in load_classifier state_dict = torch.load(model_path, map_location='cpu') File "/data/weidongming/Tools/miniconda3/envs/torch/lib/python3.6/site-packages/torch/serialization.py", line 387, in load return _load(f, map_location, pickle_module, **pickle_load_args) File "/data/weidongming/Tools/miniconda3/envs/torch/lib/python3.6/site-packages/torch/serialization.py", line 564, in _load magic_number = pickle_module.load(f, **pickle_load_args) EOFError: Ran out of input
Could help me?

Sensor noise obfuscation support?

I came across an article for this technology on Reddit, and conveniently enough I am actually performing research that performs tasks that are very similar using a combination of sensor noise and steganalysis.

What really intrigued me about this though, is that a few years ago I actually helped write a paper on the obfuscation of image manipulation detection and device camera identification based on Photo Response Non-Uniformity and Fixed pattern noise. With that said, I was curious as to if these elements were considered in your research?

Millions of issues

Not sure if my PC is void of the requirements but I've had issues with installing dlib, then CMake, then Visual Studio 14.0...

Requirement already satisfied: dlib in c:\python36\lib\site-packages (from -r requirements.txt (line 1)) (19.7.0) Collecting mmcv Using cached https://files.pythonhosted.org/packages/9b/7c/f6c20b54bb22d47cb87cc48ee626aab290584458e38bc1bbb76c868afc82/mmcv-0.2.15.tar.gz Collecting scipy Using cached https://files.pythonhosted.org/packages/f7/67/382062863c4c4a6cfd8f8417a323bafcf3cd0db2a18fff32da725b68f34c/scipy-1.4.0-cp36-cp36m-win_amd64.whl Requirement already satisfied: numpy in c:\python36\lib\site-packages (from -r requirements.txt (line 4)) (1.17.4) Collecting matplotlib Using cached https://files.pythonhosted.org/packages/44/fb/132de6a4b803d8ce909a89043b7d3f775f64e0a39398fc98c02e3e144b61/matplotlib-3.1.2-cp36-cp36m-win_amd64.whl Requirement already satisfied: opencv_python in c:\python36\lib\site-packages (from -r requirements.txt (line 6)) (4.1.2.30) Requirement already satisfied: Pillow in c:\python36\lib\site-packages (from -r requirements.txt (line 7)) (6.2.1) Requirement already satisfied: torch>=0.4.0 in c:\python36\lib\site-packages (from -r requirements.txt (line 8)) (1.3.1) Requirement already satisfied: torchvision in c:\python36\lib\site-packages (from -r requirements.txt (line 9)) (0.4.2) Requirement already satisfied: pyyaml in c:\python36\lib\site-packages (from mmcv->-r requirements.txt (line 2)) (5.2) Requirement already satisfied: six in c:\python36\lib\site-packages (from mmcv->-r requirements.txt (line 2)) (1.11.0) Requirement already satisfied: addict in c:\python36\lib\site-packages (from mmcv->-r requirements.txt (line 2)) (2.2.1) Requirement already satisfied: requests in c:\python36\lib\site-packages (from mmcv->-r requirements.txt (line 2)) (2.18.4) Collecting cycler>=0.10 Using cached https://files.pythonhosted.org/packages/f7/d2/e07d3ebb2bd7af696440ce7e754c59dd546ffe1bbe732c8ab68b9c834e61/cycler-0.10.0-py2.py3-none-any.whl Collecting python-dateutil>=2.1 Using cached https://files.pythonhosted.org/packages/d4/70/d60450c3dd48ef87586924207ae8907090de0b306af2bce5d134d78615cb/python_dateutil-2.8.1-py2.py3-none-any.whl Collecting kiwisolver>=1.0.1 Using cached https://files.pythonhosted.org/packages/64/46/75ab48386cbd56065f5542360562be524ad599911455b6d95520cb118613/kiwisolver-1.1.0-cp36-none-win_amd64.whl Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 Using cached https://files.pythonhosted.org/packages/c0/0c/fc2e007d9a992d997f04a80125b0f183da7fb554f1de701bbb70a8e7d479/pyparsing-2.4.5-py2.py3-none-any.whl Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\python36\lib\site-packages (from requests->mmcv->-r requirements.txt (line 2)) (3.0.4) Requirement already satisfied: certifi>=2017.4.17 in c:\python36\lib\site-packages (from requests->mmcv->-r requirements.txt (line 2)) (2018.4.16) Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\python36\lib\site-packages (from requests->mmcv->-r requirements.txt (line 2)) (1.22) Requirement already satisfied: idna<2.7,>=2.5 in c:\python36\lib\site-packages (from requests->mmcv->-r requirements.txt (line 2)) (2.6) Requirement already satisfied: setuptools in c:\python36\lib\site-packages (from kiwisolver>=1.0.1->matplotlib->-r requirements.txt (line 5)) (39.0.1) Installing collected packages: mmcv, scipy, cycler, python-dateutil, kiwisolver, pyparsing, matplotlib Running setup.py install for mmcv ... error ERROR: Command errored out with exit status 1: command: 'c:\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Cosco\\AppData\\Local\\Temp\\pip-install-41z3or_2\\mmcv\\setup.py'"'"'; __file__='"'"'C:\\Users\\Cosco\\AppData\\Local\\Temp\\pip-install-41z3or_2\\mmcv\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Cosco\AppData\Local\Temp\pip-record-_vel_3tx\install-record.txt' --single-version-externally-managed --compile cwd: C:\Users\Cosco\AppData\Local\Temp\pip-install-41z3or_2\mmcv\ Complete output (96 lines): running install running build running build_py creating build creating build\lib.win-amd64-3.6 creating build\lib.win-amd64-3.6\mmcv copying mmcv\opencv_info.py -> build\lib.win-amd64-3.6\mmcv copying mmcv\version.py -> build\lib.win-amd64-3.6\mmcv copying mmcv\__init__.py -> build\lib.win-amd64-3.6\mmcv creating build\lib.win-amd64-3.6\mmcv\arraymisc copying mmcv\arraymisc\quantization.py -> build\lib.win-amd64-3.6\mmcv\arraymisc copying mmcv\arraymisc\__init__.py -> build\lib.win-amd64-3.6\mmcv\arraymisc creating build\lib.win-amd64-3.6\mmcv\cnn copying mmcv\cnn\alexnet.py -> build\lib.win-amd64-3.6\mmcv\cnn copying mmcv\cnn\resnet.py -> build\lib.win-amd64-3.6\mmcv\cnn copying mmcv\cnn\vgg.py -> build\lib.win-amd64-3.6\mmcv\cnn copying mmcv\cnn\weight_init.py -> build\lib.win-amd64-3.6\mmcv\cnn copying mmcv\cnn\__init__.py -> build\lib.win-amd64-3.6\mmcv\cnn creating build\lib.win-amd64-3.6\mmcv\fileio copying mmcv\fileio\io.py -> build\lib.win-amd64-3.6\mmcv\fileio copying mmcv\fileio\parse.py -> build\lib.win-amd64-3.6\mmcv\fileio copying mmcv\fileio\__init__.py -> build\lib.win-amd64-3.6\mmcv\fileio creating build\lib.win-amd64-3.6\mmcv\image copying mmcv\image\io.py -> build\lib.win-amd64-3.6\mmcv\image copying mmcv\image\__init__.py -> build\lib.win-amd64-3.6\mmcv\image creating build\lib.win-amd64-3.6\mmcv\parallel copying mmcv\parallel\collate.py -> build\lib.win-amd64-3.6\mmcv\parallel copying mmcv\parallel\data_container.py -> build\lib.win-amd64-3.6\mmcv\parallel copying mmcv\parallel\data_parallel.py -> build\lib.win-amd64-3.6\mmcv\parallel copying mmcv\parallel\distributed.py -> build\lib.win-amd64-3.6\mmcv\parallel copying mmcv\parallel\scatter_gather.py -> build\lib.win-amd64-3.6\mmcv\parallel copying mmcv\parallel\_functions.py -> build\lib.win-amd64-3.6\mmcv\parallel copying mmcv\parallel\__init__.py -> build\lib.win-amd64-3.6\mmcv\parallel creating build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\checkpoint.py -> build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\dist_utils.py -> build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\log_buffer.py -> build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\parallel_test.py -> build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\priority.py -> build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\runner.py -> build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\utils.py -> build\lib.win-amd64-3.6\mmcv\runner copying mmcv\runner\__init__.py -> build\lib.win-amd64-3.6\mmcv\runner creating build\lib.win-amd64-3.6\mmcv\utils copying mmcv\utils\config.py -> build\lib.win-amd64-3.6\mmcv\utils copying mmcv\utils\misc.py -> build\lib.win-amd64-3.6\mmcv\utils copying mmcv\utils\path.py -> build\lib.win-amd64-3.6\mmcv\utils copying mmcv\utils\progressbar.py -> build\lib.win-amd64-3.6\mmcv\utils copying mmcv\utils\timer.py -> build\lib.win-amd64-3.6\mmcv\utils copying mmcv\utils\__init__.py -> build\lib.win-amd64-3.6\mmcv\utils creating build\lib.win-amd64-3.6\mmcv\video copying mmcv\video\io.py -> build\lib.win-amd64-3.6\mmcv\video copying mmcv\video\optflow.py -> build\lib.win-amd64-3.6\mmcv\video copying mmcv\video\processing.py -> build\lib.win-amd64-3.6\mmcv\video copying mmcv\video\__init__.py -> build\lib.win-amd64-3.6\mmcv\video creating build\lib.win-amd64-3.6\mmcv\visualization copying mmcv\visualization\color.py -> build\lib.win-amd64-3.6\mmcv\visualization copying mmcv\visualization\image.py -> build\lib.win-amd64-3.6\mmcv\visualization copying mmcv\visualization\optflow.py -> build\lib.win-amd64-3.6\mmcv\visualization copying mmcv\visualization\__init__.py -> build\lib.win-amd64-3.6\mmcv\visualization creating build\lib.win-amd64-3.6\mmcv\fileio\handlers copying mmcv\fileio\handlers\base.py -> build\lib.win-amd64-3.6\mmcv\fileio\handlers copying mmcv\fileio\handlers\json_handler.py -> build\lib.win-amd64-3.6\mmcv\fileio\handlers copying mmcv\fileio\handlers\pickle_handler.py -> build\lib.win-amd64-3.6\mmcv\fileio\handlers copying mmcv\fileio\handlers\yaml_handler.py -> build\lib.win-amd64-3.6\mmcv\fileio\handlers copying mmcv\fileio\handlers\__init__.py -> build\lib.win-amd64-3.6\mmcv\fileio\handlers creating build\lib.win-amd64-3.6\mmcv\image\transforms copying mmcv\image\transforms\colorspace.py -> build\lib.win-amd64-3.6\mmcv\image\transforms copying mmcv\image\transforms\geometry.py -> build\lib.win-amd64-3.6\mmcv\image\transforms copying mmcv\image\transforms\normalize.py -> build\lib.win-amd64-3.6\mmcv\image\transforms copying mmcv\image\transforms\resize.py -> build\lib.win-amd64-3.6\mmcv\image\transforms copying mmcv\image\transforms\__init__.py -> build\lib.win-amd64-3.6\mmcv\image\transforms creating build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\checkpoint.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\closure.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\hook.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\iter_timer.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\lr_updater.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\memory.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\optimizer.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\sampler_seed.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks copying mmcv\runner\hooks\__init__.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks creating build\lib.win-amd64-3.6\mmcv\runner\hooks\logger copying mmcv\runner\hooks\logger\base.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks\logger copying mmcv\runner\hooks\logger\pavi.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks\logger copying mmcv\runner\hooks\logger\tensorboard.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks\logger copying mmcv\runner\hooks\logger\text.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks\logger copying mmcv\runner\hooks\logger\wandb.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks\logger copying mmcv\runner\hooks\logger\__init__.py -> build\lib.win-amd64-3.6\mmcv\runner\hooks\logger creating build\lib.win-amd64-3.6\mmcv\video\optflow_warp copying mmcv\video\optflow_warp\__init__.py -> build\lib.win-amd64-3.6\mmcv\video\optflow_warp running build_ext cythoning ./mmcv/video/optflow_warp/flow_warp_module.pyx to ./mmcv/video/optflow_warp\flow_warp_module.cpp c:\users\cosco\appdata\local\temp\pip-install-41z3or_2\mmcv\.eggs\cython-0.29.14-py3.6-win-amd64.egg\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\Cosco\AppData\Local\Temp\pip-install-41z3or_2\mmcv\mmcv\video\optflow_warp\flow_warp_module.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'mmcv._ext' extension error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools ---------------------------------------- ERROR: Command errored out with exit status 1: 'c:\python36\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Cosco\\AppData\\Local\\Temp\\pip-install-41z3or_2\\mmcv\\setup.py'"'"'; __file__='"'"'C:\\Users\\Cosco\\AppData\\Local\\Temp\\pip-install-41z3or_2\\mmcv\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Cosco\AppData\Local\Temp\pip-record-_vel_3tx\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.

experience with body distortion

Hey,
you explicitly mention that you only evaluated faces.
I wonder if you are already trying to come up with comparable software for distortions that focus on the human body, or if you possibly also have tried it with this DNN.

Possible to make this setup and running at Google Colab?

Hi, thanks for making this great model!

With the recent meme "dame da ne" using deep fake to create face swap video, and someone set it up on Google Colab to make it easy to use for people like who have little to no coding experience. I wonder is possible for FALdetector to achieve the same thing?

Issue Downloading the weights: 'ERROR cannot verify www.dropbox.com's certificate...'

When I type the bash weights/download_weights.sh
from git on windows 10 while inside the FALdetector folder as the current directory , I see the following error:

Connecting to www.dropbox.com|162.125.6.1|:443... connected.
ERROR: cannot verify www.dropbox.com's certificate, issued by /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 Extended Validation Server CA': Unable to locally verify the issuer's authority. To connect to www.dropbox.com insecurely, use --no-check-certificate'.
Unable to establish SSL connection.

Is there something easy I'm missing here?

Will the code be published?

Was just wondering if this code will be published? The project page linked here for the code, but the repository is empty.

how to train the model

Hello,I'm interested in your work.And I want to know how to train the model,could you share the code with me.Thanks.

questions about model weights?

Does the .pth file in model weights save the network structure and model parameters or only the trained model parameters?
By the way, do u think it is feasible to convert this pytorch model into a tensorflow model?
Sorry...I am new here and do need help...thank u!

A Runtime Error

When I use the command in readme,I got this:
Traceback (most recent call last):
File "local_detector.py", line 58, in
faces = face_detection(img_path, verbose=False)
File "/root/Code/FALdetector/utils/tools.py", line 113, in face_detection
dets = cnn_face_detector(im, 0)
RuntimeError: Expected writable numpy.ndarray with shape set.

It looks like blib throw this error ,and i’m Not familiar with blib.
I try to use cv2.imread load image,it works some time,but not always,I can’t fix it.
Hope Help,thx.

How to run?

Hello!

I am new to python as in, I know nothing. I was able to follow your instructions all the way through and successfully installed everything as instructed.

My question is what now? How do you use this tool in Photoshop? Thanks in advance!

> Hi,when I trying to use on colab in step5:

Hi,when I trying to use on colab in step5:
%cd it shows: /root
I have already connect to my google drive
how to chance to folder FALdetector?

Type that code:
import os
os.chdir('/content/drive/My Drive/folder name')
after that, you can confirm it worked with the pwd command like this: !pwd

in step 3: use %cd /content/drive/My\ Drive/ and start to clone github
after clone: use %cd FALdetector to go to folder

Originally posted by @hirusmeo in #25 (comment)

ValueError: cannot set WRITEABLE flag to True of this array

After #4, another error appears.

Traceback (most recent call last):
File "global_classifier.py", line 65, in
prob = classify_fake(model, args.input_path, args.no_crop)
File "global_classifier.py", line 36, in classify_fake
faces = face_detection(img_path, verbose=False)
File "F:\Study\Fun\AntiPs\FALdetector-master\utils\tools.py", line 108, in face_detection
im.setflags(write=True)
ValueError: cannot set WRITEABLE flag to True of this array

Creating dataset

How you collected the dataset for training image classifier ? Or is it classifier model ? can you share your dataset ?

Request additional information for paper replication

I'd like to proceed with this paper as a term project.
Please upload additional data and code used to write the paper.

  1. test data sets used in the paper
    (unmanipulated 50ea + maniputated 50ea)
    => Comparison of results after evaluation of the same data usage as the paper

  2. Photoshop-enabled scripts used to create a manipulated dataset
    => Generate additional images using scripts other than the validation data you provided

  3. 2AFC calculation logic(code) among the global classification evaluation items in the paper

  4. EPE, IOU-3 calculation logic(code) among the local evaluation items in the paper

Please give me a positive reply.
Thank you..!!

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.