Journal of Textile Research ›› 2022, Vol. 43 ›› Issue (11): 163-171.doi: 10.13475/j.fzxb.20210901109

• Apparel Engineering • Previous Articles     Next Articles

Clothing image segmentation method based on feature learning and attention mechanism

GU Meihua(), LIU Jie, LI Liyao, CUI Lin   

  1. School of Electronics and Information, Xi'an Polytechnic University, Xi'an, Shaanxi 710048, China
  • Received:2021-09-06 Revised:2022-07-27 Online:2022-11-15 Published:2022-12-26

Abstract:

Aiming at the low accuracy of small size clothing and occlusion clothing image segmentation, a clothing image segmentation method based on improved multi-scale feature learning strategy and attention mechanism was proposed, using Mask R-CNN as the basic framework. Augmentation feature pyramid network was used to optimize the feature learning process of the model, the semantic gap between different levels was narrowed through unified supervision of multi-scale clothing features, the residual feature enhancement module was introduced to reduce the loss of high level features, and soft region of interest selection was used to adaptively obtain the optimal region of interest characteristics. Then, the channel attention module was introduced into the classification prediction branch, the spatial attention modules were introduced into the bounding box regression and mask prediction branches respectively, and the clothing area features that need to be focused on in the image were extracted. The experimental results show that the proposed method can improve the detection rate and the segmentation completeness in dealing with small size clothing and occlusion clothing images, and the extracted clothing instance is more accurate comparing with the other methods, and the mean average precision is 3.8 points higher than that of the original model.

Key words: clothing image segmenttation, multi-scale feature learning, consistent supervision, residual feature augmentation, soft region of interest selection, attention mechanism

CLC Number: 

  • TS941.2

Fig.1

Model structure image of Mask R-CNN garment segmentation"

Fig.2

Clothing image segmentation of Mask R-CNN. (a) Occlusion target segmentation;(b) Small target segmentation; (c) Multi-objective segmentation"

Fig.3

Module network structure of AugFPN"

Fig.4

Principle of residual feature enhancement"

Fig.5

Flow chart of category prediction branch combined with channel attention"

Fig.6

Flow chart of bounding box regression branch combined with spatial attention"

Fig.7

Flow chart of mask prediction branch combined with spatial attention"

Tab.1

The sample distribution of DeepFashion2 dataset"

服装类型 数量 服装类型 数量
短袖上衣 180 000 长裤 145 000
长袖上衣 90 000 连衣裙 83 000
短袖外套 3 000 短袖连衣裙 46 500
长袖外套 37 000 背心裙 47 500
短裤 87 000 长袖连衣裙 20 000
背心 40 000 吊带裙 18 000
吊带 4 000

Fig.8

Comparison of segmentation effect for clothing image with small size (a), multi-target (b) and elevation angle (c) using different algorithms"

Fig.9

Comparison of segmentation effect for occlusion clothing image using different algorithms. (a) NON target occlusion; (b) Multi target occlusion; (c) People target occlusion"

Tab.2

Comparison of each model segmentation precision"

