mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
Allow preset to set default inpaint engine.
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
version = '2.1.812'
|
||||
version = '2.1.813'
|
||||
|
||||
@@ -252,6 +252,11 @@ default_aspect_ratio = get_config_item_or_set_default(
|
||||
default_value='1152*896' if '1152*896' in available_aspect_ratios else available_aspect_ratios[0],
|
||||
validator=lambda x: x in available_aspect_ratios
|
||||
)
|
||||
default_inpaint_engine_version = get_config_item_or_set_default(
|
||||
key='default_inpaint_engine_version',
|
||||
default_value='v2.6',
|
||||
validator=lambda x: x in modules.flags.inpaint_engine_versions
|
||||
)
|
||||
|
||||
|
||||
def add_ratio(x):
|
||||
|
||||
@@ -33,6 +33,4 @@ default_parameters = {
|
||||
} # stop, weight
|
||||
|
||||
inpaint_engine_versions = ['v1', 'v2.5', 'v2.6']
|
||||
default_inpaint_engine_version = 'v2.6'
|
||||
|
||||
performance_selections = ['Speed', 'Quality', 'Extreme Speed']
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
# 2.1.813
|
||||
|
||||
* Allow preset to set default inpaint engine.
|
||||
|
||||
# 2.1.812
|
||||
|
||||
* Allow preset to set default performance.
|
||||
|
||||
@@ -337,7 +337,7 @@ with shared.gradio_root:
|
||||
info='Set as negative number to disable. For developer debugging.')
|
||||
|
||||
inpaint_engine = gr.Dropdown(label='Inpaint Engine',
|
||||
value=flags.default_inpaint_engine_version,
|
||||
value=modules.config.default_inpaint_engine_version,
|
||||
choices=flags.inpaint_engine_versions,
|
||||
info='Version of Fooocus inpaint model')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user