dr413677671 / PromptGallery-stable-diffusion-webui

A prompt cookbook worked as stable-diffusion-webui extenstions.
Apache License 2.0
153 stars 16 forks source link

BUG: Does not correctly parse sampler index #24

Closed chrisesler closed 1 year ago

chrisesler commented 1 year ago

when I enter a sampler in the param, it does not map correctly to sampler index. Always defaults to 1 (1 == Euler)

Looking at code for the parse param there is a elseif check that is incorrect

elif value == 'Sampler': m_sampler_index = map_sampler_to_idx[value]

You are checking if the value is Sampler, when it should be 'key'

Correction should be:

elif key == 'Sampler': m_sampler_index = map_sampler_to_idx[value]

dr413677671 commented 1 year ago

Thanks @chrisesler. Fixed.