stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Sampler not working in X/Y Plot
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
Using the sampler names in the X/Y Plot no longer changes the sampler
Steps to reproduce the problem
In txt2img, select the "X/Y Plot" script Set "X Type" to "Sampler" Enter "Euler a,Euler,LMS,Heun,DPM2" Generate the plot
What should have happened?
Images should be generated by each of the samplers in the plot but the selected sampler is used instead.
Commit where the problem happens
Commit hash: ccd73fc186603b626d996b888d628ebb6b1a38d8
What platforms do you use to access UI ?
Windows
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
--xformers --opt-channelslast
Additional information, context and logs
No response
Yep, experiencing the same problem
Same here. It worked fine 2 days ago.
Same here too
I thought it was working correctly, as the sampler names changed in the plot. But the resulting image does remain the same, the same sampler is used.
This line needs to be updated as the script was using the sampler index but now the WebUI uses the sampler name.
https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/47a44c7e421b98ca07e92dbf88769b04c9e28f86/scripts/xy_grid.py#L77
Change p.sampler_index to p.sampler_name and sampler_index to x
p.sampler_name = x
Same. Was using it all night long, but everything was getting laggy, so I restarted the entire service and browser window to clean out RAM. Kept trying to fix it.
Hero Level:
This line needs to be updated as the script was using the sampler index but now the WebUI uses the sampler name.
https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/47a44c7e421b98ca07e92dbf88769b04c9e28f86/scripts/xy_grid.py#L77
Change p.sampler_index to p.sampler_name and sampler_index to x
p.sampler_name = x
Complete fix.
p.sampler_name = sd_samplers.all_samplers[sampler_index].name
Can someone else push it. I had a long week and I keep making stupid mistakes.
Still getting the same problem - X/Y plot generates the same images despite setting different Samplers as one of the dimensions of the plot. I tried to edit xy_grid.py by myself - just made things worse ;)... using a new install of webui from today...
Still same problem, X/Y generates the same image like the first sampler.
Not working here either

it generates the same image
same here....
same....
currently I'm on commit f7dea1341413c42a3b24a1a3711a7f4eba7a3978 , and the problem still exists for now.
I updated the code in my pull request. I did some commenting and refactoring to (hopefully) make it more clear. This time I had some rest and double, triple checked my code.
Same problem. So if I understand correctly fix is in a PR and we are waiting for it to get added?