Skip to content

edoardotavassi/SCL_deepfake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCL_deepfake

Project from my bachelor's thesis: "Generating Deepfakes with Stable Diffusion, ControlNet and LoRA"

The Pipeline

We can see the entire pipeline used to create deepfakes from a video source. First, the input video is decreased to 12 frames per second. Then, for every frame, by using MediaPipe, we can extrapolate face locations and their structure. Next, the structure created with Face Mesh is processed to generate a mask for the latter application of the diffused image, while the locations detected by Face Detection are used to extract just the face. After this, every cropped image is processed through Stable Diffusion with ControlNet and LoRA. This LoRA model was previously trained to the target face. Finally, every diffused image gets applied to the corresponding input frame and then exported as a video.

The Output

In these two images, we can observe how the software is capable of using SD, ControlNet, and LoRA to create a deepfake of my professor's face onto mine. Obviously, this process is repeated for each frame of the input video.

GUI

The GUI assists the user in interacting with the SD webui API and LoRA training. Simultaneously, it provides all the essential processing features needed to create deepfakes.

About

Project from my bachelor's thesis: "Generating Deepfakes with Stable Diffusion, ControlNet and LoRA"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages