You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when using Read parameters (prompt, etc...) from txt2img tab when making previews, the sampler selected is ignored and instead the default ("Euler a") sampler is used. This is due to this recent commit to WebUI that changed sampler_index to sampler_name. AUTOMATIC1111/stable-diffusion-webui@cdc8020#diff-d3503031ef91fb35651a650f994dd8c94d405fe8e690c41817b1d095d66b1c69R348
The one line in this repo affected is this. https://github.com/7eu7d7/DreamArtist-sd-webui-extension/blob/069ce4124580c69dc2d373a2a9e856b08afa715f/scripts/dream_artist/cptuning.py#L516
I believe this issue can be solved by matching textual_inversion.py by importing sd_samplers from modules and changing p.sampler_index = preview_sampler_index to p.sampler_name = sd_samplers.samplers[preview_sampler_index].name. I will test to see if this fixes it and the correct sampler is respected when generating previews. I would make a PR, but I'm not sure how you'll want to handle backwards compatibility if people aren't on the latest WebUI. E.g. should p.sampler_index still be left along side the new fixed p.sampler_name entry.
Edit: Adding sd_samplers after the images import and changing the line at 516 in cptuning.py to reflect the above change resolves the preview sampler issue and the correct one is used.
The text was updated successfully, but these errors were encountered:
Currently when using
Read parameters (prompt, etc...) from txt2img tab when making previews
, the sampler selected is ignored and instead the default ("Euler a") sampler is used. This is due to this recent commit to WebUI that changed sampler_index to sampler_name.AUTOMATIC1111/stable-diffusion-webui@cdc8020#diff-d3503031ef91fb35651a650f994dd8c94d405fe8e690c41817b1d095d66b1c69R348
The one line in this repo affected is this.
https://github.com/7eu7d7/DreamArtist-sd-webui-extension/blob/069ce4124580c69dc2d373a2a9e856b08afa715f/scripts/dream_artist/cptuning.py#L516
I believe this issue can be solved by matching textual_inversion.py by importing
sd_samplers
from modules and changingp.sampler_index = preview_sampler_index
top.sampler_name = sd_samplers.samplers[preview_sampler_index].name
. I will test to see if this fixes it and the correct sampler is respected when generating previews. I would make a PR, but I'm not sure how you'll want to handle backwards compatibility if people aren't on the latest WebUI. E.g. should p.sampler_index still be left along side the new fixed p.sampler_name entry.Edit: Adding
sd_samplers
after theimages
import and changing the line at 516 in cptuning.py to reflect the above change resolves the preview sampler issue and the correct one is used.The text was updated successfully, but these errors were encountered: