2424
2525 <div class =" l_button button_medium button_colored" style =" float :right ; " @click =" generate_from_prompt" >Generate</div >
2626
27- <SDOptionsDropdown :options_model_values =" this_object" :elements_hidden =" [ 'inp_img_strength' ]" > </SDOptionsDropdown >
27+ <SDOptionsDropdown :options_model_values =" this_object" :elements_extra = " ['sampler' , 'use_soft_seed'] " :elements_hidden =" [ 'inp_img_strength' ]" > </SDOptionsDropdown >
2828
2929 <div style =" float :right ; margin-top : -5px ; " >
3030 <b-dropdown id =" dropdown-form" variant =" link" ref =" dropdown" toggle-class =" text-decoration-none" no-caret >
@@ -163,10 +163,12 @@ export default {
163163 backend_error : " " ,
164164 done_percentage : - 1 ,
165165 is_stopping : false ,
166+ use_soft_seed: " No" ,
166167 modifiers : require (" ../modifiers.json" ),
167168 is_negative_prompt_avail : false ,
168169 negative_prompt : " " ,
169- selected_model : ' Default'
170+ selected_model : ' Default' ,
171+ selected_sampler : ' ddim' ,
170172 };
171173
172174 },
@@ -194,7 +196,8 @@ export default {
194196 scale : this .guidence_scale ,
195197 ddim_steps : this .dif_steps ,
196198 num_imgs : this .num_imgs ,
197- batch_size : this .batch_size
199+ batch_size : this .batch_size ,
200+ scheduler: this .selected_sampler ,
198201 }
199202
200203 if (this .selected_model && this .selected_model != " Default" && this .app_state .app_data .custom_models [this .selected_model ] ){
@@ -205,6 +208,9 @@ export default {
205208 if (this .is_negative_prompt_avail )
206209 params[' negative_prompt' ] = this .negative_prompt ;
207210
211+ if (this .use_soft_seed == ' Yes' )
212+ params[' soft_seed' ] = 1
213+
208214 let that = this ;
209215
210216 if (this .prompt .trim () == " " ){
@@ -226,7 +232,8 @@ export default {
226232 if (! (that .app_state .app_data .history [history_key])){
227233 let p = {
228234 " prompt" : that .prompt , " seed" : seed, " img_w" : that .img_w , " img_h" : that .img_h , " key" : history_key , " imgs" : [],
229- " guidence_scale" : that .guidence_scale , " dif_steps" : that .dif_steps
235+ " guidence_scale" : that .guidence_scale , " dif_steps" : that .dif_steps , " use_soft_seed" : that .use_soft_seed ,
236+ " selected_sampler" : that .selected_sampler
230237 }
231238 if (that .stable_diffusion .model_version )
232239 p[' model_version' ] = that .stable_diffusion .model_version ;
@@ -279,6 +286,7 @@ export default {
279286 Seed : this .computed_seed ,
280287 Scale : this .guidence_scale ,
281288 Steps : this .dif_steps ,
289+ sampler_name : " bee" + this .selected_sampler ,
282290 model_version: this .stable_diffusion .model_version
283291 }
284292 if (this .is_negative_prompt_avail )
0 commit comments