AI 绘画极简教程 - 机器学习算法与Python
source link: https://www.cnblogs.com/jpld/p/16441930.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
AI 绘画极简教程
昨天在朋友圈发了几张我用AI绘画工具Disco Diffusion画的画
既然有同学问,就写个极简教程吧,画个图是足够了,想要深入了解还是自行百度吧,可以找到更详细的教程。
第 0 步:学会上网,注册Google账号
第 1 步:打开 colab
https://colab.research.google.com/github/alembics/disco-diffusion/blob/main/Disco_Diffusion.ipynb
第 2 步:修改Setting
Prompts
Diffuse
第 3 步:Run all
,有弹窗就点 OK
,需要访问你的Google Drive
就点 allow
等待片刻(取决于你抽到了什么显卡,还有你的batch),生成的图片也可以在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。
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK