AI 的逆襲, 眼⾒見廓真的為憑嗎?
台灣資安⼤夨會 iThome CYBERSEC 2019 Turkey & Melody
AI iThome CYBERSEC 2019 - - PowerPoint PPT Presentation
AI iThome CYBERSEC 2019 Turkey & Melody ABOUT US Turkey Melody HITCON GIRLS HITCON
台灣資安⼤夨會 iThome CYBERSEC 2019 Turkey & Melody
台灣駭客協會 秘書長 HITCON GIRLS 共同創辦⼈亻 台灣駭客協會 專案經理痢 HITCON GIRLS 成員
2
3
4
5
named “DeepFakes” announce the tool on Reddit Community of developers.
utilizes deep learning to recognize and swap faces in pictures and videos.
5
6
https://github.com/iperov/DeepFaceLab
7
HOW DEEPFAKES WORK?
8
HOW DEEPFAKES WORK?
9
Source Target
10
HOW DEEPFAKES WORK?
Extract image from source video. Extract faces from source and target image.
Manually remove error image.
Model Training
Extract image from target video. Debug & Convert image to mp4
11
HOW DEEPFAKES WORK?
FFmpeg FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.
ffmpeg -i clipname -vf fps=framerate -qscale:v 2 "imagename%04d.jpg" Command_
12
HOW DEEPFAKES WORK?
(Ref: Facial landmarks with dlib, OpenCV, and Python)
Divided a face into the following areas:
13
HOW DEEPFAKES WORK?
(Ref: Real-Time Face Pose Estimation )
14
HOW DEEPFAKES WORK?
15
HOW DEEPFAKES WORK?
(Ref: One Millisecond Face Alignment with an Ensemble of Regression Trees)
16
HOW DEEPFAKES WORK?
17
HOW DEEPFAKES WORK?
18
HOW DEEPFAKES WORK?
19
HOW DEEPFAKES WORK?
(Ref: https://deepfakes.com.cn/)
20
HOW DEEPFAKES WORK?
(Ref: https://deepfakes.com.cn/)
21
HOW DEEPFAKES WORK?
(Ref: https://deepfakes.com.cn/)
22
HOW DEEPFAKES WORK?
23
HOW DEEPFAKES WORK?
Train 越久效果越好!
24
HOW DEEPFAKES WORK?
Debug Mode
Use predicted mask? 1 Erosion (-100 to +100): (default = 0) 1 Seamless Erosion (0 to 40): (default = 0) 20 Blur (-200 to +200): (default = 0) 40 Hist-match threshold (0 to 255): (default = 255) default Face Scale (-50 to +50): (default = 0) default Transfer Color from predicted face? (LCT/RCT/no): (default = no) RCT Degrade Color Power of Final Image: (default = 0) default
25
HOW DEEPFAKES WORK?
Debug Mode
Use predicted mask? 1 Erosion (-100 to +100): (default = 0) 1 Seamless Erosion (0 to 40): (default = 0) 20 Blur (-200 to +200): (default = 0) 40 Hist-match threshold (0 to 255): (default = 255) default Face Scale (-50 to +50): (default = 0) default Transfer Color from predicted face? (LCT/RCT/no): (default = no) RCT Degrade Color Power of Final Image: (default = 0) default
26
HOW DEEPFAKES WORK?
Debug Mode
Use predicted mask? 1 Erosion (-100 to +100): (default = 0) 1 Seamless Erosion (0 to 40): (default = 0) 20 Blur (-200 to +200): (default = 0) 40 Hist-match threshold (0 to 255): (default = 255) default Face Scale (-50 to +50): (default = 0) default Transfer Color from predicted face? (LCT/RCT/no): (default = no) RCT Degrade Color Power of Final Image: (default = 0) default
27
HOW DEEPFAKES WORK?
Debug Mode
Use predicted mask? 1 Erosion (-100 to +100): (default = 0) 1 Seamless Erosion (0 to 40): (default = 0) 20 Blur (-200 to +200): (default = 0) 40 Hist-match threshold (0 to 255): (default = 255) default Face Scale (-50 to +50): (default = 0) default Transfer Color from predicted face? (LCT/RCT/no): (default = no) RCT Degrade Color Power of Final Image: (default = 0) default
28
HOW DEEPFAKES WORK?
Debug Mode
Use predicted mask? 1 Erosion (-100 to +100): (default = 0) 1 Seamless Erosion (0 to 40): (default = 0) 20 Blur (-200 to +200): (default = 0) 40 Hist-match threshold (0 to 255): (default = 255) default Face Scale (-50 to +50): (default = 0) default Transfer Color from predicted face? (LCT/RCT/no): (default = no) RCT Degrade Color Power of Final Image: (default = 0) default
29
HOW DEEPFAKES WORK?
Debug Mode
Use predicted mask? 1 Erosion (-100 to +100): (default = 0) 1 Seamless Erosion (0 to 40): (default = 0) 20 Blur (-200 to +200): (default = 0) 40 Hist-match threshold (0 to 255): (default = 255) default Face Scale (-50 to +50): (default = 0) default Transfer Color from predicted face? (LCT/RCT/no): (default = no) RCT Degrade Color Power of Final Image: (default = 0) default
30
HOW DEEPFAKES WORK?
Debug Mode
Use predicted mask? 1 Erosion (-100 to +100): (default = 0) 1 Seamless Erosion (0 to 40): (default = 0) 20 Blur (-200 to +200): (default = 0) 40 Hist-match threshold (0 to 255): (default = 255) default Face Scale (-50 to +50): (default = 0) default Transfer Color from predicted face? (LCT/RCT/no): (default = no) RCT Degrade Color Power of Final Image: (default = 0) default
31
HOW DEEPFAKES WORK?
ffmpeg -f image2 -i imagename%04d.jpg -vcodec libx264 -crf 15 -pix_fmt yuv420p Command_
32
(Downlink: https://github.com/iperov/DeepFaceLab)
HOW DEEPFAKES WORK?
33
34
HOW DEEPFAKES WORK?
實測跑評:RTX 2080 ⼤夨約需跑 6 個⼩尐時以上會有不錯的成果
作者跪求 RTX 2080 Ti 中 XD
35
HOW DEEPFAKES WORK?
#讓 AI 聰明前 先飽滿你的⼝古袋
36
Source Target
37
38
(Link:https://youtu.be/yfsdZ5gLuOo)
39
CAN YOU TELL A FAKE VOICE FROM A REAL ONE?
40
(Ref: https://lyrebird.ai/)
train its AI models
Record & Upload voice samples Train by DL Framework
Digital Voice Generated Optput audio of requested dialog (Ref: https://lyrebird.ai/)
41
This is my honored to talk to everyone here. However, can you trust your eyes and ears to perceive reality? Machine learning can artificially mimic natural sounds to create digital voice. Just like me!
42
43
(Ref: https://lyrebird.ai/)
44
45
Why do you believe what I am telling you now?
46
Create images and voices from the past.
47
(Ref:apple) (Ref:Fast & Furious 6)
(Ref:https://www.youtube.com/watch?v=5iZuffHPDAw)
49
FAKE VIDEO DETECT SOLUTION
50
FAKE VIDEO DETECT SOLUTION
Create Hashing Blackchan record submitt
51
52
53