本文已被:浏览 708次 下载 399次
投稿时间:2022-07-01
投稿时间:2022-07-01
中文摘要: 古诗插图自动生成是非常具有挑战性的任务。提出了一种新的方法,通过使用注意力机制的生成对抗网络,输入古诗文字和草绘图,经由网络输出古诗插图。该模型在利用编码与解码的图片生成结构的同时,结合注意力机制,将图像色彩及轮廓特征进行了提取,生成器中加入了残差网络模块,增加了网络深度,同时提高了网络模型的效果,最终生成图像质量更高的古诗插图。实验结果表明,所提方法相较于对比方法,在图像质量和色彩渲染方面均有优势,输入的古诗和草图经过网络模型,生成了较为符合古诗意境的插图。
Abstract:It is a challenging task to realize the automatic generation of ancient poetry illustrations.This paper proposes a generation method using attention mechanism against network generation, which outputs ancient poetry illustrations through the network by inputting ancient poetry text and sketching.The model uses the image generation structure of encoding and decoding, and extracts the image color and contour features combined with the attention mechanism.The residual network module is added to the generator, which can increase the network depth, improve the effect of the network model, and finally generate ancient poetry illustrations with higher image quality.The experimental results show that the proposed method has advantages in image quality and color rendering compared with the comparison method.The input ancient poems and sketches can generate illustrations that are more consistent with the artistic conception of ancient poems through the network model.
keywords: ancient poetry drawing image generation attention mechanism generative adversarial network residual network module
文章编号:20232012 中图分类号:TP391 文献标志码:
基金项目:
引用文本:
沈协伟,魏为民.基于注意力机制的生成对抗网络古诗插图生成方法[J].上海电力大学学报,2023,39(2):175-181.
SHEN Xiewei,WEI Weimin.Generation Method of Ancient Poetry Illustrations Based on Attention Mechanism of Generative Adversarial Network[J].Journal of Shanghai University of Electric Power,2023,39(2):175-181.
沈协伟,魏为民.基于注意力机制的生成对抗网络古诗插图生成方法[J].上海电力大学学报,2023,39(2):175-181.
SHEN Xiewei,WEI Weimin.Generation Method of Ancient Poetry Illustrations Based on Attention Mechanism of Generative Adversarial Network[J].Journal of Shanghai University of Electric Power,2023,39(2):175-181.