ホーム 暮らし Speeding up your favorite models with DMD2 4-step LoRA

Speeding up your favorite models with DMD2 4-step LoRA

三浦 拓海 三浦 拓海 • 更新: • 公開: • 読了約 5 分
目次
n1019d3a8bd19

I introduced DMD2 in a previous article.
Since a 4-step version of LoRA has been released for SDXL, this article covers my experience using it.

It is very easy to use.
1. Apply the LoRA to SDXL.
2. Merge and use.

There was also a mention in the latter part of the discussion here that a LoRA weight of 0.5 worked well, so it seems that weight adjustment is necessary depending on the model.

<Points to note>

Please note that the sampler settings are different from usual.
You need to adjust the settings as follows:
1. Steps: 4
2. CFG: 1
3. Sampler: LCM
4. Scheduler: Simple

Here are the results using ebara pony.

1girl, young child, kawaii, long hair, happily picking flowers in a colorful flower field under a bright blue sky. She is smiling brightly, surrounded by blooming flowers of various colors.masterpiece, 4k, uncensored, prefect lighting, very aesthetic, anime

I believe there is compatibility depending on the model, so please use this as a reference.

Weight: 1.2

Weight: 1

Weight: 0.8

Weight: 0.6

Weight: 0.5

So, if the weight is high, the colors become more intense, and if the weight is low, it becomes blurry.
This is the same as LCM, but I think the color tone here feels more natural and better.
Since it is 4-step, generation is fast.

On a free A4000 in Paperspace, it takes about 1.3 seconds to generate one 1024x1024 image.

Because it is 4-step, tiled diffusion is also fast.
A 1.5x upscale took about 10 seconds.

However, since the number of steps is low, it seems necessary to adjust the settings.

Regarding this method, while you can generate images very quickly, there is a disadvantage that features related to the number of steps cannot be used.
1. AYS Scheduler: Requires 10 steps or more.
2. Omost: It is better to have more steps for reflecting part specifications.
3. Noise Method XL: The added noise will not converge.

For those who have read this far, you probably expect this, but it can also be used in the same way in A1111 and Forge. For your reference.


同じカテゴリの記事

三浦 拓海
コンテンツディレクター 三浦 拓海
プロフィールを見る →

映画と連続ドラマの公開情報を追う担当。配給会社のプレスシートと公式サイトの発表日を確認したうえで執筆します。

おすすめの関連記事