xChar
·4 months ago

本文大部分内容参考 这个视频

Intro

用到的资源:

  1. Stable Diffusion 整合包:https://www.bilibili.com/read/cv22159609/

  2. Stable Diffusion 模型:https://tusi.cn/models/605039709506335625

  3. LoRA 模型:https://tusi.cn/models/620507699483853069


具体操作

  1. 首先挑选一张合适的照片:主体、内容明确,不需要细节,我挑选的照片是这张:

    我挑选的照片

  2. 根据视频在图生图中填入这些提示词:

    (white background:1.1),(simple background:1.1),(chibi),thick outline,happy,mugshot
    
  3. 将照片导入到 WD 1.4 标签器当中,得到了这些提示词:

    outdoors, ocean, solo, day, black hair, 1boy, from behind, male focus, horizon, water, shorts, sky, photo background, rock, scenery, holding, short hair, standing, facing away, blue sky, pants, white shorts, long sleeves, shirt, shoes, bag, backpack, wide shot
    
  4. 将这些提示词填入图生图中,对部分提示词进行删减。

  5. 将图片导入到生成窗口中的图生图中,更改以下参数:

    参数
    采样方法 (Sampler)DPM++ 3M SDE
    迭代步数 (Steps)30
    重绘幅度0.7
    总批次数4
  6. 点击生成,生成 4 张图;可以根据结果调整 重绘幅度,一般值在 0.6-0.7 之间,直到生成你满意的图。

  7. 将你满意的图像以及生成参数发送到后期处理选项卡,放大算法 1 和 2 均选择 R-ESRGAN 4x+ Anime6B缩放比例选择 4,点击生成。

  8. 最终我得到这张图:

    最终生成的图


来对比一下吧:

:::grid {cols=2,rows=1,gap=12,type=images}

前
后

:::

此文由 Mix Space 同步更新至 xLog
原始链接为 https://xxu.do/posts/geek/Paint-avatars-with-Stable-Diffusion


Loading comments...