以下是关于线稿上色(Midjourney + Stable Diffusion)的详细步骤:
- 线稿产出:使用 Midjourney 生成线稿,关键词如“Black and white line drawing illustration of a cute cat cartoon IP character, black line sketch, wearing a fortune hat, wearing a collar around the neck, Carrying a huge bag containing scrolls and ingots, matching rope and straps at his wrists, Chinese element style, popular toys, blind box toys, Disney style, white background --niji 5 --style expressive”。
- PS 手动重绘错误的地方:对于生成的线稿,在 PS 中手动修正一些错误,比如添加阴影等。
- SD 上色:
- 关键词:正关键词包括增加照片质感常用的、mj 生成线稿的关键词调整(去掉 mj 里线稿的关键词,针对效果不好的部分添加特定关键词,如嘴巴效果不好添加张开嘴巴等,颜色可单独调整控制)、风格参数,如“((white background)), (8k, raw photo, best quality, masterpiece), (photon mapping, radiosity, physically-based rendering, automatic white balance), CG, unity, official art, amazing, finely detail, an extremely delicate and beautiful, extremely detailed, 3d, rendering, c4d, blender, octane render, Chinese festive color scheme, open mouth, 1 tooth, The cat has a pair of white gloves, a cute cat cartoon IP character, black line sketch, wearing a hat, wearing a collar around the neck, carrying a huge red bag, matching rope and straps at his wrists, Chinese element style, poular toys, blind box toys, Disney style”;负关键词根据效果添加,如“back and white, green, blue, purple”。
- 模型选择:真实系大模型选择 revAnimated v1.2.2 版本。
- 尺寸设置:尺寸最好和草稿图保持一致,如果尺寸太大爆显存可以保持和草图一样的比例缩小尺寸。
- ControlNet 设置:上传自己的草图到 ControlNet,点击启用,记得点击?的图标让预处理器生效。
ControlNet 的预处理器有 37 种,可分类理解为线条约束类、canny 边缘检测、scribble 涂鸦、softedge 软边缘检测、lineart 线稿提取等。其中 lineart 线稿提取可能是目前最强的线稿上色功能。例如,从花瓣上找一张线稿图,先通过 invert 预处理将白底黑线处理成黑底白线,然后拖到左边重新载入,切换到 lineart 预处理器和模型进行生成,文生图关键词填写如“(Best quality, masterpiece), ((girl)), solo, Blue hair, white clothes, white background”。