Files
wildminder-ComfyUI-KEEP/tests
WildAi 58d8b11ade Round 11: resize the single-face no-face short-circuit to the paste canvas
Round-11 upscaler-pipeline audit (owner task: check whether the bg/face
upscaler inputs are applied correctly or erroneous, and how they compose
with final_upscale_factor):

- VERDICT: the two upscaler models are quality operators only - their
  output scales are always absorbed by resizes (batched_bg_frames /
  vendored paste / aligned path); final_upscale_factor alone fixes the
  output geometry (the paste canvas x factor), exactly as the node
  tooltip states.  Slowdown with x4 models is the documented design
  (a face upscaler disqualifies the batched paste; bg model runs per
  fallback frame; the canvas is model-widened x factor).
- CONFIRMED ERROR (the one real bug found, reproduced CPU-only in three
  configurations): the single-face no-face/affine-None short-circuit
  appended the raw _run_upscaler output without the factor/canvas
  resize, so a bg model with scale != factor or a sub-512 clip mixed row
  sizes and crashed the convert-out (np.stack ValueError).  The
  multiface sibling already resized (round 10); this applies the same
  paste_canvas_hw + LANCZOS4 resize to the single-face site.
- The twin size check (:1352) is dead code (all_restored_faces_cv2 is
  preallocated to num_input_frames) - no fix required.
- One pin's paste stub corrected to the real 512x512 canvas with a
  dated docstring; no fixture re-capture needed (only rows that crashed
  the run change pixels).

Gate: 555 passed, 6 skipped, 7 deselected, 0 failed (baseline 555).
2026-10-31 13:51:39 +03:00
..