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

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

15.631 Lượt nghe
How to use XYZ plots Script to Optimize Parameters and Get the Most Out of your Model!
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 of article from stable-diffusion-art.com regarding Sampling Methods: https://stable-diffusion-art.com/samplers/ Link to my spreadsheet for the Heat Maps: https://docs.google.com/spreadsheets/d/1mHIT7y76pUTeXsrhBThek-WHtQQHC8JosfalSjujUUg/edit?usp=sharing Link to the XYZ plots and output images created for MajicMIX and DreamShaper: MajicMIX https://drive.google.com/file/d/1VEq1ZC6mTGFbqod55V6Iv9TzEwLkz4vH/view?usp=drive_link Dream Shaper https://drive.google.com/file/d/1bS08jEXEJB_p5aKIeKbfJei-q_eZGDgY/view?usp=drive_link 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*** https://ko-fi.com/keyboardalchemist