2.2 Creator - Diffusion Guidance - After
2.2 Creator - Diffusion Guidance - Before

El flujo de trabajo '2.2 Creator - Diffusion Guidance' en ComfyUI está diseñado para mejorar la precisión en la edición de imágenes integrando técnicas de inpainting y ControlNet. En el núcleo de este flujo está el modelo Z Image Turbo, que facilita procesos de difusión eficientes y precisos. El flujo emplea varios nodos, como CLIPLoader y VAELoader, para cargar y procesar imágenes, mientras que nodos como DifferentialDiffusion e InpaintModelConditioning se usan para guiar la difusión con cambios espaciales variables. Esto lo hace especialmente útil para tareas que requieren edición detallada sin necesidad de reentrenar el modelo.

El flujo aprovecha ControlNet para proporcionar guía estructural, como bordes canny o mapas de profundidad, asegurando que la difusión respete los elementos estructurales deseados. Esto se logra mediante nodos como ZImageFunControlnet y Controlnet Preprocessor. Usando mapas de 'fuerza' por píxel, el flujo permite cambios suaves y graduales, siendo ideal para aplicaciones que demandan alta precisión y control, como el inpainting de áreas específicas manteniendo la integridad del contexto circundante.

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.

Preguntas frecuentes

Preguntas Frecuentes

Ver todos los 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