add steps info to performance selection radio buttons
This commit is contained in:
parent
0e7c42f6e8
commit
87fc830981
|
|
@ -66,7 +66,7 @@ function on_style_selection_blur() {
|
|||
}
|
||||
|
||||
onUiLoaded(async () => {
|
||||
let spans = document.querySelectorAll('.aspect_ratios span');
|
||||
let spans = document.querySelectorAll('.aspect_ratios span, .performance_selections span');
|
||||
|
||||
spans.forEach(function (span) {
|
||||
span.innerHTML = span.innerHTML.replace(/</g, '<').replace(/>/g, '>');
|
||||
|
|
|
|||
|
|
@ -33,7 +33,13 @@ default_parameters = {
|
|||
} # stop, weight
|
||||
|
||||
inpaint_engine_versions = ['None', 'v1', 'v2.5', 'v2.6']
|
||||
performance_selections = ['Speed', 'Quality', 'Extreme Speed']
|
||||
|
||||
|
||||
performance_selections = [
|
||||
(f'Speed <span style="color: grey;"> \U00002223 30 steps</span>', 'Speed'),
|
||||
(f'Quality <span style="color: grey;"> \U00002223 60 steps</span>', 'Quality'),
|
||||
(f'Extreme Speed <span style="color: grey;"> \U00002223 8 steps, LCM</span>', 'Extreme Speed')
|
||||
]
|
||||
|
||||
inpaint_option_default = 'Inpaint or Outpaint (default)'
|
||||
inpaint_option_detail = 'Improve Detail (face, hand, eyes, etc.)'
|
||||
|
|
|
|||
3
webui.py
3
webui.py
|
|
@ -214,7 +214,8 @@ with shared.gradio_root:
|
|||
with gr.Tab(label='Setting'):
|
||||
performance_selection = gr.Radio(label='Performance',
|
||||
choices=modules.flags.performance_selections,
|
||||
value=modules.config.default_performance)
|
||||
value=modules.config.default_performance,
|
||||
elem_classes='performance_selections')
|
||||
aspect_ratios_selection = gr.Radio(label='Aspect Ratios', choices=modules.config.available_aspect_ratios,
|
||||
value=modules.config.default_aspect_ratio, info='width × height',
|
||||
elem_classes='aspect_ratios')
|
||||
|
|
|
|||
Loading…
Reference in New Issue