最近尝试了 Midjourney 绘图,简单记录下使用流程。
首先是账号注册和登陆,基本上就是一路下一步,唯一需要注意的是加入MJ频道,具体流程为:
Login
Register
探索可发现的服务器
Midjourney
Getting Started
加入Midjourney
私信
Midjourney Bot
/subscribe
Manage Account
Monthly Billing
Standard Plan
Subscribe
下次使用时,从
https://discord.com/channels/@me
登陆即可。
登陆以后,点击左上角
私信
,接着选中
Midjourney Bot
,即可打开和MJ机器人的对话框。
在对话框中输入各种指令(按下
/
即会有智能提示,可以通过Tab键进行选择),并回车执行指令。常用参数包括:
/imagine <prompt>
/info
/relax
/fast
/blend
/settings
/stealth
/describe
/ask
/show
/help
/subscribe
/prefer option set
/prefer option list
/prefer suffix
掌握了MJ的基本用法后,就可以开始绘图了。比如使用命令
/imagine Diagrammatic isometric the water cycle or water cycle diagram shows four seasons of watering of Earth's surface, in the style of forest vistas, whistlerian, photoillustration, left forests but right fragment trees, 2d game art, rough-edged 2d animation Three dimensional
命令生成一个四季的水文循环的图。
命令运行时,可以在右侧看到进度,等待进度到100%,即会展示绘制的图片。
绘图最关键的就是设计prompt。比如上面的绘图命令中:
可以尝试让ChatGPT生成绘图prompt,再自己微调。
也可以考虑上传先找到一张样图,使用
/describe
命令获取MJ对该图片的描述。将该描述略微修改后,作为
/imagine
命令生成图像的prompt。
比如先使用
/describe
命令对下图进行描述。
描述后,生成了4个可选的图片介绍,选择第一个描述,稍作修改后作为prompt生成图像
/imageine An educational poster titled "The Water JCyle" that depicts the water cycle from its source to oceans, highlighting key elements such as clouds and raindrops in blue color on one side of the page. The other half shows an illustration showing vegetation, rivers, lakes, etc., with arrows connecting them all around. There is also text detailing each step in the process, along with notes about soil, air, atmosphere, and Earth's surface waters.
等待片刻,即可得到基于该图生成的示意图。还是有一些相似,可以在此基础上再修改。可以看到,MJ对文字的支持不好,推荐只用MJ生成图片,后期自己加文字标注。
绘图时,可以在绘图的prompt后面添加一些参数,用来控制绘图的一些设置,如图像比例、清晰度之类的。常用的参数有:
--aspect
--ar
--chaos <0-100>
--c <0-100>
--no
--no dogs
--quality
--q
--seed <0-4294967295>
--stop <10-100>
--style <1, 2, 3, 4, 5.0, 5.1, 5.2, or 6>
--stylize <0-1000>
--s
--iw <0–2>
--repeat <1–40>
MJ可以在之前绘图的基础上做各种调整。比如,初次绘图后,图片的下方会出现9个图标,可以对之前生成的图像进行调整:
选择需要的子图后,可以继续点击下方按钮对图片进行修改,主要包括 Upscale(提高分辨率)、Zoom out(向外括图)、vary(更新图像)和平移括图。
更具体的解释Vary (Region):
--seed xx
--iw 2
如果想要重绘部分也尽可能的与原来保持一致,可以尝试Stable Diffusion。SD中绘图时可以使用ControlNet,可以在该模型中使用Candy边缘检测,使生成的图像与原图轮廓比较相近,具体可参考
stable diffusion 绘图 局部重绘
MJ的prompt包含3部分:图像prompt、文本prompt和参数。其中:
对于prompt的设计,官方有一些建议:
--no
个人感觉MJ对文字的支持不好,不要企图让MJ在图片中加入文字,不然可能会很怪。
关于MJ的更多使用,可以查看其
官方文档
。
本文参考: