Skip to content

If you insert an image of a face wearing a mask, the mask part is filled with the face using inpainting technology.

License

Notifications You must be signed in to change notification settings

Hur2/Taking-off-the-mask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

result sample

Input image Mask Result

requirements

conda install pytorch torchvision cudatoolkit=11 -c pytorch
conda install matplotlib jinja2 ninja dill mediapipe

inference

  1. download pretrained model using ``download/*.sh" (converted from the tensorflow pretrained model)

e.g. ffhq512

./download/ffhq512.sh

converted model:

  • FFHQ 512 checkpoints/comod-ffhq-512/co-mod-gan-ffhq-9-025000_net_G_ema.pth
  • FFHQ 1024 checkpoints/comod-ffhq-1024/co-mod-gan-ffhq-10-025000_net_G_ema.pth
  1. use the following command as a minimal example of usage
./test.sh

Reference

[1] co-mod-gan pytorch version: https://github.com/zengxianyu/co-mod-gan-pytorch

About

If you insert an image of a face wearing a mask, the mask part is filled with the face using inpainting technology.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages