计算机应用与软件2025,Vol.42Issue(6):234-240,7.DOI:10.3969/j.issn.1000-386x.2025.06.030
基于Mask约束的图像局部风格迁移算法
IMAGE LOCAL STYLE TRANSFER ALGORITHM BASED ON MASK CONSTRAINT
摘要
Abstract
Aimed at the problem that the style transfer of the specified area of the image cannot be carried out directly in practical application,an image local style transfer algorithm based on mask constraint is proposed.With the help of DeepLab V3+algorithm,the content image was segmented and its target area was extracted,a pixel by pixel optimized image style migration algorithm based on Gram matrix was used for image local style migration,and the content and style loss function of image local style migration were redefined.On the one hand,the Mask matrix generated in semantic segmentation was used to standardize the range of parameters to be learned,on the other hand,the Mask matrix was used to constrain the region calculated by the partial style loss function to remove the redundant region.Experimental results show that the improved algorithm has better local style conversion ability and improves the convergence speed of the algorithm.关键词
局部风格迁移/语义分割/DeepLab V3+/Gram矩阵/Mask矩阵Key words
Local style transfer/Semantic segmentation/DeepLab V3+ algorithm/Gram matrix/Mask matrix分类
计算机与自动化引用本文复制引用
祁新,杜洪波,朱立军..基于Mask约束的图像局部风格迁移算法[J].计算机应用与软件,2025,42(6):234-240,7.基金项目
国家自然科学基金项目(11861003) (11861003)
辽宁省教育厅高等学校基本科研项目(LJKZ0157). (LJKZ0157)