mirror of
https://github.com/vladmandic/automatic
synced 2026-08-26 15:16:01 +02:00
update override settings
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -404,8 +404,8 @@ def control_run(state: str = '', # pylint: disable=keyword-arg-before-vararg
|
||||
outpath_grids=shared.opts.outdir_grids or shared.opts.outdir_control_grids,
|
||||
# overrides
|
||||
override_settings=extra
|
||||
|
||||
)
|
||||
|
||||
p.state = state
|
||||
p.is_tile = False
|
||||
p.init_control = inits or []
|
||||
|
||||
@@ -252,7 +252,8 @@ def connect_paste(button, local_paste_fields, input_comp, override_settings_comp
|
||||
val = valtype(v)
|
||||
res.append(gr.update(value=val))
|
||||
applied[key] = val
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
shared.log.error(f'Paste param: key="{key}" value="{v}" error="{e}"')
|
||||
res.append(gr.update())
|
||||
list_applied = [{k: v} for k, v in applied.items() if not callable(v) and not callable(k)]
|
||||
shared.log.debug(f"Prompt restore: apply={list_applied} skip={skipped}")
|
||||
|
||||
@@ -87,6 +87,7 @@ def parse(infotext):
|
||||
|
||||
mapping = [
|
||||
# Models
|
||||
('Model', 'sd_model_checkpoint'),
|
||||
('Model hash', 'sd_model_checkpoint'),
|
||||
('Refiner', 'sd_model_refiner'),
|
||||
('VAE', 'sd_vae'),
|
||||
|
||||
Reference in New Issue
Block a user