Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Face-mask Inpainting (unmasking masked face)

NotificationsYou must be signed in to change notification settings

davidmilsky/Face-Mask_Inpainting

Repository files navigation

screenscreen
screenscreen

This project attempted to achieve the paperA novel GAN-based network for unmasking ofmasked face. The modelis designed to remove the face-mask from facial image and inpaint the left-behind region basedon a novel GAN-network approach.

Training Environment

  • Google Cloud Platform
  • GPU (Nvidia Tesla T4)
  • Python 3.8

Models Architecture

screen

Rather than using the traditional pix2pix U-Net method, in this work the model consists of two main modules,map module andediting module.In the first module, we detect the face-mask object and generate abinary segmentation map for data augmentation. In the second module, we train the modified U-Netwith two discriminators using masked image and binary segmentation map.

Data preparation

In this work, I used around 4k paired images for training map module model, and around 20k images for training editing module model.

Get Started

It is recommended to make anew virtual environment withPython 3.8 and install the dependencies. Following stepscan be taken to download and run the Face-mask inpainting streamlit webapp on local host

Clone the repository

git clone https://github.com/daviddirethucus/Face-Mask_Inpainting.git

Download the trained models

Since it is not permissable to push the model which is larger than 100MB on Github, so we provide a link to download our trained Facemask Inpainting models:Here

The path of the trained models should be located at:

/Face-Mask_Inpainting/models

Install required packages

The provided requirements.txt file consists the essential packages to install. Use the following command

cd Face-Mask_Inpaintingpip install -r requirements.txt

Run the stremalit webapp

cd Face-Mask_Inpaintingstreamlit run main.py

Copy theLocal URL /Network URL and view it in your browser.screen

Demo

|screen |screen |

Related Project

Paper References

Code References

About

Face-mask Inpainting (unmasking masked face)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp