Files
automatic/modules/api
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
..
2026-05-14 13:16:26 +02:00
2026-03-14 12:46:43 +01:00
2026-05-13 11:44:32 +02:00
2026-04-25 14:48:07 +02:00
2026-03-14 12:46:43 +01:00
2026-03-27 14:15:44 -07:00
2026-03-12 14:16:50 +01:00
2026-04-12 18:54:22 +02:00
2025-11-14 15:47:13 -05:00
2026-04-12 18:54:22 +02:00
2026-03-27 14:15:44 -07:00
2026-04-12 18:54:22 +02:00
2026-03-27 14:15:44 -07:00
2026-05-09 17:09:55 +02:00
2026-03-12 09:20:19 +01:00
2026-05-14 13:16:26 +02:00
2026-03-27 14:15:44 -07:00
2026-04-12 18:54:22 +02:00