mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
add steps info to performance selection radio buttons
This commit is contained in:
@@ -66,7 +66,7 @@ function on_style_selection_blur() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onUiLoaded(async () => {
|
onUiLoaded(async () => {
|
||||||
let spans = document.querySelectorAll('.aspect_ratios span');
|
let spans = document.querySelectorAll('.aspect_ratios span, .performance_selections span');
|
||||||
|
|
||||||
spans.forEach(function (span) {
|
spans.forEach(function (span) {
|
||||||
span.innerHTML = span.innerHTML.replace(/</g, '<').replace(/>/g, '>');
|
span.innerHTML = span.innerHTML.replace(/</g, '<').replace(/>/g, '>');
|
||||||
|
|||||||
+7
-1
@@ -33,7 +33,13 @@ default_parameters = {
|
|||||||
} # stop, weight
|
} # stop, weight
|
||||||
|
|
||||||
inpaint_engine_versions = ['None', 'v1', 'v2.5', 'v2.6']
|
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_default = 'Inpaint or Outpaint (default)'
|
||||||
inpaint_option_detail = 'Improve Detail (face, hand, eyes, etc.)'
|
inpaint_option_detail = 'Improve Detail (face, hand, eyes, etc.)'
|
||||||
|
|||||||
@@ -214,7 +214,8 @@ with shared.gradio_root:
|
|||||||
with gr.Tab(label='Setting'):
|
with gr.Tab(label='Setting'):
|
||||||
performance_selection = gr.Radio(label='Performance',
|
performance_selection = gr.Radio(label='Performance',
|
||||||
choices=modules.flags.performance_selections,
|
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,
|
aspect_ratios_selection = gr.Radio(label='Aspect Ratios', choices=modules.config.available_aspect_ratios,
|
||||||
value=modules.config.default_aspect_ratio, info='width × height',
|
value=modules.config.default_aspect_ratio, info='width × height',
|
||||||
elem_classes='aspect_ratios')
|
elem_classes='aspect_ratios')
|
||||||
|
|||||||
Reference in New Issue
Block a user