feat: revert adding detailed steps for each performance
This commit is contained in:
parent
e1f4b65fc9
commit
ee02643020
|
|
@ -66,7 +66,7 @@ function on_style_selection_blur() {
|
|||
}
|
||||
|
||||
onUiLoaded(async () => {
|
||||
let spans = document.querySelectorAll('.aspect_ratios span, .performance_selections span');
|
||||
let spans = document.querySelectorAll('.aspect_ratios span');
|
||||
|
||||
spans.forEach(function (span) {
|
||||
span.innerHTML = span.innerHTML.replace(/</g, '<').replace(/>/g, '>');
|
||||
|
|
|
|||
|
|
@ -187,12 +187,3 @@ class Performance(Enum):
|
|||
|
||||
def lora_filename(self) -> str | None:
|
||||
return PerformanceLoRA[self.name].value if self.name in PerformanceLoRA.__members__ else None
|
||||
|
||||
|
||||
performance_selections = []
|
||||
|
||||
for name, value in Performance.list():
|
||||
restricted_text = ''
|
||||
if Performance.has_restricted_features(value):
|
||||
restricted_text = '*'
|
||||
performance_selections.append((f'{value} <span style="color: grey;"> \U00002223 {Steps[name].value} steps {restricted_text}</span>', Performance[name].value))
|
||||
|
|
|
|||
5
webui.py
5
webui.py
|
|
@ -542,10 +542,9 @@ with shared.gradio_root:
|
|||
interactive=True)
|
||||
|
||||
performance_selection = gr.Radio(label='Performance',
|
||||
info='* = restricted feature set, intermediate results disabled',
|
||||
choices=modules.flags.performance_selections,
|
||||
choices=flags.Performance.values(),
|
||||
value=modules.config.default_performance,
|
||||
elem_classes='performance_selections')
|
||||
elem_classes=['performance_selection'])
|
||||
|
||||
with gr.Accordion(label='Aspect Ratios', open=False, elem_id='aspect_ratios_accordion') as aspect_ratios_accordion:
|
||||
aspect_ratios_selection = gr.Radio(label='Aspect Ratios', show_label=False,
|
||||
|
|
|
|||
Loading…
Reference in New Issue