Pipeline Stages
- Load Content Image: the image whose structure you want to keep
- Load Style Reference: the artistic image whose style you want to adopt
- Preprocess ControlNet: run canny or depth on the content image (control strength 0.6-0.8)
- Load Checkpoint: SDXL or SD1.5 base model
- Positive Prompt: describe the style reference (e.g., "oil painting, impasto brushstrokes, warm palette")
- Negative Prompt: "blurry, deformed, low quality, watermark"
- VAE Encode (content): encode content image to latent
- KSampler: denoise 0.55-0.7, steps 25-30, CFG 7-9, with ControlNet applied
- VAE Decode: latent to image
- Upscale (optional): 4x-UltraSharp for final detail
- Save Image: output to disk
Recommended Parameters
- ControlNet strength: 0.7 (structure preservation)
- Denoisestrength: 0.6
- Steps: 28
- CFG: 8
FAQ
What is a ComfyUI style transfer pipeline?
A multi-stage ComfyUI workflow that takes a content image and a style reference, then generates a new image preserving the content's structure while adopting the reference's artistic style. This template chains img2img, ControlNet, and upscaling nodes.
Which ControlNet works best for style transfer?
For preserving structure, use ControlNet with canny or depth preprocessor on the content image. Set control strength around 0.6-0.8 to keep composition while allowing style to dominate.