
GFPGAN blind face restoration on an Image. Faces are detected, restored and pasted into the upscaled frame; the sink picks the output arm: the restored Image, a UInt64 face count, or the per-face crops.
Restore faces in a folder of photos and serve the full frames over HTTP.
Restore faces in a live stream and push the cleaned frames to the browser.
oneof t[Image, UInt64, [Image]] of the same restoration: the full restored frame, the UInt64 face count, or the list of per-face 512x512 crops. The count equals the crops length for every frame. Output pixels are RGB regardless of the input colour order.
Image arm returns the source enlarged by upscale, the UInt64 arm 0, and the [Image] arm an empty list; a zero-sized frame is passed through on the full-frame arm.
arch; a mismatched pair loads incorrectly. Both are captured once at startup, so switching variants requires a redeploy.
upscale enlarges the whole output frame by that factor on top of face restoration, so a larger factor raises memory and time roughly with the output area; the per-face crops stay 512x512 regardless.
Automated release