How to use XYZ plots Script to Optimize Parameters and Get the Most Out of your Model!

preview_player
Показать описание
This video tutorial walks you through how to use the XYZ plot Script in Automatic 1111 and provides a simple workflow that can help you find the optimal values of Sampling Steps, CFG scale, and Sampling Methods for the model you are using. I would recommend to do this when you first start working with a new model or checkpoint.

Chapters:
00:00 Intro
00:10 Ep2 - How to get the most out of your models with XYZ plots
01:53 How does Stable Diffusion generate images
02:15 Sampling Steps explained
03:00 Sampling Method explained
03:40 CFG Scale explained
04:35 TLDR on the Workflow
05:07 Walkthrough example with the MajicMIX model
05:52 Be sure to use Fixed Seed
06:05 XYZ Plot Script
06:23 XYZ Plot Syntax for Ranges
07:12 Example of a XY Plot (Steps vs. CFG)
08:12 Create 2nd Plot of Steps vs. CFG with smaller intervals
09:37 Optimal range found for Sampling Steps and CFG scale
10:12 Generate a Batch of test images
10:32 Sampling Steps vs. CFG vs. Sampling Methods
11:43 Narrow down the list of Sampling Methods
13:37 Karras Noise Schedule explained
14:25 Plot Steps vs. CFG vs. Samplers
15:24 Output of the XYZ plot (Steps vs. CFG vs. Samplers)
16:28 Output grid and heat map
17:38 Good Samplers for this model
18:25 Create 2nd Plot of Steps vs. CFG with the Sampler(s) being picked
19:03 Comparison between MajicMIX and DreamShaper models
20:05 Conclusion / Summarize Workflow

Useful Links:

Link to my spreadsheet for the Heat Maps:

Link to the XYZ plots and output images created for MajicMIX and DreamShaper:
MajicMIX

Dream Shaper

PSA: basically all models nowadays use a '.safetensors' file format, with the exception of some older models or processes using '.ckpt' format.
Be wary of '.ckpt' files that you download online. It may contain malicious scripts inside.
Do NOT open the '.ckpt' file unless you know what's inside.

***If you enjoy my videos, consider supporting me on Ko-fi***
Рекомендации по теме
Комментарии
Автор

Hello everyone, Keyboard Alchemist here! This is episode2 of my stable diffusion/automatic1111 tutorial series, where we go through a simple workflow designed to help understand the Sampling Steps, CFG scale, and Sampling Method parameters using the XYZ plot tool, and get the most out of that new Model you have just downloaded! I hope you enjoy this video. Feel free to leave a comment below.

KeyboardAlchemist
Автор

Great content! Haven't seen many other vids that are as clear as this one when explaining some of the underlying concepts for image generation using various samplers. Definitely will be taking advantage of the x/y/z plots moving forward!

rexs
Автор

I stumbled upon one of your videos searching for upscalers, after going down the open source webui forge road. Youtube is smart like that. Frankly, I was somewhat confused and quite bored, though I am also tired, but what did shine through was that you are doing a deep dive into the whys and not just the hows, which empowers users... teach a man to fish, sort of thing.

Keep it up. I foresee good things for this channel... and trust me, there are tons of up and coming stable diffusion channels popping up left and right every day, and still I say that, because it's the same content mentality that I apply, and a standard I set for myself: leave no stone unturned. Once every possible question has been answered, which requires testing since no one's actually bothered to do that, then it's good enough. And taking that extra step, well, it shows.

jonm
Автор

When I started I just wanted to make beautiful things as fast as possible. Now that gotten a little out that our of the system, I really wanted to learn more about what things in the various UI's mean and how to use them efficiently. I'm still learning a bunch everyday, but man.. this helped a ton with workflow decisions. Several other creators have suggested ranges very much in lock step here. But, here, you helped demonstrate the underlying decision trees. Thank you for the deep dive here.

jondargy
Автор

God, this was so well done.
Straightforward, and SUPER clear on everything.
Sub'd

kurtlindner
Автор

Thanks for this! I'll buy you a coffee!

ThatHobbyHunter
Автор

Clear and concise, impressive lesson.. Thanks !

antoine.aurety
Автор

man! what a great video ! so glad i've found it. great work

HarryMcKenzy
Автор

You are awesome! This helped soo much. Thank you for the great content!

hundsfutzingame
Автор

Thank you! I just dwelve into SD and I can't stop exploring what it can do (mostly arch viz).😲

wezzard
Автор

This is great. You must have studied ops research. Looking forward to more!

GeorgeJohnsonJackofAllTrades
Автор

Oh man... I hope to see this tutorial sooner. I was doing all that manualy. But hey, at least design is better xD
Thanks for your work!

BTW... is there any ways to add time of generation into it?

MateoTeos
Автор

Very useful! I wonder if there's a similar way to automate testing for a model's optimal parameters for animation. Like, a plot of the 30th img2img iteration with various denoise & cfg values.

ATolerableQuietude
Автор

i dont get it, on the steps in xyz, you can have it 10, 20, 30, 40. but what about the one on top, if i change the top to 10 or 20 or 30, it would make different images as well, how would i know which to use without the xyz? same on lora, my lora weight on top is 1, on bot is 0.2, 0.3, 0.4 etc, if i have the top to 0.9 or 0.8 it would make different images compared to my wirhgt lora of 1 on top

robertjackson
Автор

This has got me curious to try CFG 30 steps 150, looks like it has a lot of extra details in it

androsforever
Автор

Can XYZ parameters be saved for future recall?

JoshWilliams
Автор

Thus far, I have never had a single model NOT work great with: cfg 6.0, 30 steps, dpm++ 2m karras.

No, I tell a lie - there are some models that simply don't work at all, but that's the models' fault, not the sampler/step count/cfg.

morganandreason
Автор

CFG = Classifier Free Guidance? I have been calling it "config" all the time. People should stop using acronyms

danguafer
Автор

Thank for the lesson.🫡🫡🫡

Subscribe!!!

OTFG.