Downloads · 30 days
0
ototadana/occlusion-aware-face-segmentation
occlusion-aware-face-segmentation is a image segmentation model from ototadana. Use it for the image segmentation task on the model card, and read the license before you ship it in a product. The card lists the license as cc0-1.0.
A model for occlusion-aware face segmentation.
Downloads · 30 days
0
Access
Public
Updated Aug 8, 2023
Repo size
251 MB
Likes
5
Public
Click a slice to open those files.
.pth251 MB · 100%
From the Hugging Face model README
A model for occlusion-aware face segmentation.
This model was created following the procedures in mmsegmentation's PR [Feature] Support Delving into High-Quality Synthetic Face Occlusion Segmentation Datasets #2194.
For more information, see:
Use with mmsegmentation.
Example:
from mmseg.apis import inference_model, init_model, show_result_pyplot
import mmcv
config_file = 'deeplabv3plus_r101_512x512_face-occlusion.py'
checkpoint_file = 'deeplabv3plus_r101_512x512_face-occlusion-93ec6695.pth'
model = init_model(config_file, checkpoint_file, device='cuda:0')
img = 'face-image.png'
result = inference_model(model, img)
show_result_pyplot(model, img, result, show=True, out_file='result.jpg', opacity=0.5)