mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-03-22 22:30:45 -07:00
M07: Opts snapshot introduction
- Add modules/opts_snapshot.py with create_opts_snapshot(opts) - Capture snapshot in process_images_inner after prepare_prompt_seed_state - Full shallow copy of opts.data via SimpleNamespace - No runtime behavior change; snapshot write-only for M07 Made-with: Cursor
This commit is contained in:
parent
044e827dee
commit
87c8fe8651
4 changed files with 387 additions and 10 deletions
|
|
@ -26,6 +26,7 @@ import modules.paths as paths
|
|||
import modules.face_restoration
|
||||
import modules.images as images
|
||||
import modules.styles
|
||||
from modules.opts_snapshot import create_opts_snapshot
|
||||
import modules.prompt_seed_prep as prompt_seed_prep
|
||||
import modules.runtime_utils as runtime_utils
|
||||
import modules.sd_models as sd_models
|
||||
|
|
@ -891,6 +892,7 @@ def process_images_inner(p: StableDiffusionProcessing) -> Processed:
|
|||
p.setup_prompts()
|
||||
|
||||
prompt_seed_prep.prepare_prompt_seed_state(p)
|
||||
p.opts_snapshot = create_opts_snapshot(shared.opts)
|
||||
|
||||
if os.path.exists(cmd_opts.embeddings_dir) and not p.do_not_reload_embeddings:
|
||||
model_hijack.embedding_db.load_textual_inversion_embeddings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue