2.2 Creator - Orientação de Difusão - After
2.2 Creator - Orientação de Difusão - Before

O fluxo de trabalho '2.2 Creator - Orientação de Difusão' no ComfyUI foi desenvolvido para aprimorar a precisão na edição de imagens integrando técnicas de inpainting e ControlNet. O modelo central deste fluxo é o Z Image Turbo, que facilita processos de difusão eficientes e precisos. O fluxo utiliza diversos nós, como CLIPLoader e VAELoader, para carregar e processar imagens, enquanto nós como DifferentialDiffusion e InpaintModelConditioning orientam o processo de difusão com alterações espaciais variadas. Isso o torna especialmente útil para tarefas que exigem edição detalhada sem necessidade de retreinamento do modelo.

O fluxo aproveita o ControlNet para fornecer orientação estrutural, como bordas canny ou mapas de profundidade, garantindo que a difusão siga elementos estruturais desejados. Isso é feito por meio de nós como ZImageFunControlnet e Controlnet Preprocessor. Utilizando mapas de 'força' por pixel, o fluxo permite alterações suaves e graduais, sendo ideal para aplicações que exigem alta precisão e controle, como inpainting de áreas específicas mantendo a integridade do contexto ao redor.

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

gsc_creator_2_2.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

FAQ

Perguntas Frequentes

Ver todos os workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates