AI 绘画极简教程

474 阅读1分钟

昨天在朋友圈发了几张我用AI绘画工具Disco Diffusion画的画

既然有同学问,就写个极简教程吧,画个图是足够了,想要深入了解还是自行百度吧,可以找到更详细的教程。

第 0 步:科学上网,注册Google账号
第 1 步:打开 colab
colab.research.google.com/github/alem…

第 2 步:修改Setting Prompts Diffuse

width_heigth:生成的图片尺寸,我没改

n_batches:生成图片数量,可以改为1先体验一下

text_prompts:这段英文就是你想让AI画什么?其实只修改这里就行

第 3 步Run all,有弹窗就点 OK ,需要访问你的Google Drive 就点 allow

菜单栏,Run all

图片会在这里慢慢生成

等待片刻(取决于你抽到了什么显卡,还有你的batch),生成的图片也可以在Drive里找到⬇️⬇️⬇️

https://drive.google.com/drive/

总结

其实最关键的就是text_prompts的修改,大家可以多去看看优秀艺术家们的创作,看他们是怎么写Prompts的,不熟悉之前可以只修改其中的关键字,比如我把灯塔改成了航母:

["A beautiful painting of a Aircraft Carrier,
shining its light across a tumultuous sea of blood 
by greg rutkowski and thomas kinkade, 
Trending on artstation."]

生成的图片

整个画作的描述词可拆解为五个维度理解——画种描述、内容描述、画家描述、参考渲染方式、颜色描述。
画种描述:A beautiful painting of
内容描述:a singular lighthouse, shining its light across a tumultuous sea of blood
画家描述:by greg rutkowski and thomas kinkade
参考渲染方式:Trending on artstation(全球最专业的CG艺术家社区,又称A站)
颜色描述:yellow color scheme。