AI绘画与虚拟人生成实践(一):生成人像,AI绘画模型和工具的效果对比

本篇的目的是生成一个虚拟的女生形象。先进入正题说明人像怎么生成,本篇使用到的工具和工具的介绍放在文末。

先来一波Midjourney生成的美图提升下大家学习的欲望




以上四张图使用的是相同的Prompt,如下:
a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,intricate details, hyper-realistic

不过Midjourney收费,大家可以先用免费的工具试试水

本篇中使用到的工具:Playground AI

工具网址:https://playgroundai.com/create
需要注册谷歌账号来进行登录playgroundai

Playground AI 是一个免费使用的在线 AI 图像创建器。用户可以用它来创作艺术、社交媒体帖子、演示文稿、海报、视频、徽标等。

Playgroundai的使用

它的整体界面如下

左边的导航栏

左边的导航栏有filter选项,有众多滤镜的选项

它可以生成成不同风格的艺术品,比如油画、水墨画、蒙太奇、抽象等,可以满足用户不同需求。它还可以生成头像、徽标等各种你想要的,你可以让照片加上不同的色彩、滤镜和画面效果。

第二个填写prompt的地方,你可以描述你想要生成的图片,尽可能详细的描述,这样生成的效果可能会更符合要求

第三个exclude from image,就是你不希望图片有哪些特性,写在这个地方,如果不会描述可以参考官方给出的negative描述,比如我上面用到的
NEGATIVE PROMPTS: ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck
来源

第四个image to image就是你上传图片的地方,然后根据图片生成另一张图片,并且可以调整图片的权重

右边的导航栏


第一个选项可选择生成图片使用的模型,比如图中的SD1.5

第二个选项可选择生成图片的分辨率

第三个选项可选择prompt提供的参考,默认7,可按需求更改

第四个选项可选择图像质量,但是更好的图像质量耗时更久

第五个选项调整seed,可以调整多次生成图片时图片的变化程度

第六个选项选择每次生成图片的张数,1-4张

第七个选项选择是否将你的生成结果与他人共享,打开这个按钮说明共享

参考他人的prompt和生成的图片

先来到https://playgroundai.com/首页

可以看到很多很漂亮的图片,我想要直到第四张的prompt和相关参数,点进去

prompt:
A lovely smiling girl, head surrounded by a lot of butterflies, cute-fine-face, anime, realistic shaded perfect face, realistic shaded lighting by ilya kuvshinov giuseppe dangelico pino and michael garmash and rob rey, bright saturated colors, wlop matte print, 16k resolution, a masterpiece

可以看到它是模型playground v1生成,图生图,但是原图404not found了,暂时告一段落

playgroundai官方还给出了些Prompt 示例,如下:
Prompt 1: a photo of ultra realistic archangel warframe warriror, dynamic action pose full body, futuristic city in the background, intricate details, hyper-realistic, global illumination, cosmic energy in the air, specular highlights, trending on artstation, 4k, sharp focused, unreal engine 5, VRay render, cinematic

Prompt 2: minimal line art of a flower, white background, ink outlines

Prompt 3 (add cinematic filter for variation): inox fox, quick silver liquid glossy, reflective, exploding through ice, ornate details, fractal patterns, scattered shards and debris, nature background

感兴趣的朋友们可以自己试试这些Prompt的对应生成图片效果如何

tips: 油管上有playgroundai的官方账号,会给出更加详细的、关于playgroundai的教学视频,推荐想要学习的朋友们前去学习。playgroundai

插一句

此外,博主参加了一个社区,内容是关于 AI的国内平台副业案例库 , 适合普通人的低门槛案例。适合想搞副业,但不知道玩法的普通人。专栏订阅后,永久可以查看,初始价格 19 元 ,一顿饭钱感觉很便宜就加入了,但后期据说每多加500人涨10块,同样有这方面想法的小伙伴可以赶在涨价前速速加一下哦~
扫下图的码即可

使用playgroundai绘图

使用stable diffusion 1.5

文生图

首先使用prompt
(1)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and short hair

可以看到还是比较逼真的,但是距离我想要的理想效果还有差距。我想要一个不那么大的鼻子,然后改成长头发,所以先修改prompt

(2)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose.


这个效果有点难评价,眼睛好像有点假,再改prompt,加个gritty
(3)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,gritty.

效果居然没咋变,因为我没有改seed,它的说明:different numbers result in new variations of your image.

决定在不改prompt的情况下添加摒除positive效果的描述词,即你不想要的效果的详细说明

官方给出的示例是
NEGATIVE PROMPTS: ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, out of frame, ugly, extra limbs, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, mutated hands, fused fingers, too many fingers, long neck
来源

(4)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,intricate details, hyper-realistic. 并且添加了NEGATIVE PROMPTS,得到效果如下

感觉眼睛细节的效果比第二三张好了不少,有点像网上精修过后的图了,这个形象可以了。但我比较需要一张正对屏幕的、端正坐着的半身图,所以继续

(5)a beautiful chinese girl, 18 years old, detailed and big eyes, white and soft skin, pink lips, black and long hair,A straight and tall nose,intricate details, hyper-realistic, sitting upright, facing the camera directly.(有NEGATIVE PROMPTS)

失望了,改seed, 默认seed: 237477746 ,改random

改完random之后网站貌似会给出非常多的图,让你二选一,来测试你的偏好,图太多好像选不完,选的差不多了刷新网页,然后再生成

生成了几次不满意,主要是需要一个面对镜头的半身照但老是没成功,换方法

图生图

找张好看的网图,面对镜头的半身照(原照片就不放了,只放效果图)
可以选择原照片在生成图片当中所占比例,第一张占比30%,第二张占比50%


虽然图片到这里还稍微有点硅胶感,但先到此为止。

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
扎眼的阳光的头像扎眼的阳光普通用户
上一篇 2023年12月23日
下一篇 2023年12月23日

相关推荐