feat: revert adding detailed steps for each performance

This commit is contained in:
Manuel Schmid
2024-07-14 21:06:59 +02:00
parent e1f4b65fc9
commit ee02643020
3 changed files with 3 additions and 13 deletions
+1 -1
View File
@@ -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(/&lt;/g, '<').replace(/&gt;/g, '>');
-9
View File
@@ -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))
+2 -3
View File
@@ -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,