Skip to content

ry0y4n/face_de_mask

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

face_de_mask on Goole Colab

This repository is a fork of the original face_de_mask with changes to make it compatible with running on Google Colab.

How to Use

  1. Upload the necessary files to Google Drive

    1. Download the folder from this link
    2. Upload the folder to your Google Drive (recommended to put it in MyDrive/)
  2. Run Colab

    Open In Colab

My Changes

The following is the original README


face_de_mask

Evaluation code for : Non-Deterministic Face Mask Removal Based On 3D Priors

Mask removal ability

Mask removal ability

Face editing ability

Face editing ability

Abstract

This paper presents a novel image inpainting framework for face mask removal. Although current methods have demonstrated their impressive ability in recovering damaged face images, they suffer from two main problems: the dependence on manually labeled missing regions and the deterministic result corresponding to each input. The proposed approach tackles these problems by integrating a multi-task 3D face reconstruction module with a face inpainting module. Given a masked face image, the former predicts a 3DMM-based reconstructed face together with a binary occlusion map, providing dense geometrical and textural priors that greatly facilitate the inpainting task of the latter. By gradually controlling the 3D shape parameters, our method generates high-quality dynamic inpainting results with different expressions and mouth movements. Qualitative and quantitative experiments verify the effectiveness of the proposed method.

Requirements

Pre-trained Model

https://drive.google.com/drive/folders/1-th-qJQGGgzWQF2qrAGr8njJ9EBWHGIR?usp=sharing

How to Use

  • Create BFM related files following the instructions of this project
  • Download the pre-trained models and put them in the ckpts folder.
  • Run test.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 83.8%
  • Jupyter Notebook 16.2%