开源软件名称(OpenSource Name):akirasosa/mobile-semantic-segmentation开源软件地址(OpenSource Url):https://github.com/akirasosa/mobile-semantic-segmentation开源编程语言(OpenSource Language):Python 99.6%开源软件介绍(OpenSource Introduction):Real-Time Semantic Segmentation in Mobile deviceThis project is an example project of semantic segmentation for mobile real-time app. The architecture is inspired by MobileNetV2 and U-Net. LFW, Labeled Faces in the Wild, is used as a Dataset. The goal of this project is to detect hair segments with reasonable accuracy and speed in mobile device. Currently, it achieves 0.89 IoU. About speed vs accuracy, more details are available at my post. Example application
Requirements
About ModelAt this time, there is only one model in this repository, MobileNetV2_unet. As a typical U-Net architecture, it has encoder and decoder parts, which consist of depthwise conv blocks proposed by MobileNets. Input image is encoded to 1/32 size, and then decoded to 1/2. Finally, it scores the results and make it to original size. Steps to trainingData PreparationData is available at LFW. To get mask images, refer issue #11 for more. After you got images and masks, put the images of faces and masks as shown below.
TrainingIf you use 224 x 224 as input size, pre-trained weight of MobileNetV2 is available. It will be automatically downloaded when you train model with the following command.
Dice coefficient is used as a loss function. Pretrained model
ConvertingAs the purpose of this project is to make model run in mobile device, this repository contains some scripts to convert models for iOS and Android.
TBD
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论