57 Commits

Author SHA1 Message Date
Vladimir Mandic ce69dd4f17 image metadata handle correct image index
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-08-14 10:44:56 +02:00
CalamitousFelicitousness adf0385c52 fix(sampler): record and restore Default instead of the None sentinel
The keep-current-scheduler sentinel leaked into user-facing surfaces:
infotexts and filenames recorded Sampler: None, restoring such an
infotext pushed an invalid value into the dropdown, and the API
samplers list never offered Default at all.

- infotext always records the sampler, mapping a stray None to Default
- parse maps legacy Sampler: None infotexts to Default
- api samplers list leads with Default; the remaining excluded config
  keys are shared templates, not samplers
2026-08-10 02:44:56 +01:00
Claude 7d1ba849e1 fix batch list padding in create_infotext corrupting infotext indices
padding loops used insert(0) which shifts existing prompt/seed entries
to higher indices, so subsequent index lookups - including the caller's
own p.prompts[i]/p.seeds[i] reads on the same aliased lists - return
values belonging to a different image; append preserves existing
index-to-entry mapping and pads missing slots at the end

https://claude.ai/code/session_01UZT4ypkGQH5fzJ89dXPFYp
2026-06-11 01:42:42 -04:00
CalamitousFelicitousness f9ab0bf04d feat(api): add detailer postprocess script and /sdapi/v1/detail endpoint
Surface YoloRestorer.restore() as a standalone operation: a Detailer
postprocessing script in the Process tab and a thin /sdapi/v1/detail
endpoint, neither requiring a base generation pass.

- modules/postprocess/yolo.py: YoloRestorer.make_processing() builds the
  synthetic Img2Img processing object both entry points feed to restore(),
  resolving the seed so the inpaint passes are reproducible
- modules/api/process.py: post_detail handler exposes the full detailer
  parameter set and returns the detailed image plus optional annotations
  as base64
- scripts/postprocessing_detailer.py: reuses shared.yolo.ui('extras') and
  runs through make_processing()
- modules/postprocessing.py: run_extras takes a per-script script_args
  dict, also letting the extras API drive other scripts such as Remove
  background; omitting it leaves existing callers unchanged
- modules/api/models.py: ReqDetail / ResDetail
- modules/processing_info.py: guard create_infotext's Image/Hires CFG
  reporting against an unset (None) cfg_image, matching the is-not-None
  checks the other cfg_image readers use; the detailer inpaint pass runs
  with it unset
- test/test-detailer-api.py: covers both paths; effect tests measure the
  diff inside the detected region with extreme isolated parameter values,
  and the suite disables model quantization for the run and restores the
  original settings afterward
2026-06-01 00:25:59 +01:00
Vladimir Mandic a56d1d299e add wildcards to image metadata and note separate template from prompt field
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-19 09:45:20 +02:00
Vladimir Mandic f67562b912 - all guidance values set to -1 to enable using model defaults
- log default values used if not overriden by user
- rename inconsistent guidance variables:

p.cfg_scale
p.image_cfg_scale -> p.cfg_image
p.diffusers_guidance_rescale -> p.cfg_rescale
p.pag_scale -> p.cfg_true
p.pag_adaptive -> p.cfg_adaptive

Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-16 11:06:23 +02:00
vladmandic e0faa149dd cleanup
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-13 14:44:58 +01:00
vladmandic 4effd92663 merge: modules/processing_info.py 2026-03-13 14:30:53 +01:00
Vladimir Mandic f78f0eb4a5 refactor imports 2026-02-19 15:28:24 +01:00
Vladimir Mandic e5c494f999 cleanup logger 2026-02-19 11:09:13 +01:00
Vladimir Mandic a3074baf8b unified logger 2026-02-19 09:46:42 +01:00
vladmandic b9f1acdbc2 add scheduler class to image metadata
Signed-off-by: vladmandic <mandic00@live.com>
2026-02-04 13:20:26 +01:00
vladmandic 0a8f5f2aa3 fix todo metadata
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-30 22:15:09 +01:00
awsr 533c13a2d5 Remove conditional Hires sampler omission
Fixes restoring parameters when your default hires sampler isn't "Same as primary". In those cases, only the main sampler would be updated because there's no value stored for the hires sampler.

