Coder Social home page Coder Social logo

sadjadrz / abanet-attention-boundary-aware-network-for-image-segmentation Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 1.0 6.11 MB

This repository contains the source code for my paper on masked face segmentation. Utilizing PyTorch, we developed a deep learning segmentation network to accurately identify mask regions on faces.

Home Page: https://doi.org/10.1111/exsy.13625

License: MIT License

Python 52.19% Jupyter Notebook 47.81%
attention-gate deep-learning semantic-segmentation masked-face-segmentation-dataset attention-networks covid-19 dataset decoder encoder face-recognition hybrid-loss masked-faces open-source pytorch segmentation boundary-aware-attention

abanet-attention-boundary-aware-network-for-image-segmentation's Introduction

ABANet (Attention Boundary-Aware Network for image segmentation)

This repository is the official PyTorch implementation of the paper "ABANet: Attention boundary-aware network for image segmentation"

Sadjad Rezvani, Mansoor Fateh, Hossein Khosravi

Deep learning techniques have attained substantial progress in various face-related tasks, such as face recognition, face inpainting, and facial expression recognition. To prevent infection or the spread of the virus, wearing masks in public places has been mandated following the COVID-19 epidemic, which has led to face occlusion and posed significant challenges for face recognition systems. Most prominent masked face recognition solutions rely on mask segmentation tasks. Therefore, segmentation can be used to mitigate the negative impacts of wearing a mask and improve recognition accuracy. Mask region segmentation suffers from two main problems: there is no standard type of masks that people wear, they come in different colors and designs, and there is no publicly available masked face dataset with appropriate ground truth for the mask region. In order to address these issues, we propose an encoder-decoder framework that utilizes a boundary-aware attention network combined with a new hybrid loss to provide a map, patch, and pixel-level supervision. We also introduce a dataset called MFSD, with 11601 images and 12758 masked faces for masked face segmentation. Furthermore, we compare the performance of different cutting-edge deep learning semantic segmentation models on the presented dataset. Experimental results on the MSFD dataset reveal that the suggested approach outperforms state-ofthe-art, algorithms with 97.623% accuracy, 93.814% IoU, and 96.817% F1-score rate.

Network Architecture

image image

Requirements

Python==3.7.11
numpy==1.18.5
scikit-image==0.19.2
pillow==9.0.0
PyTorch==1.10.1
torchvision==0.11.2
Matplotlib==3.2.2

create a conda environment:

conda create -n ABANet python=3.7.11 -y
conda active ABANet
pip install torch==1.10.1 torchvision==0.11.2 --extra-index-url https://download.pytorch.org/whl/cu113
Model

Quick Start (training)

  1. Clone this repo
git clone https://github.com/sadjadrz/ABANet-Attention-boundary-aware-network-for-image-segmentation
  1. Cd to the directory 'ABANet', run the training or inference process by command: python ABANet_train.py

Results

image image image image

Citations

If you find this code useful for your research, please cite our paper:

@article{rezvaniabanet,
  title={ABANet: Attention boundary-aware network for image segmentation},
  author={Rezvani, Sadjad and Fateh, Mansoor and Khosravi, Hossein},
  journal={Expert Systems},
  pages={e13625},
  publisher={Wiley Online Library}
}

Contact

If you have any questions, please contact [email protected].

abanet-attention-boundary-aware-network-for-image-segmentation's People

Contributors

sadjadrz avatar yasinrezvani avatar

Stargazers

 avatar  avatar cvlab_shut avatar  avatar  avatar  avatar

Watchers

Kostas Georgiou avatar

Forkers

chz367

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.