Git Product home page Git Product logo

face_xray's Introduction

Face_Xray

A 3rd-party implemented Face-Xray for deepfake detection.

开发说明

  • 生成器 dataset.py
    • 人脸检测器封装 xxDetector
      • Dlib
    • 关键点回归器封装 xxRegressor
      • Dlib
      • HR
        • fixed 类型人脸框全局赋值
    • 生成关键点功能类 LMGenerator
      • 将 Detector/Regressor 功能与 Generator 解耦
    • 贴合功能类 Blender
      • color_transfer: 基于mask迁移
      • Random_Deform 改进:随机缩放+向下抖动
  • 判别器

预训练模型

百度网盘链接:https://pan.baidu.com/s/1N3NhdxzAWgHbfkcb25nUmA 提取码:uvc8

训练日志

  • 4.20训练
    • 训练集:数据尺寸400*400,正负数据比=1:3
      • data: 15000张基于celeb数据集制作的混合人脸 + 5000张与混合人脸无重复背景的真实数据
      • label: data对应的facexray图
    • 验证集:数据尺寸400*400,正负数据比≈1:3
      • data: 5000张基于celeb数据集制作的混合人脸 + 2000张与混合人脸无重复背景的真实数据
      • label: data对应的facexray图
    • 训练相关参数及结果:百度网盘链接:https://pan.baidu.com/s/1gEs3uOP1faoimaySAhgjOw 提取码:njis
      • 目录:epoch100、200、400、500的.pth; log; tensorboard文件
    • 存在问题:loss、acc曲线表现得很正常,在epoch20左右显示已收敛,但是测试集却无法输出如同facexray的人脸轮廓图,只是类似于表明有两种噪声的图
    • 原因及解决方案
      • loss过早收敛却没学到该学的:loss太小?加大loss比例 —— loss=loss*100

face_xray's People

Contributors

jerry4h avatar pattaro avatar

Stargazers

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

Watchers

 avatar  avatar

face_xray's Issues

model未被定义、数据集

(pytorch) D:\Python\Code\DF-DC\Face X-Ray\Face_Xray-2\Net\Net_gpuVer>python valid.py
Traceback (most recent call last):
File "valid.py", line 114, in
main()
File "valid.py", line 65, in main
model = eval('models.' + config.MODEL.NAME + '.get_nnb')(
File "", line 1, in
NameError: name 'models' is not defined

数据问题

D:\Python\Anaconda3\envs\pytorch\python.exe "D:/Python/Code/DF-DC/Face X-Ray/Face_Xray-2/dataset.py"
Traceback (most recent call last):
File "D:/Python/Code/DF-DC/Face X-Ray/Face_Xray-2/dataset.py", line 385, in
blender = Blender(
File "D:/Python/Code/DF-DC/Face X-Ray/Face_Xray-2/dataset.py", line 244, in init
with open(ldmPath, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/mnt/hjr/FF++c23/original/originalC23X100kLm.txt'

Process finished with exit code 1
想问一下这个文件在哪

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.