Commit Graph

83 Commits

Author SHA1 Message Date
Vladimir Mandic f69ce0d845 update requirements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-15 14:55:14 +02:00
CalamitousFelicitousness e804d6df21 feat(samplers): group sampler dropdown into labeled sections
Reorder samplers_data_diffusers into recognizable solver-family groups (Euler, DPM/DPM++, UniPC/DEIS, Heun/KDPM2, ER-SDE, Classic, Distilled, Misc), each ending with its FlowMatch variants, and Res4Lyf as a fenced experimental section, so the dropdown is scannable.

Dividers are SamplerData sentinels with U+2500 names: create_sampler keeps the current scheduler when one is selected, get_sampler_name falls back to Default, set_samplers and validate_sampler_name exclude them, and a visible_samplers() helper drops them from the xyz axes, detailer, and folder pickers. The main and refine dropdowns render them as section labels. No sampler is removed or renamed, so saved infotexts, styles, and API calls keep resolving.
2026-06-14 01:41:05 +01:00
QualiaRain 9f2374f5ff fix ui/misc: None desc crash, ratio/tile/lora split guards, parse_metadtaa typo, moondream type guard
Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-12 13:00:50 -04:00
Vladimir Mandic 5e99dee3c2 full codespell coverage
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-06-04 12:36:10 +02: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 4747ca2fc0 lora change detection improvements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-05-09 09:38:54 +02:00
awsr 278990a3d2 Fix detailer segmentation 2026-05-07 13:36:45 -07:00
awsr fb853af4b0 RUF013 updates 2026-03-24 04:58:19 -07:00
vladmandic 6427b799e9 merge: modules/postprocess/yolo.py 2026-03-17 10:50:09 +01:00
vladmandic de7959397c fb merge phase 3
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-16 10:32:12 +01:00
vladmandic 6a9b9297c1 cleanup yolo
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-16 08:30:23 +01:00
vladmandic 9013ba7bf1 cleanup yolo
Signed-off-by: vladmandic <mandic00@live.com>
2026-03-14 13:01:51 +01:00
vladmandic 2fb9e2115e merge: modules/postprocess/yolo.py 2026-03-14 12:56:06 +01:00
Vladimir Mandic 47543663f9 cleanup references to p.sd_model
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2026-02-19 20:48:42 +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
Vladimir Mandic bfe014f5da modernize typing 2026-02-19 09:15:37 +01:00
CalamitousFelicitousness 356505cab2 refactor: remove ONNX face upscaler support from detailer
- Remove codeformer, restoreformer, GFPGANv1.4, and GPEN-BFR ONNX
  model URLs from the predefined list
- Remove the .fp16 ONNX restorer code path that bypassed detailer
  processing to run face restoration directly
2026-02-08 22:59:45 +00:00
vladmandic a4671045b6 lint and crlf
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-24 10:28:46 +01:00
vladmandic 0073fa55e3 fix detailer double save
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-22 19:38:37 +01:00
Vladimir Mandic c1f9646eaa Merge pull request #4541 from awsr/save-update
Update config saving
2026-01-11 13:05:29 +01:00
awsr 0faabffc14 Simplify options init/save/load 2026-01-10 13:27:38 -08:00
vladmandic 2cba0d8fe0 explictly disable hires for detailer pass
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-10 10:26:51 +01:00
vladmandic 3ec1f604d2 cleanup label
Signed-off-by: vladmandic <mandic00@live.com>
2026-01-06 10:57:45 +01:00
vladmandic dde91321b9 genai exception handling and lint all
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-22 20:29:50 +01:00
vladmandic e2fb70d4a1 detailer draw segmentation overlays
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-17 10:03:17 +01:00
vladmandic a7956d0c5c detailer support for segmentation models and use of segmentation masks
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-16 22:51:52 +01:00
vladmandic 7bd04e0b5c add /detailers api endpoint
Signed-off-by: vladmandic <mandic00@live.com>
2025-12-06 12:33:52 +01:00
vladmandic 246bfcb453 fix multi-detailer
Signed-off-by: vladmandic <mandic00@live.com>
2025-11-24 10:52:10 -05:00
Vladimir Mandic a5c5635968 detailer validate if model is compatible
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-10 07:53:45 -05:00
Vladimir Mandic c6593ac180 fix detailer with lora
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-09 09:14:26 -05:00
Vladimir Mandic 1c95960fb0 fix detailer with face-restorers
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-08 08:12:33 -05:00
Vladimir Mandic db3f5ff01b detailer expert mode enhance parsing
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-04 10:41:23 -05:00
Vladimir Mandic dcdb8d3a29 merge detailer annotations
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-03 13:50:38 -05:00
Vladimir Mandic f4400adb74 detailer improvements
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-11-01 21:38:48 -04:00
Vladimir Mandic 0f7d2e95ca fix state interrupted checks
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-14 13:03:03 -04:00
Vladimir Mandic 175e9cbe29 cleanup/refactor state history
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-12 16:12:45 -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 65287eb402 add detailer prompt styling
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-09-10 15:48:45 -04:00
Vladimir Mandic b2dbef53e5 restyled all toolbuttons to be modernui native
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-31 15:01:50 -04:00
Vladimir Mandic 2c740697c4 guard against null prompt
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-08-18 10:29:01 -04:00
Vladimir Mandic 7dcc5b67f6 fix yolo model refresh
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-29 06:04:14 -04:00
Vladimir Mandic 8ec16d5b8c update modernui
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-28 13:47:13 -04:00
Vladimir Mandic 896c3ce9c2 fix detailer min/max thresholds
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-26 08:41:12 -04:00
Vladimir Mandic fc0e0635b5 detailer add option to merge multiple results into composite mask
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-24 15:32:07 -04:00
Vladimir Mandic 41269b05c0 handle startup errors
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-22 10:19:30 -04:00
Vladimir Mandic 0cc48bb429 improve details model parser
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-21 13:42:16 -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 79d0fb81af fix inpainting
Signed-off-by: Vladimir Mandic <mandic00@live.com>
2025-07-14 09:11:17 -04:00