Use tl::function_ref instead of std::function whenever you don't need to own the callable. The most common case for this is function parameters which aren't stored anywhere: ...
ReF-LDM leverages a flexible number of reference images to restore a low-quality (LQ) face image into a high-quality (HQ) one. FFHQ-Ref contains 20,405 high-quality face images with corresponding ...