购买
下载掌阅APP,畅读海量书库
立即打开
畅读海量书库
扫码下载掌阅APP

2.4.3 图生文+文生图

这种出图方法用到了/descirbe和/imagine这两个指令,操作起来会比前两种方法复杂一些,但生成的图像效果往往更符合预期。

首先是图生文,使用/descirbe指令,将夏日荷花插画的参考图上传到Midjourney中,随后会反推出四组关于这张参考图的描述词,分别是:

1. A lotus flower is blooming on the water, with leaves and buds floating around it. A fish is swimming among them. Vector illustrations of pink petals and green leaves, with subtle glow effects. The background features dark blue-green tones with sparkling stars. It has an elegant style in the style of Chinese art, with simple lines and bright colors. Cartoon flat illustration, vector art, high resolution. High definition, with detailed details. Simple design, without cluttered elements. High definition, detailed details. Simple design, no cluttered elements(一朵莲花在水面上绽放,周围漂浮着叶子和花蕾。一条鱼在其中游动。粉色花瓣和绿叶的矢量插图,带有微妙的发光效果。背景采用深蓝绿色调,点缀着闪闪发光的星星。它具有中国艺术风格的优雅风格,线条简洁,色彩鲜艳。卡通平面插图,矢量艺术,高分辨率。高清晰度,细节丰富。设计简单,没有杂乱的元素。高清晰度,细节丰富。设计简单,没有杂乱的元素)

2. A lotus flower and leaves in the style of a vector illustration, with a pink color scheme and light green water lily leaf patterns in the background, glowing effects, cartoon illustrations in the style of vector graphics,and a flat composition. A fish swimming under the water surface. The pond is surrounded by golden stars in a quiet night scene(一朵莲花和叶子的矢量插图风格,粉红色配色方案和背景中的浅绿色睡莲叶子图案,发光效果,矢量图形风格的卡通插图和平面构图。一条鱼在水面下游动。池塘周围环绕着金色的星星,在宁静的夜景中)

3. A lotus flower and its leaves in the style of a cartoon, vector illustration with a pink and green color scheme. The night pond background includes light particles and elements related to Chinese New Year. A fish is swimming in the water under the flowers. The illustration is high resolution with detailed flat colors, simple lines, and high quality details(卡通风格的一朵莲花和它的叶子,矢量插图采用粉红色和绿色配色方案。夜晚的池塘背景包括与中国新年相关的光粒子和元素。一条鱼在花下水中游动。插画分辨率高,色彩平淡,线条简洁,细节丰富)

4. A pink lotus flower blooms on the water, surrounded by green leaves and fish in the style of an illustration with subtle gradients. The background is a dark blue with stars shining brightly, creating a dreamy atmosphere. This artwork features vector illustrations of cartoon characters. It includes exquisite details,delicate lines, bright colors, soft lighting effects, and high-definition resolution(一朵粉色莲花在水面上绽放,周围环绕着绿叶和鱼群,风格类似插画,带有微妙的渐变。背景为深蓝色,星星闪耀,营造出梦幻般的氛围。这幅作品以卡通人物的矢量插图为特色。它包含精致的细节、细腻的线条、明亮的色彩、柔和的灯光效果和高清分辨率)

考虑到生成的描述词为英文,可以借助翻译软件将英文描述词快速转为中文,方便对描述词进行筛选和调整。通过图生文操作得到的描述词如下图所示。

接下来是文生图操作,这里以第一条描述词为例,使用/imagine指令进行出图。如果想让生成的图像与参考图风格更接近,可以在描述词前面加上参考图的URL链接作为垫图使用,垫图后的描述为:

https://cdn.discordApp.com/ephemeral-attachments/1092492867185950852/126159325 5775309876/2.png?

ex=669385c7&is=66923447&hm=e07a9f45f7cb697c7442bc5f99ad5f1aac8da68f52bdbaf059e91c 0afa87746 d& A lotus flower is blooming on the water, with leaves and buds floating around it. A fish is swimming among them. Vector illustrations of pink petals and green leaves, with subtle glow effects. The background features dark blue-green tones with sparkling stars. It has an elegant style in the style of Chinese art, with simple lines and bright colors. Cartoon flat illustration, vector art, high resolution. High definition,with detailed details. Simple design, without cluttered elements

将描述词复制到Midjourney中进行出图操作,通过以上流程,一个图生文和文生图组合生成的夏日荷花插画就操作完成了,效果如下图所示。

以上是通过文生图、图生图、图生文+文生图三种方法分别生成的夏日荷花插画,横向对比效果如下图所示。通过对比能看到,文生图方法生成的每组图像风格更加多样化,每张图像在构图、风格、画面丰富度上都存在差异,加入“垫图”后,生成的每组图像风格会趋向统一;使用图生图方法、图生文+文生图方法生成的每组图像在构图、色彩、风格等方面更相似,效果更可控。

在实际使用过程中,可以根据每种出图方法的特点以及具体的设计需求,灵活选择不同的方法来进行出图。在后面的章节中,将继续讲解这些出图方法在多种设计场景和设计案例中的应用。 oSG/hUh2TrtQs1TELsDf2+3ngWunu0+LppiEbU/wRClWAkVrT0BTXkSHNK2qQ57z

点击中间区域
呼出菜单
上一章
目录
下一章
×