P-H3-Image edits your photo with guidance from a reference image.
Who it's for: creators who want this pipeline in ComfyUI without assembling nodes from scratch. Not for: one-click results with zero tuning - you still choose inputs, prompts, and settings.
Open preloaded workflow on RunComfy
Open preloaded workflow on RunComfy (browser)
Why RunComfy first
- Fewer missing-node surprises - run the graph in a managed environment before you mirror it locally.
- Quick GPU tryout - useful if your local VRAM or install time is the bottleneck.
- Matches the published JSON - the zip follows the same runnable workflow you can open on RunComfy.
When downloading for local ComfyUI makes sense - you want full control over models on disk, batch scripting, or offline runs.
How to use (local ComfyUI)
1. Load inputs (images/video/audio) in the marked loader nodes.
2. Set prompts, resolution, and seeds; start with a short test run.
3. Export from the Save / Write nodes shown in the graph.
Expectations - First run may pull large weights; cloud runs may require a free RunComfy account.
Overview
Edit a source image using a second image as a visual reference. The default scene places an indigo origami whale among distant clouds, with a foreground cloud crossing its tail while the airplane window stays in view.
Important nodes:
Key nodes
PH3ImageConditioning (#30)
This node combines the source image, the reference image, and the instruction to produce the positive conditioning and an aligned latent. It ensures the edit respects the source composition while borrowing content or style from the reference. Use the switch on node #24 to select the instruction that feeds this node.
TextGenerate Prompt upsampler (#23)
This component reads both images and expands a short request into a richer, image-aware brief. It is especially helpful for complex spatial relations like “keep the airplane window” or “place the whale far away behind the cloud band.” Use Use prompt upsampler (#24) to quickly A/B test with and without upsampling to see which yields the best P-H3-Image ComfyUI Image Edit.
ImageScaleToTotalPixels “image_1 at 4 MP” (#31)
Controls the working resolution of the edit while keeping aspect ratio. Higher settings emphasize fine detail and stable edges; lower settings preview faster. This is the primary lever for balancing quality and speed without changing your instruction or the rest of the P-H3-Image ComfyUI Image Edit graph.
SamplerCustomAdvanced (#11)
Executes the denoising process using the selected sampler, sigma schedule, and guider. It is the place where variations from seed, sampler choice, or schedule translate into different looks. Keep the conditioning steady while you explore sampler options to understand how they influence the edit’s crispness and adherence.
MiniMaxH3SigmaShift (#27)
Adapts the loaded P-H3-Image diffusion model for stable sampling with the chosen schedule. Leave it in the path for best results with this family of models. It helps the sampler track a noise schedule suited to P-H3-Image so edits remain consistent across seeds.
Notes
P-H3-Image ComfyUI Image Edit with a Reference Image - see RunComfy page for the latest node requirements.
Description
Initial release - P-H3-Image-I2I-ComfyUI.
