Jayden

Jayden

Create an avatar using Stable Diffusion.

Most of the content in this article is referenced from this video.

Intro#

Resources used:

  1. Stable Diffusion integration package: https://www.bilibili.com/read/cv22159609/

  2. Stable Diffusion model: https://tusi.cn/models/605039709506335625

  3. LoRA model: https://tusi.cn/models/620507699483853069


Specific Steps#

  1. First, select a suitable photo: clear subject and content, no need for details. The photo I selected is this one:

    The photo I selected

  2. Fill in these prompts in the image generation tool according to the video:

    (white background:1.1),(simple background:1.1),(chibi),thick outline,happy,mugshot
    
  3. Import the photo into the "WD 1.4 Labeler" and obtain these prompts:

    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. Fill in these prompts in the image generation tool and delete some of them.

  5. Import the image into the image generation tool in the generation window and change the following parameters:

    ParameterValue
    Sampling Method (Sampler)DPM++ 3M SDE
    Iteration Steps30
    Redraw Magnitude0.7
    Total Batches4
  6. Click "Generate" to generate 4 images. You can adjust the "Redraw Magnitude" until you are satisfied with the result, usually between 0.6-0.7.

  7. Send the image you are satisfied with and the generation parameters to the post-processing tab. Choose "R-ESRGAN 4x+ Anime6B" for both "Upscaling Algorithm 1 and 2" and select a "Scale Factor" of 4. Click "Generate".

  8. Finally, I obtained this image:

    The final generated image


Let's compare:

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

Before
After

:::

This article is synchronized updated to xLog by Mix Space.
The original link is https://xxu.do/posts/geek/Paint-avatars-with-Stable-Diffusion


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.