Skip to content

Commit

Permalink
feat: revert adding detailed steps for each performance
Browse files Browse the repository at this point in the history
  • Loading branch information
mashb1t committed Jul 14, 2024
1 parent e1f4b65 commit ee02643
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
2 changes: 1 addition & 1 deletion javascript/viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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, '>');
Expand Down
9 changes: 0 additions & 9 deletions modules/flags.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,12 +187,3 @@ def steps_uov(self) -> int | None:

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 changes: 2 additions & 3 deletions webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,9 @@ def trigger_metadata_preview(filepath):
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,
Expand Down

0 comments on commit ee02643

Please sign in to comment.