arXiv:2412.08647cs.CV2024-12AAAI被引 22

用轻量Transformer提升罕见面部特征的分割精度

SegFace: Face Segmentation of Long-Tail Classes

  • 引入可学习类别专属令牌,让每个类别独立建模
  • 在CelebAMask-HQ上达88.96的均值F1,提升2.82
  • 适合移动端部署,推理速度达95.96帧/秒

人脸解析旨在将人脸划分为眼睛、鼻子、头发等语义区域,是人脸编辑、换脸和化妆等应用的基础。这些应用常需对眼镜、帽子、耳环、项链等低频出现的长尾类别进行分割,但现有以CNN为主的模型在训练中易被高频类别主导,导致长尾类表现不佳。本文提出SegFace,首个采用Transformer架构的人脸解析方法,通过轻量级Transformer解码器引入可学习的类别专属令牌,使每个令牌专注对应类别,实现独立建模。实验表明,SegFace显著优于现有最优模型,在CelebAMask-HQ数据集上达到88.96的均值F1(+2.82),LaPa数据集上达93.03(+0.65)。该方法还可适配低算力边缘设备,实现95.96 FPS的推理速度。

原文摘要 · Abstract (English)

Face parsing refers to the semantic segmentation of human faces into key facial regions such as eyes, nose, hair, etc. It serves as a prerequisite for various advanced applications, including face editing, face swapping, and facial makeup, which often require segmentation masks for classes like eyeglasses, hats, earrings, and necklaces. These infrequently occurring classes are called long-tail classes, which are overshadowed by more frequently occurring classes known as head classes. Existing methods, primarily CNN-based, tend to be dominated by head classes during training, resulting in suboptimal representation for long-tail classes. Previous works have largely overlooked the problem of poor segmentation performance of long-tail classes. To address this issue, we propose SegFace, a simple and efficient approach that uses a lightweight transformer-based model which utilizes learnable class-specific tokens. The transformer decoder leverages class-specific tokens, allowing each token to focus on its corresponding class, thereby enabling independent modeling of each class. The proposed approach improves the performance of long-tail classes, thereby boosting overall performance. To the best of our knowledge, SegFace is the first work to employ transformer models for face parsing. Moreover, our approach can be adapted for low-compute edge devices, achieving 95.96 FPS. We conduct extensive experiments demonstrating that SegFace significantly outperforms previous state-of-the-art models, achieving a mean F1 score of 88.96 (+2.82) on the CelebAMask-HQ dataset and 93.03 (+0.65) on the LaPa dataset. Code: https://github.com/Kartik-3004/SegFace

人脸分割长尾分布Transformer边缘部署

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。