While technically you *could* assume that "Same as primary" is meant when other hires settings are loaded without a value for the sampler, it would be a lot more complicated to actually implement. Honestly, it's just better and probably more "expected behavior" to always include the information when using Hires.
2025-11-10 15:16:40 -08:00
awsr 90e800a587 Fix Hires info text handling 2025-11-07 12:58:49 -08:00
Vladimir Mandic fbd24c290a experiments with repa-e
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-27 15:28:20 -04:00
Vladimir Mandic 65ef25cecc Fix CFG scale not added to metadata and set valid range to >=1.0
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-18 12:31:32 -04:00
Vladimir Mandic 9c4780a5e7 fix guidance metadata
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-10-09 09:25:49 -04:00
Vladimir Mandic 9cee2cd1ed fix metadata on batched images
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-25 13:45:23 -04:00
Vladimir Mandic 4093b6c040 allow custom detailer resolution
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-10 16:32:50 -04:00
Vladimir Mandic 77e0eecf58 fix inpaint image metadata
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-30 07:25:34 -04:00
Vladimir Mandic a852d1cea9 add detailer expert mode
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-21 10:39:19 -04:00
Vladimir Mandic 89ec1c09db improve git error logging
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-17 08:18:52 -04:00
Vladimir Mandic 878fda65ab refactor control processing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-16 11:04:48 -04:00
Vladimir Mandic 9700cc765d cleanup gen infotext
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-07 20:09:19 -04:00
Vladimir Mandic e8b5ea3847 major refactor: remove backend original
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-05 13:16:46 -04:00
Vladimir Mandic 75ebf1e196 hidream add llm info to metadata
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-04-17 14:44:37 -04:00
Vladimir Mandic a5f796a166 change field used for true cfg
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-04-03 10:24:55 -04:00
Vladimir Mandic ecb6730838 fix sampler metadata when using default sampler
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-27 13:22:09 -04:00
Vladimir Mandic 46bc0834b1 video tab major update
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-21 14:53:52 -04:00
Vladimir Mandic c5c3be04fb video tab first prototype
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-18 18:40:08 -04:00
Vladimir Mandic 942553a504 rename vae and unet none to default
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-03-16 18:46:26 -04:00
iDeNoh 7e63b389c9 Added remote vae type to infotext.py and processing_info.py 2025-03-13 13:56:36 -05:00
Vladimir Mandic c11952ad5b update logs styles infotext
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-24 08:24:14 -05:00
Vladimir Mandic 1b2d4286b5 add remote vae
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-22 14:25:58 -05:00
Vladimir Mandic c608674fb0 styles support parsed and upparsed save and apply
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-02-11 11:33:37 -05:00
Vladimir Mandic 8b787ec721 image metadata civitai compatibility
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-24 09:20:10 -05:00
Vladimir Mandic 5593ea78a9 refactor detailer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-07 10:12:47 -05:00
Vladimir Mandic 3047f92a4a improve metadata
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-01-04 13:56:00 -05:00
Vladimir Mandic ca06002602 lora maintain device
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-12-04 09:25:57 -05:00
Vladimir Mandic 9492228175 improve auto-pipeline switch
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-12 11:18:06 -05:00
Vladimir Mandic 66820edb63 update
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-11-12 11:02:34 -05:00
Vladimir Mandic 6760632f38 major model load refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-26 13:22:29 -04:00
Vladimir Mandic ea0dfebe2d better handle any quant lib requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-12 13:36:16 -04:00
Vladimir Mandic 57ebdf0826 fix control size metadata
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-08 12:16:53 -04:00
Vladimir Mandic 3bbcc33181 add detailer
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-07 09:32:56 -04:00
Vladimir Mandic 04a5071249 face-hires -> detailer refactor
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-06 11:23:33 -04:00
Vladimir Mandic 176c5c5773 sampler options rewrite
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2024-10-03 09:38:38 -04:00
Vladimir Mandic 4136983f82 add reprocess plus major processing refactor 2024-09-24 20:31:05 -04:00
Vladimir Mandic a92e1ce664 enable full resize opts in hires 2024-09-08 12:32:45 -04:00