Skip to content
ComfyDeploy

DreamO ID, IP, Style and Try-On (Flux)

Give it up to two reference images, pick a task for each (id, ip or style), and describe the scene. Set up for virtual try-on and identity-preserving portraits.

DreamO ID, IP, Style and Try-On (Flux) example output

How it works

The base model is flux1-dev-fp8 with clip_l, t5xxl_fp8_e4m3fn and ae.safetensors. The DreamO custom node package adds a DreamOProcessorLoader, two DreamORefEncode nodes (one per reference image) and ApplyDreamO, which injects the reference features into the model before sampling.

Each reference image is resized with ImageResizeKJv2, and BiRefNetRMBG can remove its background so only the subject is used. Each image is paired with a task: id, ip or style. KSampler runs the generation, and a Power Lora Loader (rgthree) is available for extra LoRAs.

Prompting is handled by an LLM Toolkit chain. A long system prompt (DreamO-Prompt-Generator) takes captions of the reference images, the mode (id, ip, style or try-on) and your one-line hint, and returns a prompt plus a suggested guidance value. StringReplace and JoinStringMulti nodes assemble the final text.

Tips

  • Use a clear front-facing photo for the id reference and a flat, uncluttered product photo for the ip reference.
  • If the face looks glossy, the generator prompt itself suggests lowering guidance from 3.5 to about 2.8.
  • Use a single reference by setting a task for image one only.
  • Start with a simple scene hint; the LLM expands it into a full prompt.

Run it as an API

Seed, tasks, prompts and the two image slots are ComfyDeploy inputs, so you can wire the workflow into a try-on feature through the API.

What you can use it for

  • Virtual try-on with a person photo and a garment photo
  • Putting a person into a new scene while keeping their face
  • Applying a painting or illustration style to a subject
  • Placing a product or accessory on a model

Run it in three steps

  1. Open the template

    Click Run on ComfyDeploy. The workflow, its custom nodes and models are set up for you on a cloud machine.

  2. Add your inputs

    Provide reference image 1 and reference image 2 in the playground or the ComfyUI editor.

  3. Run, share or deploy

    Run it on an A10G, share it with your team as a playground, or deploy it as an API endpoint.

Frequently asked questions

What GPU does the DreamO try-on workflow need?

The recommended GPU is the A10G. ComfyDeploy provisions it for you, so there is nothing to install.

What do the id, ip and style options do?

Each reference image is assigned one task. The Enum inputs offer id (a person or face), ip (an object or garment) and style (an art style). The default is id for image one and ip for image two.

Do I need an OpenAI key?

The prompt generator uses an OpenAI-compatible LLM node, set to gpt-4.1-mini by default. You can write the prompt by hand in the ACTION_MANUAL_PROMPT input instead.

Related workflows

All Flux workflows