The ComfyUI PMRF workflow integrates the revolutionary Posterior-Mean Rectified Flow algorithm into the ComfyUI environment for photo-realistic face restoration. Based on cutting-edge research from Technion—Israel Institute of Technology (ICLR 2025), ComfyUI PMRF addresses the fundamental challenge in image restoration: achieving minimal distortion while maintaining perfect perceptual quality. Unlike traditional methods that rely on posterior sampling or GAN-based approaches, ComfyUI PMRF approximates the mathematically optimal estimator that minimizes Mean Squared Error (MSE) under a perfect perceptual quality constraint.
⚡ UNPRECEDENTED SPEED PERFORMANCE ⚡
This ComfyUI PMRF workflow is ULTRA-FAST - delivering results in mere seconds! At 1.29 seconds for 2x upscaling, ComfyUI PMRF is faster than ANY upscale workflow currently available on RunComfy platform. While other methods take minutes, ComfyUI PMRF completes face restoration in the time it takes to blink!
For other upscale workflows, please see the bottom of this page
Example Setup for ComfyUI PMRF Face Restoration:
Load Image
node:
num_steps
(25 for speed, 100 for maximum quality)scale
(2.0 for 2x upscaling, adjust as needed)Queue Prompt
button to run the ComfyUI PMRF workflowSave Image
: get your enhanced face restoration outputComfyUI PMRF Core Node: This node performs the posterior-mean rectified flow restoration process.
scale
: Upscaling factor for the output image (2.0 = 2x larger, 1.5 = 1.5x larger, etc.).num_steps
: Number of rectified flow iterations.seed
: Random seed for reproducible results.control_after_generate
: Determines seed behavior for batch processing (randomize/fixed).interpolation
: Resampling method used during upscaling process (lanczos4 recommended for best quality).Understanding the Scale Parameter in ComfyUI PMRF:
The scale
parameter controls the upscaling factor - it's a multiplier for your image dimensions. To calculate the correct scale value for ComfyUI PMRF:
Scale Calculation Formula:
scale = Target Resolution ÷ Input Resolution
Practical Examples for ComfyUI PMRF:
scale: 2.0
(3840÷1920=2.0)scale: 3.0
(3840÷1280=3.0)scale: 2.0
(2560÷1280=2.0)💡 Pro Tip: Iterative Enhancement
For heavily degraded images where single-pass results aren't satisfactory, you can use iterative processing: Take the ComfyUI PMRF output and feed it back as input for another round of restoration. This multi-pass approach can achieve even better results for extremely challenging images.
Think of image restoration like fixing a blurry photograph. Traditional methods either make the image too smooth (losing important details) or add weird artifacts when trying to make it look natural. ComfyUI PMRF solves this by using a two-step approach: first, it creates the "best guess" of what the clear image should look like, then it uses advanced mathematics to transport this guess to look perfectly natural - like the difference between a rough sketch and a finished painting.
ComfyUI PMRF addresses the fundamental "distortion-perception tradeoff" in image restoration. The key insight is that the optimal way to restore images isn't to guess randomly (like most AI methods do), but to follow a mathematically proven path. ComfyUI PMRF first predicts the "posterior mean" (the statistically best guess), then uses "rectified flow" to optimally transport this prediction to the natural image distribution. This ensures both minimal error and maximum visual quality.
For additional details and development references:
This ComfyUI PMRF workflow is powered by PMRF (Posterior-Mean Rectified Flow), developed by Guy Ohayon, Tomer Michaeli, and Michael Elad from Technion—Israel Institute of Technology. The research was published at ICLR 2025.
The ComfyUI PMRF integration includes bug fixes for memory issues in the original implementation. Full credit goes to the original authors for their groundbreaking work in photo-realistic image restoration.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.