算法 特征提取
网络
注意力
机制
Iou/
%
MAP/
%
AP50/
%
AP75/
%
FCIS ResNet50 46.5 29.2 47.8 30.3
Mask R-CNN ResNet50+FPN 70.6 31.3 51.7 32.5
Mask R-CNN+ ResNet50+AugFPN 73.7 33.6 53.4 34.7
本文算法 ResNet50+AugFPN 75.9 35.1 55.2 35.4
[1] 蔡鹏飞, 叶剑锋. 结合改进CNN和双线性模型的CBIR方法[J]. 计算机工程与应用, 2019, 55(16): 191-196.
doi: 10.3778/j.issn.1002-8331.1805-0169
CAI Pengfei, YE Jianfeng. CBIR method based on improved CNN and bilinear model[J]. Computer Engineering and Applications, 2019, 55(16): 191-196.
doi: 10.3778/j.issn.1002-8331.1805-0169
[2] XU F F, TIAN Y, ZHENG S T. A clothing retrieval model based on DenseNet and multi-similarity loss[J]. Journal of Physics: Conference Series, 2020, 1684(1): 54-65.
[3] 徐慧, 白美丽, 万韬阮, 等. 基于深度学习的服装图像语义分析与检索推荐[J]. 纺织高校基础科学学报, 2020, 33(3): 64-72.
XU Hui, BAI Meili, WAN Taoruan, et al. Image semantic analysis and retrieval recommendation for clothing based on deep learning[J]. Basic Sciences Journal of Textile Universities, 2020, 33(3): 64-72.
[4] 刘梦林, 王晓云, 许君. 图像提取技术在服装轮廓与图案提取中的研究进展[J]. 北京服装学院学报(自然科学版), 2020, 40(3): 96-105.
LIU Menglin, WANG Xiaoyun, XU Jun. Research progress of image extraction technology in clothing contour and pattern extraction[J]. Journal of Beijing Institute of Fashion Technology, (Natural Science Edition) 2020, 40(3): 96-105.
[5] 杨怡然, 吴巧英. 智能化服装搭配推荐研究进展[J]. 浙江理工大学学报(自然科学版), 2021, 45(1): 1-12.
YANG Yiran, WU Qiaoying. Research progress of intelligent clothing matching recommendation[J]. Journal of Zhejiang Sci-Tech University(Natural Science Edition), 2021, 45(1): 1-12.
[6] 杨思, 徐增波, 陈冲. 结合Faster R-CNN与Grabcut算法的服装图像自动分割[J]. 智能计算机与应用, 2020, 10(7): 306-310.
YANG Si, XU Zengbo, CHEN Chong. Automatic segmentation of clothing images based on Faster R-CNN and Grabcut algorithm[J]. Intelligent Computer and Applications, 2020, 10(7): 306-310.
[7] 李东, 万贤福, 汪军. 采用傅里叶描述子和支持向量机的服装款式识别方法[J]. 纺织学报, 2017, 38(5): 122-127.
LI Dong, WAN Xianfu, WANG Jun. Clothing style recognition approach using Fourier descriptor and support vector machines[J]. Journal of Textile Research, 2017, 38(5): 122-127.
[8] 陈双, 何利力, 郑军红. 基于深度学习的服装图像检索方法[J]. 计算机系统应用, 2019, 28(3): 231-236.
CHEN Shuang, HE Lili, ZHENG Junhong. Clothing image retrieval method based on deep learning[J]. Computer Systems & Applications, 2019, 28(3): 231-236.
[9] 李立瑶, 顾梅花, 杨娜. 融合自适应局部特征与改进模糊C均值的服饰分割算法[J]. 纺织高校基础科学学报, 2021, 34(1): 47-54.
LI Liyao, GU Meihua, YANG Na. Clothing segmentation method combined with adaptive local features and improved fuzzy C-means[J]. Basic Sciences Journal of Textile Universities, 2021, 34(1): 47-54.
[10] 郭鑫鹏, 黄元元, 胡作进. 融合颜色与纹理的复杂场景下的服装图像分割算法[J]. 计算机科学, 2017, 44(S2): 228-232.
GUO Xinpeng, HUANG Yuanyuan, HU Zuojin. Unsupervised complex-scene clothing image segmentation algorithm based on color and texture features[J]. Computer Science, 2017, 44(S2): 228-232.
[11] 张茜, 刘骊, 付晓东, 等. 结合标签优化和语义分割的服装图像检索[J]. 计算机辅助设计与图形学学报, 2020, 32(9): 1450-1465.
ZHANG Qian, LIU Li, FU Xiaodong, et al. Clothing image retrieval by label optimization and semantic segmentation[J]. Journal of Computer-Aided Design & Computer Graphics, 2020, 32(9): 1450-1465.
[12] 李宗民, 李妍特, 刘玉杰, 等. 结合层次分割和跨域字典学习的服装检索[J]. 中国图象图形学报, 2017, 22(3): 358-365.
LI Zongmin, LI Yante, LIU Yujie, et al. Clothing retrieval combining hierarchical over-segmentation and cross-domain dictionary learning[J]. Journal of Image And Graphics, 2017, 22(3): 358-365.
[13] GE Y, ZHANG R, WANG X, et al. Deepfashion2: a versatile benchmark for detection, pose estimation, segmentation and re-identification of clothing images[C]// IEEE Conference on Computer Vision and Pattern Recognition. Long Beach: IEEE, 2019: 5337-5345.
[14] HE K, GKIOXARI G, DOLLÁR P, et al. Mask R-CNN[C]// IEEE International Conference on Computer Vision. Shenzhen: IEEE, 2017: 2961-2969.
[15] REN S, HE K, GIRSHICK R, et al. Faster R-CNN: towards real-time object detection with region proposal networks[J]. IEEE Transactions on Pattern Analysis & Machine Intelligence, 2017, 39(6): 1137-1149.
[16] LIN T Y, DOLLÁR P, GIRSHICK R, et al. Feature pyramid networks for object detection[C]// IEEE Conference on Computer Vision and Pattern Recognition. Hawaii: IEEE, 2017: 2117-2125.
[17] GUO C, FAN B, ZHANG Q, et al. Augfpn: improving multi-scale feature learning for object detection[C]// IEEE Conference on Computer Vision and Pattern Recognition. Seattle: IEEE, 2020: 12595-12604.
[18] HU J, SHEN L, SUN G. Squeeze and excitation networks[C]// IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City: IEEE, 2018: 7132-7141.
[19] ZHU X, CHENG D, ZHANG Z, et al. An empirical study of spatial attention mechanisms in deep net-works[C]// IEEE International Conference on Computer Vision. Seoul: IEEE, 2019: 6688-6697.
[20] LI Y, QI H Z, DAI J F, et al. Fully convolutional instance-aware semantic segmentation[C]// IEEE Conference on Computer Vision and Pattern Recognition. Hawaii: IEEE, 2017: 2359-2367.
[1] XIAO Boxiang, LIU Zhengdong, GUO Yucheng, WANG Yuanxia. Shirt pattern generating method based on 3-D human scanning model [J]. Journal of Textile Research, 2022, 43(12): 151-159.
[2] JIA Jing, CAO Jingwen, XU Pinghua, LIN Ruibing, SUN Xiaowan. Automatic coloration of clothing pattern based on color parsing of Peking Opera masks [J]. Journal of Textile Research, 2022, 43(12): 160-166.
[3] LIU Chengxia, ZHANG Yaqi. New measurement method for fabric multi-directional bending performance [J]. Journal of Textile Research, 2022, 43(10): 53-57.
[4] LIU Yongmei, XUE Huixin, XU Danniang, ZHANG Xianghui. 2020 version of continuous structural modification on Donghua young women's garment basic block [J]. Journal of Textile Research, 2022, 43(07): 135-140.
[5] LEI Ge, LI Xiaohui. Review of digital pattern-making technology in garment production [J]. Journal of Textile Research, 2022, 43(04): 203-209.
[6] YU Yukun, SUN Yue, HOU Jue, LIU Zheng, YICK Kitlun. Dynamic finite element modeling and simulation of single layer clothing ease allowance [J]. Journal of Textile Research, 2022, 43(04): 124-132.
[7] WANG Chunru, YUAN Yue, CAO Xiaomeng, FAN Yilin, ZHONG Anhua. Influence of structural parameters of stand collar on clothing styling [J]. Journal of Textile Research, 2022, 43(03): 153-159.
[8] JIANG Gaoming, ZHOU Mengmeng, ZHENG Baoping, ZHENG Peixiao, LIU Haisang. Research progress of green and low-carbon knitting technology [J]. Journal of Textile Research, 2022, 43(01): 67-73.
[9] WANG Di, KE Ying, WANG Hongfu. Parametric fashion design based on Voronoi graphics [J]. Journal of Textile Research, 2021, 42(12): 131-137.
[10] PENG Xi, TU Yongjian, ZHOU Jiu. Design principle and method for gradient weft-backed structure with 2∶1 weft arrangement [J]. Journal of Textile Research, 2021, 42(12): 63-69.
[11] XU Minghui, XU Pinghua, WEI Qiuju, DING Xuemei, MAO Hailin. Color parsing of female brand clothing based on nexus network modeling [J]. Journal of Textile Research, 2021, 42(11): 137-142.
[12] TUO Wu, WANG Xiaoyu, GAO Yakun, YU Yuanyuan, HAO Xiaoxiao, LIU Yongliang, GUO Xin. Clothing style identification based on improved edge detection algorithm [J]. Journal of Textile Research, 2021, 42(10): 157-162.
[13] ZHANG Aidan, GUO Zhenni, WANG Yangzi. Comparative research on color simulation optimization of jacquard fabric based on modularized compound full-color structure [J]. Journal of Textile Research, 2021, 42(10): 67-74.
[14] LU Shuangyi, ZHOU Jiu. Balanced interlacement characteristics of compound full-color jacquard structure with single warp and double wefts [J]. Journal of Textile Research, 2021, 42(09): 59-65.
[15] TANG Qian, ZHANG Bingbing, ZHENG Xiaoyu. Design of wearable intelligent monitoring clothing for infants [J]. Journal of Textile Research, 2021, 42(08): 156-160.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
[1] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 33 -34 .
[2] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 35 -36 .
[3] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 107 .
[4] . [J]. JOURNAL OF TEXTILE RESEARCH, 2003, 24(06): 109 -620 .
[5] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(01): 1 -9 .
[6] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 101 -102 .
[7] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 103 -104 .
[8] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 105 -107 .
[9] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 108 -110 .
[10] . [J]. JOURNAL OF TEXTILE RESEARCH, 2004, 25(02): 111 -113 .