@@ -112,7 +112,7 @@ def create_advanced_inputs(tab):
112
112
clip_skip = gr .Slider (label = 'CLIP skip' , value = 1 , minimum = 0 , maximum = 12 , step = 0.1 , elem_id = f"{ tab } _clip_skip" , interactive = True )
113
113
with gr .Group ():
114
114
gr .HTML ('<br>' )
115
- with gr .Row ():
115
+ with gr .Row (elem_id = f" { tab } _advanced_options" ):
116
116
full_quality = gr .Checkbox (label = 'Full quality' , value = True , elem_id = f"{ tab } _full_quality" )
117
117
restore_faces = gr .Checkbox (label = 'Face restore' , value = False , visible = len (shared .face_restorers ) > 1 , elem_id = f"{ tab } _restore_faces" )
118
118
tiling = gr .Checkbox (label = 'Tiling' , value = False , elem_id = f"{ tab } _tiling" , visible = True )
@@ -165,10 +165,10 @@ def set_sampler_diffuser_options(sampler_options):
165
165
values = []
166
166
values += ['brownian noise' ] if shared .opts .data .get ('schedulers_brownian_noise' , False ) else []
167
167
values += ['discard penultimate sigma' ] if shared .opts .data .get ('schedulers_discard_penultimate' , True ) else []
168
- sampler_options = gr .CheckboxGroup (label = 'Sampler options' , choices = choices , value = values , type = 'value' )
168
+ sampler_options = gr .CheckboxGroup (label = 'Sampler options' , elem_id = f" { tabname } _sampler_options" , choices = choices , value = values , type = 'value' )
169
169
with gr .Row (elem_classes = ['flex-break' ]):
170
170
shared .opts .data ['schedulers_sigma' ] = shared .opts .data .get ('schedulers_sigma' , 'default' )
171
- sampler_algo = gr .Radio (label = 'Sigma algorithm' , choices = ['default' , 'karras' , 'exponential' , 'polyexponential' ], value = shared .opts .data ['schedulers_sigma' ], type = 'value' )
171
+ sampler_algo = gr .Radio (label = 'Sigma algorithm' , elem_id = f" { tabname } _sigma_algo" , choices = ['default' , 'karras' , 'exponential' , 'polyexponential' ], value = shared .opts .data ['schedulers_sigma' ], type = 'value' )
172
172
sampler_options .change (fn = set_sampler_original_options , inputs = [sampler_options , sampler_algo ], outputs = [])
173
173
sampler_algo .change (fn = set_sampler_original_options , inputs = [sampler_options , sampler_algo ], outputs = [])
174
174
else :
@@ -179,7 +179,7 @@ def set_sampler_diffuser_options(sampler_options):
179
179
values += ['dynamic threshold' ] if shared .opts .data .get ('schedulers_use_thresholding' , False ) else []
180
180
values += ['low order' ] if shared .opts .data .get ('schedulers_use_loworder' , True ) else []
181
181
values += ['rescale beta' ] if shared .opts .data .get ('schedulers_rescale_betas' , False ) else []
182
- sampler_options = gr .CheckboxGroup (label = 'Sampler options' , choices = choices , value = values , type = 'value' )
182
+ sampler_options = gr .CheckboxGroup (label = 'Sampler options' , elem_id = f" { tabname } _sampler_options" , choices = choices , value = values , type = 'value' )
183
183
sampler_options .change (fn = set_sampler_diffuser_options , inputs = [sampler_options ], outputs = [])
184
184
return steps , sampler_index
185
185
0 commit comments