diff --git a/es/get_started/first_generation.mdx b/es/get_started/first_generation.mdx index e5a4810acd..7be58ce51b 100644 --- a/es/get_started/first_generation.mdx +++ b/es/get_started/first_generation.mdx @@ -1,14 +1,15 @@ --- -title: "Stable Diffusion 1.5: crea tu primer flujo de trabajo de texto a imagen" -description: "Crea un flujo de trabajo de texto a imagen con Stable Diffusion 1.5 desde un lienzo vacío, coloca el archivo del modelo en la carpeta correcta, corrige un modelo faltante y ejecútalo." +title: "Tu primera imagen en ComfyUI" +description: "Genera tu primera imagen en ComfyUI: empieza desde una plantilla actual como Z-Image-Turbo, o construye un flujo de texto a imagen con Stable Diffusion 1.5 desde un lienzo vacío para aprender nodos y conexiones." sidebarTitle: "Primera generación" icon: "shoe-prints" -translationSourceHash: 28869800 +translationSourceHash: e9338118 translationFrom: get_started/first_generation.mdx translationBlockHashes: - "_intro": e25c7a8c - "Learn the parts of a Workflow": d42d55aa - "Download the model": bcd5fd13 + "_intro": 936c0ed5 + "Choose how to start": db837b36 + "Learn the parts of a Workflow": 2242d9a7 + "Download the model": 461190aa "Put the model in the `checkpoints` folder": 043c6d2b "Open a blank Workflow": 38cae5c7 "Add a Node": 7c9e54d5 @@ -16,16 +17,17 @@ translationBlockHashes: "Add the `Load Checkpoint` Node": 8f217224 "Add the `KSampler` Node": af572c00 "Add the prompt Nodes": 623914a4 - "Set the image size": e62d74ae + "Set the image size": 2d04c6e8 "Decode and save the image": dd196cc4 "Run the Workflow": bb569869 "Find the generated image": c49e1daa - "Load a Workflow from an image": 725d3575 - "Fix a missing model": 0317d1b6 + "Load a Workflow from an image": 07fea849 + "Fix a missing model": 659485a7 "Troubleshoot": bdee9477 + "Next steps": 04ff2ec2 --- -En este tutorial, crearás un flujo de trabajo de texto a imagen en un **lienzo** vacío y lo ejecutarás. Escribes la descripción de una imagen y ComfyUI genera a partir de ella una imagen de 512 × 512 con el modelo Stable Diffusion 1.5. Agregas y conectas cada nodo tú mismo. Cada paso indica qué hace el nodo y cómo saber que el paso funcionó. +Esta página te lleva primero a una imagen, y después te ayuda a entender cómo se construye un flujo de trabajo. Este tutorial usa ComfyUI en tu propia computadora: Comfy Desktop, ComfyUI Portable o una instalación manual. Instala ComfyUI y ábrelo antes de empezar. @@ -33,6 +35,63 @@ Este tutorial usa ComfyUI en tu propia computadora: Comfy Desktop, ComfyUI Porta Para usar ComfyUI en tu navegador sin instalar nada, [abre la plantilla de texto a imagen Z-Image-Turbo en Comfy Cloud](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation). +## Elige cómo empezar + +Usa las pestañas para elegir el camino inicial. **Plantilla** es lo recomendado para una primera imagen moderna. **Armar el grafo** enseña nodos y conexiones con Stable Diffusion 1.5 en un lienzo vacío. + + + +Las plantillas actuales de ComfyUI incluyen modelos abiertos modernos. **Z-Image-Turbo** es una buena primera imagen: pocos pasos de muestreo, buena calidad para su tamaño y una plantilla oficial mantenida. A diferencia de **Armar el grafo**, **no** montas nodos a mano: abres la plantilla, instalas sus modelos y ejecutas. + + + +### 1. Abrir la plantilla Z-Image-Turbo + +1. En ComfyUI, abre el explorador de plantillas (**Workflow → Browse Templates**, o la entrada Templates de la interfaz que uses). +2. Busca **Z-Image-Turbo** (texto a imagen). +3. Abre la plantilla para que se cargue en el lienzo. + + + ¿Prefieres el navegador sin instalar nada? [Abre la misma plantilla en Comfy Cloud](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation). Tarjetas de modelo y más flujos: [Z-Image-Turbo en ComfyUI](/es/tutorials/image/z-image/z-image-turbo). + + +### 2. Instalar los modelos + +Z-Image-Turbo necesita **tres** archivos (codificador de texto + modelo de difusión + VAE), no un solo checkpoint de SD 1.5: + +| Archivo | Carpeta | +| --- | --- | +| `qwen_3_4b.safetensors` | `ComfyUI/models/text_encoders/` | +| `z_image_turbo_bf16.safetensors` | `ComfyUI/models/diffusion_models/` | +| `ae.safetensors` | `ComfyUI/models/vae/` | + +**Camino más fácil — UI de modelos faltantes** + +1. Si tras cargar la plantilla aparece un aviso de modelo faltante, haz clic en **Ver detalles**. +2. En la pestaña **Problemas**, bajo **Modelos faltantes**, usa **Descargar** cuando Comfy Desktop lo ofrezca. +3. En **Portable** o instalación **manual**, abre el enlace de cada archivo (o copia la URL), descárgalo y muévelo a la carpeta indicada bajo el nombre — misma idea que [Corregir un modelo faltante](#fix-a-missing-model). +4. Pulsa `R` (o **Actualizar** en Modelos faltantes) para que ComfyUI vuelva a escanear. + +**Descarga manual** — si el panel no muestra **Descargar**, usa las tarjetas y el árbol de carpetas en [descargas de modelos Z-Image-Turbo](/es/tutorials/image/z-image/z-image-turbo#descargas-del-modelo-z-image-turbo). + +### 3. Ejecutar y ver la imagen + +1. Si quieres, edita los widgets de prompt en el lienzo. +2. Haz clic en **Run**, o pulsa `Ctrl+Enter` (`Cmd+Enter` en macOS). La ejecución entra en la cola y ComfyUI genera la imagen. +3. Al terminar, abre el resultado en el nodo de guardado / vista previa de la plantilla. +4. O desde la **barra lateral izquierda**, abre **Activos → Generados**. En Portable e instalaciones manuales también se escriben PNG en `ComfyUI/output`. + +Si aparece **Falta entrada requerida**, consulta [Falta entrada requerida](#falta-entrada-requerida). Si aún falta un modelo, vuelve al paso 2 o a [Corregir un modelo faltante](#fix-a-missing-model). + +Ya tienes una primera imagen en una pila actual. Cambia a la pestaña **Armar el grafo** cuando quieras cablear Stable Diffusion 1.5 nodo a nodo. + + + + +En este camino construyes un flujo de trabajo de texto a imagen en un **lienzo** vacío. Escribes la descripción de una imagen y ComfyUI genera una imagen de 512 × 512 con el modelo **Stable Diffusion 1.5**. Agregas y conectas cada nodo tú mismo. Cada paso indica qué hace el nodo y cómo saber que el paso funcionó. + +SD 1.5 aquí es pequeño y simple a propósito: un checkpoint, un grafo corto y valor didáctico claro. **No** es el objetivo de calidad más reciente — cambia a la pestaña **Plantilla (recomendado)** (u otros tutoriales de modelos) cuando quieras valores predeterminados modernos. + ## Aprende las partes de un flujo de trabajo Un flujo de trabajo es un conjunto de nodos unidos por conexiones. Cada nodo cumple una tarea: @@ -42,7 +101,7 @@ Un flujo de trabajo es un conjunto de nodos unidos por conexiones. Cada nodo cum - **Widgets**: son las configuraciones dentro de un nodo, como una caja de texto, un número o una lista. - **Conexiones**: son las líneas que llevan datos desde una salida hasta una entrada del mismo tipo, como desde la salida `CLIP` hasta una entrada `clip`. -El flujo de trabajo de este tutorial tiene siete nodos de seis tipos. La última columna indica dónde se encuentra cada nodo en el menú **Add Node**, que se explica en [Agrega un nodo](#agregar-un-nodo). +El flujo de trabajo del Camino B tiene siete nodos de seis tipos. La última columna indica dónde se encuentra cada nodo en el menú **Add Node**, que se explica en [Agrega un nodo](#agregar-un-nodo). | Nodo | Qué hace | Ruta en **Add Node** | | --- | --- | --- | @@ -254,7 +313,7 @@ Cuando termina la ejecución, la imagen aparece en el nodo `Save Image`. Para ab ## Cargar un flujo de trabajo desde una imagen -De forma predeterminada, cada archivo PNG que escribe `Save Image` contiene el flujo de trabajo con el que se creó. Carga la imagen de ejemplo de abajo para comparar su flujo de trabajo con el que creaste. +De forma predeterminada, cada archivo PNG que escribe `Save Image` contiene el flujo de trabajo con el que se creó. Carga la imagen de ejemplo de abajo para comparar su flujo de trabajo con el que armaste en el Camino B. 1. Guarda esta imagen en tu computadora: @@ -264,7 +323,10 @@ De forma predeterminada, cada archivo PNG que escribe `Save Image` contiene el f Se abre el flujo de trabajo de la imagen. Si en su lugar aparece un nodo `Load Image`, significa que el archivo que arrastraste no tiene ningún flujo de trabajo guardado. -## Corregir un modelo faltante + + + +## Corregir un modelo faltante {#fix-a-missing-model} Cuando cargas un flujo de trabajo cuyo archivo de modelo no está en tus carpetas de modelos, ComfyUI muestra un aviso con el nombre del modelo faltante, como `v1-5-pruned-emaonly-fp16.safetensors is missing`. @@ -274,8 +336,8 @@ Cuando cargas un flujo de trabajo cuyo archivo de modelo no está en tus carpeta - **ComfyUI Portable e instalaciones manuales**: Tu navegador descarga el archivo. Muévelo a la carpeta `checkpoints`, como se indica en [Colocar el modelo en la carpeta checkpoints](#coloca-el-modelo-en-la-carpeta-checkpoints). 3. Si la fila no tiene un botón **Descargar**, obtén el archivo por tu cuenta: 1. Haz clic en el icono de enlace junto al nombre del archivo. El icono de enlace copia el enlace de descarga (**Copiar URL**) o el nombre del archivo cuando el flujo de trabajo no tiene enlace (**Copiar nombre del modelo**). - 2. Descarga el archivo. Para el modelo de este tutorial, sigue [Descargar el modelo](#descargar-el-modelo). - 3. Mueve el archivo a la carpeta indicada debajo del nombre del archivo, como `checkpoints`. + 2. Descarga el archivo. Para el modelo del Camino B, sigue [Descargar el modelo](#descargar-el-modelo). Para el Camino A, usa los enlaces del [tutorial de Z-Image-Turbo](/es/tutorials/image/z-image/z-image-turbo). + 3. Mueve el archivo a la carpeta indicada debajo del nombre del archivo, como `checkpoints`, `diffusion_models`, `text_encoders` o `vae`. 4. Haz clic en **Actualizar** (la flecha circular) en el encabezado **Modelos faltantes**, o presiona `R`, para que ComfyUI revise las carpetas de modelos otra vez. Una fila de modelo faltante no tiene botón **Descargar** cuando se cumple cualquiera de estas condiciones: @@ -300,3 +362,9 @@ Una entrada no tiene enlace. El mensaje indica el nodo y la entrada, por ejemplo ### El modelo no está en la lista de checkpoints El archivo no está en una carpeta `checkpoints` que ComfyUI lea. Muévelo allí, como en [Colocar el modelo en la carpeta checkpoints](#coloca-el-modelo-en-la-carpeta-checkpoints), y luego presiona `R`. + +## Próximos pasos {#next-steps} + +- Sigue con modelos de imagen modernos: [Z-Image-Turbo](/es/tutorials/image/z-image/z-image-turbo), [FLUX.3 Klein](/es/tutorials/flux/flux-3-klein), [Qwen-Image-2.1](/es/tutorials/image/qwen/qwen-image-2-1) +- Más conceptos al estilo SD 1.5: [Tutorial de texto a imagen](/es/tutorials/basic/text-to-image) +- Mapa de la interfaz: [Descripción general de la interfaz](/es/interface/overview) diff --git a/get_started/first_generation.mdx b/get_started/first_generation.mdx index e80dc8ca77..2cd7b5e9d7 100644 --- a/get_started/first_generation.mdx +++ b/get_started/first_generation.mdx @@ -1,18 +1,75 @@ --- -title: "Your First Image in ComfyUI: Build a Text-to-Image Workflow" -description: "Build a Stable Diffusion 1.5 text-to-image Workflow from a blank canvas, put the model file in the right folder, fix a missing model, and run it." +title: "Your First Image in ComfyUI" +description: "Generate your first image in ComfyUI: start from a current template such as Z-Image-Turbo, or build a Stable Diffusion 1.5 text-to-image graph from a blank canvas to learn nodes and links." sidebarTitle: "First Generation" icon: "shoe-prints" --- -In this tutorial, you build a text-to-image Workflow on an empty **Canvas** and run it. You type a description of a picture, and ComfyUI generates a 512 × 512 image from it with the Stable Diffusion 1.5 model. You add and connect every Node yourself. Each step says what the Node does and how to tell the step worked. +This page gets you to a first image, then helps you understand how a Workflow is built. This tutorial uses ComfyUI on your own computer: Comfy Desktop, ComfyUI Portable, or a manual install. Install ComfyUI and open it before you start. - To use ComfyUI in your browser with nothing to install, [open the Z-Image-Turbo text-to-image template in Comfy Cloud](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation). + Prefer the browser with nothing to install? [Open the Z-Image-Turbo text-to-image template in Comfy Cloud](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation). +## Choose how to start + +Use the tabs to pick a starting path. **Template** is recommended for a first modern image. **Build the graph** teaches nodes and links with Stable Diffusion 1.5 on a blank Canvas. + + + +Current ComfyUI templates include modern open models. **Z-Image-Turbo** is a good first image: few sampling steps, strong quality for its size, and a maintained official template. Unlike **Build the graph**, you do **not** build nodes by hand — open the template, install its models, then run. + + + +### 1. Open the Z-Image-Turbo template + +1. In ComfyUI, open the template browser (**Workflow → Browse Templates**, or the Templates entry in the UI you use). +2. Search for **Z-Image-Turbo** (text to image). +3. Open the template so it loads on the Canvas. + + + Prefer the browser with nothing to install? [Open the same template on Comfy Cloud](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation). Full model cards and extra workflows: [Z-Image-Turbo in ComfyUI](/tutorials/image/z-image/z-image-turbo). + + +### 2. Install the models + +Z-Image-Turbo needs **three** files (text encoder + diffusion model + VAE), not a single SD 1.5 checkpoint: + +| File | Folder | +| --- | --- | +| `qwen_3_4b.safetensors` | `ComfyUI/models/text_encoders/` | +| `z_image_turbo_bf16.safetensors` | `ComfyUI/models/diffusion_models/` | +| `ae.safetensors` | `ComfyUI/models/vae/` | + +**Easiest path — Missing Models UI** + +1. If ComfyUI shows a missing-model notice after the template loads, click **View details**. +2. On the **Issues** tab under **Missing Models**, use **Download** when Comfy Desktop offers it. +3. On **Portable** or **manual** installs, open each file’s link (or copy the URL), download it, and move it into the folder named under the file — same idea as [Fix a missing model](#fix-a-missing-model). +4. Press `R` (or **Refresh** in Missing Models) so ComfyUI rescans. + +**Manual download** — use the cards and folder tree on [Z-Image-Turbo model downloads](/tutorials/image/z-image/z-image-turbo#z-image-turbo-model-downloads) if the Issues panel has no **Download** button. + +### 3. Run and get an image + +1. Optionally edit the prompt widgets on the Canvas. +2. Click **Run**, or press `Ctrl+Enter` (`Cmd+Enter` on macOS). The run joins the queue and ComfyUI generates the image. +3. When it finishes, open the result in the template’s save / preview node. +4. Or from the **Left sidebar**, open **Assets → Generated**. Portable and manual installs also write PNGs under `ComfyUI/output`. + +If ComfyUI shows **Required input missing**, see [Required input missing](#required-input-missing). If a model is still missing, return to step 2 or [Fix a missing model](#fix-a-missing-model). + +You now have a first image on a current stack. Switch to the **Build the graph** tab when you want to wire Stable Diffusion 1.5 node by node. + + + + +In this path you build a text-to-image Workflow on an empty **Canvas**. You type a description of a picture, and ComfyUI generates a 512 × 512 image with the **Stable Diffusion 1.5** model. You add and connect every Node yourself. Each step says what the Node does and how to tell the step worked. + +SD 1.5 is intentionally small and simple here: one checkpoint file, a short graph, and clear teaching value. It is **not** the newest quality target — switch to the **Template (recommended)** tab (or other model tutorials) when you want modern defaults. + ## Learn the parts of a Workflow A Workflow is a set of Nodes joined by links. Each Node does one job: @@ -22,7 +79,7 @@ A Workflow is a set of Nodes joined by links. Each Node does one job: - **Widgets** are the settings inside a Node, such as a text box, a number, or a list. - **Links** are the lines that carry data from an output to an input of the same type, such as from the `CLIP` output to a `clip` input. -The Workflow in this tutorial has seven Nodes of six types. The last column is where each Node sits in the **Add Node** menu, which [Add a Node](#add-a-node) explains. +The Workflow in Path B has seven Nodes of six types. The last column is where each Node sits in the **Add Node** menu, which [Add a Node](#add-a-node) explains. | Node | What it does | **Add Node** path | | --- | --- | --- | @@ -35,7 +92,7 @@ The Workflow in this tutorial has seven Nodes of six types. The last column is w ## Download the model -The `Load Checkpoint` Node needs a model file. This tutorial uses `v1-5-pruned-emaonly-fp16.safetensors`. +The `Load Checkpoint` Node needs a model file. This path uses `v1-5-pruned-emaonly-fp16.safetensors`. - Download [`v1-5-pruned-emaonly-fp16.safetensors`](https://huggingface.co/Comfy-Org/stable-diffusion-v1-5-archive/blob/main/v1-5-pruned-emaonly-fp16.safetensors) from Hugging Face. @@ -177,7 +234,7 @@ Prompts describe the image. The positive prompt says what you want to see. The n ## Set the image size -The `Empty Latent Image` Node sets the image size. Its `width` and `height` start at `1024`. This Workflow uses `512`, the size in the example Workflow in [Load a Workflow from an image](#load-a-workflow-from-an-image). +The `Empty Latent Image` Node sets the image size. Its `width` and `height` start at `1024`. This SD 1.5 teaching Workflow uses `512`, the size in the example Workflow in [Load a Workflow from an image](#load-a-workflow-from-an-image). 1. Add an `Empty Latent Image` Node with the [**Add Node** menu](#use-the-add-node-menu): **model** > **latent** > `Empty Latent Image`. 2. Set `width` to `512`. @@ -234,7 +291,7 @@ When the run finishes, the image appears in the `Save Image` Node. To open it fr ## Load a Workflow from an image -By default, every PNG file that `Save Image` writes contains the Workflow that made it. Load the example image below to compare its Workflow with the one you built. +By default, every PNG file that `Save Image` writes contains the Workflow that made it. Load the example image below to compare its Workflow with the one you built in Path B. 1. Save this image to your computer: @@ -244,18 +301,21 @@ By default, every PNG file that `Save Image` writes contains the Workflow that m The Workflow from the image opens. If a `Load Image` Node appears instead, the file you dropped has no Workflow saved in it. + + + ## Fix a missing model When you load a Workflow whose model file isn't in your model folders, ComfyUI shows a notice that names the missing model, such as `v1-5-pruned-emaonly-fp16.safetensors is missing`. 1. Click **View details**. The **Right side panel** opens on the **Issues** tab and lists the file under **Missing Models**. The folder the file belongs in, such as `checkpoints`, appears under the file name. 2. If the row has a **Download** button, click it. - - **Comfy Desktop**: Comfy Desktop downloads the file into the `checkpoints` folder of your **Downloads** models folder. - - **ComfyUI Portable and manual installs**: Your browser downloads the file. Move it into the `checkpoints` folder, as in [Put the model in the checkpoints folder](#put-the-model-in-the-checkpoints-folder). + - **Comfy Desktop**: Comfy Desktop downloads the file into the `checkpoints` folder of your **Downloads** models folder (or the folder named under the file for other model types). + - **ComfyUI Portable and manual installs**: Your browser downloads the file. Move it into the folder named under the file, as in [Put the model in the checkpoints folder](#put-the-model-in-the-checkpoints-folder) for SD 1.5 checkpoints. 3. If the row has no **Download** button, get the file yourself: 1. Click the link icon next to the file name. The link icon copies the download link (**Copy URL**), or the file name when the Workflow has no link (**Copy model name**). - 2. Download the file. For this tutorial's model, follow [Download the model](#download-the-model). - 3. Move the file into the folder named under the file name, such as `checkpoints`. + 2. Download the file. For Path B's model, follow [Download the model](#download-the-model). For Path A, use the links in the [Z-Image-Turbo tutorial](/tutorials/image/z-image/z-image-turbo). + 3. Move the file into the folder named under the file name, such as `checkpoints`, `diffusion_models`, `text_encoders`, or `vae`. 4. Click **Refresh** (the circular arrow) in the **Missing Models** header, or press `R`, so ComfyUI checks the model folders again. A missing model row has no **Download** button when any of these is true: @@ -280,3 +340,9 @@ An input has no link. The message names the Node and the input, such as `KSample ### The model isn't in the checkpoint list The file isn't in a `checkpoints` folder that ComfyUI reads. Move it there, as in [Put the model in the checkpoints folder](#put-the-model-in-the-checkpoints-folder), and then press `R`. + +## Next steps + +- Stay on modern image models: [Z-Image-Turbo](/tutorials/image/z-image/z-image-turbo), [FLUX.3 Klein](/tutorials/flux/flux-3-klein), [Qwen-Image-2.1](/tutorials/image/qwen/qwen-image-2-1) +- Learn more SD 1.5-style basics: [Text to Image tutorial](/tutorials/basic/text-to-image) +- Interface map: [Interface overview](/interface/overview) diff --git a/ja/get_started/first_generation.mdx b/ja/get_started/first_generation.mdx index a706503c94..2f73455521 100644 --- a/ja/get_started/first_generation.mdx +++ b/ja/get_started/first_generation.mdx @@ -1,14 +1,15 @@ --- -title: "Stable Diffusion 1.5:テキストから画像へのワークフローを一から作る" -description: "空のキャンバスから Stable Diffusion 1.5 のテキストから画像へのワークフローを組み立て、モデルの配置、不足しているモデルの修正から実行までを解説します。" +title: "ComfyUI で最初の画像を生成する" +description: "ComfyUI で最初の画像を生成します。Z-Image-Turbo などの現行テンプレートから始めるか、空のキャンバスで Stable Diffusion 1.5 のテキストから画像へのワークフローを組み立ててノードとリンクを学びます。" sidebarTitle: "初めての画像生成" icon: "shoe-prints" -translationSourceHash: 28869800 +translationSourceHash: e9338118 translationFrom: get_started/first_generation.mdx translationBlockHashes: - "_intro": e25c7a8c - "Learn the parts of a Workflow": d42d55aa - "Download the model": bcd5fd13 + "_intro": 936c0ed5 + "Choose how to start": db837b36 + "Learn the parts of a Workflow": 2242d9a7 + "Download the model": 461190aa "Put the model in the `checkpoints` folder": 043c6d2b "Open a blank Workflow": 38cae5c7 "Add a Node": 7c9e54d5 @@ -16,23 +17,81 @@ translationBlockHashes: "Add the `Load Checkpoint` Node": 8f217224 "Add the `KSampler` Node": af572c00 "Add the prompt Nodes": 623914a4 - "Set the image size": e62d74ae + "Set the image size": 2d04c6e8 "Decode and save the image": dd196cc4 "Run the Workflow": bb569869 "Find the generated image": c49e1daa - "Load a Workflow from an image": 725d3575 - "Fix a missing model": 0317d1b6 + "Load a Workflow from an image": 07fea849 + "Fix a missing model": 659485a7 "Troubleshoot": bdee9477 + "Next steps": 04ff2ec2 --- -このチュートリアルでは、空の**キャンバス**上でテキストから画像へのワークフローを構築し、実行します。画像の説明を入力すると、ComfyUIがStable Diffusion 1.5モデルを使って512 × 512の画像を生成します。ノードはすべてご自身で追加して接続します。各ステップでは、そのノードが何をするのか、そしてステップがうまくいったかどうかをどう確認するのかを説明します。 +このページでは、まず最初の画像を生成し、その後ワークフローの組み立て方を理解できるようにします。 -このチュートリアルでは、ご自身のコンピューター上のComfyUI(Comfy Desktop、ComfyUI Portable、または手動インストール)を使用します。開始する前にComfyUIをインストールして起動してください。 +このチュートリアルでは、ご自身のコンピューター上の ComfyUI(Comfy Desktop、ComfyUI Portable、または手動インストール)を使用します。開始する前に ComfyUI をインストールして起動してください。 - 何もインストールせずにブラウザでComfyUIを使うには、[Comfy CloudでZ-Image-Turboのテキストから画像へのテンプレートを開いてください](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation)。 + 何もインストールせずにブラウザで ComfyUI を使うには、[Comfy Cloud で Z-Image-Turbo のテキストから画像へのテンプレートを開いてください](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation)。 +## 始め方を選ぶ + +タブで開始パスを選んでください。**テンプレート**は現行モデルで最初の一枚を出すのに推奨です。**グラフを自作**は空のキャンバスで Stable Diffusion 1.5 のノードとリンクを学びます。 + + + +現在の ComfyUI テンプレートには、新しいオープンモデルが含まれます。**Z-Image-Turbo** は最初の一枚に向いています。サンプリングステップが少なく、サイズのわりに品質が高く、公式テンプレートも維持されています。「グラフを自作」とは違い、ノードを手で組む必要は**ありません**。テンプレートを開き、モデルを入れて実行します。 + + + +### 1. Z-Image-Turbo テンプレートを開く + +1. ComfyUI でテンプレートブラウザを開きます(**Workflow → Browse Templates**、またはお使いの UI の Templates 入口)。 +2. **Z-Image-Turbo**(テキストから画像へ)を検索します。 +3. テンプレートを開き、キャンバスに読み込みます。 + + + 何もインストールせずブラウザで使う場合は、[Comfy Cloud で同じテンプレートを開く](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation)。モデルカードと追加ワークフローは [ComfyUI の Z-Image-Turbo](/ja/tutorials/image/z-image/z-image-turbo) を参照。 + + +### 2. モデルをインストールする + +Z-Image-Turbo には **3 つ**のファイルが必要です(テキストエンコーダー + 拡散モデル + VAE)。SD 1.5 のような単一 checkpoint ではありません: + +| ファイル | フォルダー | +| --- | --- | +| `qwen_3_4b.safetensors` | `ComfyUI/models/text_encoders/` | +| `z_image_turbo_bf16.safetensors` | `ComfyUI/models/diffusion_models/` | +| `ae.safetensors` | `ComfyUI/models/vae/` | + +**いちばん簡単 — 不足モデル UI** + +1. テンプレート読み込み後に不足モデルの通知が出たら、**詳細を表示** をクリックします。 +2. **問題** タブの **不足しているモデル** で、Comfy Desktop が **ダウンロード** を出す場合はそれを使います。 +3. **Portable** または**手動インストール**では、各ファイルのリンクを開く(または URL をコピーして)ダウンロードし、ファイル名の下に示されたフォルダーへ移します — [不足しているモデルを修正する](#fix-a-missing-model) と同じ考え方です。 +4. `R` を押す(または不足モデルの **更新**)して、ComfyUI に再スキャンさせます。 + +**手動ダウンロード** — Issues パネルに **ダウンロード** がない場合は、[Z-Image-Turbo のモデルダウンロード](/ja/tutorials/image/z-image/z-image-turbo#z-image-turbo-モデルのダウンロード) のカードと配置図を使ってください。 + +### 3. 実行して画像を得る + +1. 必要ならキャンバス上のプロンプトウィジェットを編集します。 +2. **Run** をクリックするか、`Ctrl+Enter`(macOS では `Cmd+Enter`)を押します。キューに入り、ComfyUI が画像を生成します。 +3. 完了したら、テンプレートの保存 / プレビューノードで結果を開きます。 +4. または **左サイドバー** から **アセット → 生成済み** を開きます。Portable / 手動インストールでは `ComfyUI/output` にも PNG が書き出されます。 + +**必須入力がありません** と出た場合は [必須入力がありません](#required-input-missing) を参照。まだモデル不足なら手順 2 か [不足しているモデルを修正する](#fix-a-missing-model) に戻ってください。 + +これで現行スタック上の最初の画像ができました。Stable Diffusion 1.5 をノード単位でつなぎたいときは **グラフを自作** タブに切り替えてください。 + + + + +このパスでは、空の**キャンバス**上でテキストから画像へのワークフローを構築します。画像の説明を入力すると、ComfyUI が **Stable Diffusion 1.5** モデルで 512 × 512 の画像を生成します。ノードはすべてご自身で追加して接続します。各ステップでは、そのノードが何をするのか、そしてステップがうまくいったかどうかをどう確認するのかを説明します。 + +ここでの SD 1.5 は意図的に小さく単純です。チェックポイント 1 つ、短いグラフ、分かりやすい教材になります。**最新の画質目標ではありません**。新しい既定に寄せたいときは **テンプレート(推奨)** タブ(または他のモデルチュートリアル)に切り替えてください。 + ## ワークフローの構成要素を学ぶ {#learn-the-parts-of-a-workflow} ワークフローは、リンクで接続されたノードの集まりです。各ノードは1つのジョブを実行します。 @@ -42,7 +101,7 @@ translationBlockHashes: - **ウィジェット**はノード内にある設定で、テキストボックス、数値、リストなどがあります。 - **リンク**は、同じ型の出力から入力へデータを運ぶ線です。たとえば `CLIP` 出力から `clip` 入力へといった具合です。 -このチュートリアルのワークフローには、6種類・7個のノードがあります。最後の列は、各ノードが **Add Node** メニューのどこにあるかを示しており、その手順は[ノードを追加](#add-a-node)で説明します。 +パス B のワークフローには、6種類・7個のノードがあります。最後の列は、各ノードが **Add Node** メニューのどこにあるかを示しており、その手順は[ノードを追加](#add-a-node)で説明します。 | ノード | 役割 | **Add Node** のパス | | --- | --- | --- | @@ -254,7 +313,7 @@ ComfyUI に**必須入力がありません**と表示された場合は、[必 ## 画像からワークフローを読み込む {#load-a-workflow-from-an-image} -デフォルトでは、`Save Image` が書き出すすべてのPNGファイルに、その画像を作成したワークフローが含まれています。ご自身が作成したワークフローと比較するために、以下のサンプル画像を読み込んでください。 +デフォルトでは、`Save Image` が書き出すすべてのPNGファイルに、その画像を作成したワークフローが含まれています。パス B で組み立てたワークフローと比較するために、以下のサンプル画像を読み込んでください。 1. この画像をコンピューターに保存してください: @@ -264,18 +323,21 @@ ComfyUI に**必須入力がありません**と表示された場合は、[必 画像に含まれるワークフローが開きます。代わりに`Load Image`ノードが表示された場合は、ドロップしたファイルにワークフローが保存されていません。 -## 不足しているモデルを修正する + + + +## 不足しているモデルを修正する {#fix-a-missing-model} ワークフローを読み込んだときに、そのモデルファイルがモデルフォルダーにない場合、ComfyUI は不足しているモデル名を示す通知を表示します。たとえば、`v1-5-pruned-emaonly-fp16.safetensors is missing` のようになります。 1. **詳細を表示** をクリックします。**右側のパネル** が **問題** タブで開き、**不足しているモデル** の下にファイルが一覧表示されます。ファイルの配置先フォルダー(`checkpoints` など)がファイル名の下に表示されます。 2. 行に **ダウンロード** ボタンがある場合は、それをクリックします。 - **Comfy Desktop**:Comfy Desktop は、**DOWNLOADS** モデルフォルダー内の `checkpoints` フォルダーにファイルをダウンロードします。 - - **ComfyUI Portable および手動インストール**:ブラウザーがファイルをダウンロードします。そのファイルを、[モデルをチェックポイントフォルダーに配置する](#put-the-model-in-the-checkpoints-folder) の説明に従って `checkpoints` フォルダーに移動します。 + - **ComfyUI Portable および手動インストール**:ブラウザーがファイルをダウンロードします。ファイル名の下に示されたフォルダーへ移動します。SD 1.5 の checkpoint は [モデルをチェックポイントフォルダーに配置する](#put-the-model-in-the-checkpoints-folder) を参照してください。 3. 行に **ダウンロード** ボタンがない場合は、ファイルを自分で入手します: 1. ファイル名の横にあるリンクアイコンをクリックします。リンクアイコンはダウンロードリンク(**URLをコピー**)をコピーします。ワークフローにリンクがない場合は、ファイル名(**モデル名をコピー**)をコピーします。 - 2. ファイルをダウンロードします。このチュートリアルのモデルについては、[モデルをダウンロードする](#download-the-model) に従ってください。 - 3. ファイルを、ファイル名の下に表示されるフォルダー(`checkpoints` など)に移動します。 + 2. ファイルをダウンロードします。パス B のモデルについては [モデルをダウンロードする](#download-the-model) に従ってください。パス A は [Z-Image-Turbo チュートリアル](/ja/tutorials/image/z-image/z-image-turbo) のリンクを使います。 + 3. ファイルを、ファイル名の下に表示されるフォルダー(`checkpoints`、`diffusion_models`、`text_encoders`、`vae` など)に移動します。 4. **不足しているモデル** ヘッダーの **更新**(円形の矢印)をクリックするか、`R` を押して、ComfyUI にモデルフォルダーを再確認させます。 次のいずれかに該当する場合、不足しているモデルの行には **ダウンロード** ボタンが表示されません: @@ -300,3 +362,9 @@ ComfyUI に**必須入力がありません**と表示された場合は、[必 ### モデルがチェックポイント一覧にありません {#the-model-isnt-in-the-checkpoint-list} ファイルが、ComfyUI が読み取る `checkpoints` フォルダーにありません。そこに移動し、[モデルをチェックポイントフォルダーに配置する](#put-the-model-in-the-checkpoints-folder)の手順に従ってから、`R` を押してください。 + +## 次のステップ {#next-steps} + +- 新しい画像モデルを続ける:[Z-Image-Turbo](/ja/tutorials/image/z-image/z-image-turbo)、[FLUX.3 Klein](/ja/tutorials/flux/flux-3-klein)、[Qwen-Image-2.1](/ja/tutorials/image/qwen/qwen-image-2-1) +- SD 1.5 系の基礎をさらに学ぶ:[テキストから画像へのチュートリアル](/ja/tutorials/basic/text-to-image) +- インターフェース案内:[インターフェース概要](/ja/interface/overview) diff --git a/ko/get_started/first_generation.mdx b/ko/get_started/first_generation.mdx index a7fd8521ef..2d2e04f163 100644 --- a/ko/get_started/first_generation.mdx +++ b/ko/get_started/first_generation.mdx @@ -1,14 +1,15 @@ --- -title: "Stable Diffusion 1.5: 텍스트-이미지 워크플로 직접 만들기" -description: "빈 캔버스에서 Stable Diffusion 1.5 텍스트-이미지 워크플로를 직접 구성하고, 모델 파일을 올바른 폴더에 배치하고, 누락된 모델을 해결한 뒤 실행하는 과정을 안내합니다." +title: "ComfyUI에서 첫 이미지 만들기" +description: "ComfyUI에서 첫 이미지를 생성합니다. Z-Image-Turbo 같은 현재 템플릿으로 시작하거나, 빈 캔버스에서 Stable Diffusion 1.5 텍스트-이미지 워크플로를 만들어 노드와 연결을 배웁니다." sidebarTitle: "첫 번째 생성" icon: "shoe-prints" -translationSourceHash: 28869800 +translationSourceHash: e9338118 translationFrom: get_started/first_generation.mdx translationBlockHashes: - "_intro": e25c7a8c - "Learn the parts of a Workflow": d42d55aa - "Download the model": bcd5fd13 + "_intro": 936c0ed5 + "Choose how to start": db837b36 + "Learn the parts of a Workflow": 2242d9a7 + "Download the model": 461190aa "Put the model in the `checkpoints` folder": 043c6d2b "Open a blank Workflow": 38cae5c7 "Add a Node": 7c9e54d5 @@ -16,16 +17,17 @@ translationBlockHashes: "Add the `Load Checkpoint` Node": 8f217224 "Add the `KSampler` Node": af572c00 "Add the prompt Nodes": 623914a4 - "Set the image size": e62d74ae + "Set the image size": 2d04c6e8 "Decode and save the image": dd196cc4 "Run the Workflow": bb569869 "Find the generated image": c49e1daa - "Load a Workflow from an image": 725d3575 - "Fix a missing model": 0317d1b6 + "Load a Workflow from an image": 07fea849 + "Fix a missing model": 659485a7 "Troubleshoot": bdee9477 + "Next steps": 04ff2ec2 --- -이 튜토리얼에서는 빈 **캔버스** 위에 텍스트 기반 이미지 생성 워크플로를 만들고 실행합니다. 그림에 대한 설명을 입력하면 ComfyUI가 Stable Diffusion 1.5 모델로 512 × 512 이미지를 생성합니다. 모든 노드는 직접 추가하고 연결합니다. 각 단계에서는 해당 노드가 하는 일과 단계가 제대로 수행되었는지 확인하는 방법을 설명합니다. +이 페이지에서는 먼저 첫 이미지를 만든 다음, 워크플로가 어떻게 구성되는지 이해하도록 돕습니다. 이 튜토리얼은 자신의 컴퓨터에서 ComfyUI를 사용합니다: Comfy Desktop, ComfyUI Portable 또는 수동 설치 방식입니다. 시작하기 전에 ComfyUI를 설치하고 실행하세요. @@ -33,6 +35,63 @@ translationBlockHashes: 아무것도 설치하지 않고 브라우저에서 ComfyUI를 사용하려면 [Comfy Cloud에서 Z-Image-Turbo 텍스트 기반 이미지 생성 템플릿을 여세요](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation). +## 시작 방법 고르기 + +탭에서 시작 경로를 고르세요. **템플릿**은 최신에 가까운 모델로 첫 이미지를 만들 때 권장합니다. **그래프 직접 만들기**는 빈 캔버스에서 Stable Diffusion 1.5로 노드와 연결을 배웁니다. + + + +현재 ComfyUI 템플릿에는 비교적 최신 오픈 모델이 포함됩니다. **Z-Image-Turbo**는 첫 이미지로 좋습니다. 샘플링 스텝이 적고, 크기 대비 품질이 좋으며, 공식 템플릿이 유지됩니다. 「그래프 직접 만들기」와 달리 노드를 손으로 조립할 필요**가 없습니다**. 템플릿을 열고 모델을 설치한 뒤 실행하면 됩니다. + + + +### 1. Z-Image-Turbo 템플릿 열기 + +1. ComfyUI에서 템플릿 브라우저를 엽니다(**Workflow → Browse Templates**, 또는 사용 중인 UI의 Templates 항목). +2. **Z-Image-Turbo**(텍스트-이미지)를 검색합니다. +3. 템플릿을 열어 캔버스에 불러옵니다. + + + 설치 없이 브라우저에서 쓰려면 [Comfy Cloud에서 같은 템플릿 열기](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation). 전체 모델 카드와 추가 워크플로는 [ComfyUI의 Z-Image-Turbo](/ko/tutorials/image/z-image/z-image-turbo)를 보세요. + + +### 2. 모델 설치 + +Z-Image-Turbo에는 **세 개** 파일이 필요합니다(텍스트 인코더 + 확산 모델 + VAE). SD 1.5처럼 체크포인트 하나가 아닙니다: + +| 파일 | 폴더 | +| --- | --- | +| `qwen_3_4b.safetensors` | `ComfyUI/models/text_encoders/` | +| `z_image_turbo_bf16.safetensors` | `ComfyUI/models/diffusion_models/` | +| `ae.safetensors` | `ComfyUI/models/vae/` | + +**가장 쉬운 방법 — 누락 모델 UI** + +1. 템플릿을 연 뒤 누락 모델 알림이 뜨면 **자세히 보기**를 클릭합니다. +2. **문제** 탭의 **누락된 모델**에서 Comfy Desktop이 **다운로드**를 제공하면 사용합니다. +3. **Portable** 또는 **수동 설치**에서는 각 파일 링크를 열거나 URL을 복사해 받은 뒤, 파일 이름 아래 폴더로 옮깁니다 — [누락된 모델 해결](#fix-a-missing-model)과 같은 흐름입니다. +4. `R`을 누르거나(또는 누락된 모델에서 **새로고침**) ComfyUI가 다시 스캔하게 합니다. + +**수동 다운로드** — 문제 패널에 **다운로드**가 없으면 [Z-Image-Turbo 모델 다운로드](/ko/tutorials/image/z-image/z-image-turbo#z-image-turbo-모델-다운로드)의 카드와 폴더 안내를 사용하세요. + +### 3. 실행하고 이미지 확인 + +1. 필요하면 캔버스의 프롬프트 위젯을 수정합니다. +2. **Run**을 클릭하거나 `Ctrl+Enter`(macOS는 `Cmd+Enter`)를 누릅니다. 큐에 들어가고 ComfyUI가 이미지를 생성합니다. +3. 끝나면 템플릿의 저장/미리보기 노드에서 결과를 엽니다. +4. 또는 **왼쪽 사이드바**에서 **에셋 → 생성됨**을 엽니다. Portable·수동 설치는 `ComfyUI/output`에도 PNG를 씁니다. + +**필수 입력 누락**이 보이면 [필수 입력 누락](#required-input-missing)을 참고하세요. 모델이 여전히 없으면 2단계나 [누락된 모델 해결](#fix-a-missing-model)로 돌아가세요. + +이제 현재 스택에서 첫 이미지를 얻었습니다. Stable Diffusion 1.5를 노드 단위로 연결하려면 **그래프 직접 만들기** 탭으로 전환하세요. + + + + +이 경로에서는 빈 **캔버스** 위에 텍스트 기반 이미지 생성 워크플로를 만듭니다. 그림에 대한 설명을 입력하면 ComfyUI가 **Stable Diffusion 1.5** 모델로 512 × 512 이미지를 생성합니다. 모든 노드는 직접 추가하고 연결합니다. 각 단계에서는 해당 노드가 하는 일과 단계가 제대로 수행되었는지 확인하는 방법을 설명합니다. + +여기 SD 1.5는 의도적으로 작고 단순합니다. 체크포인트 하나, 짧은 그래프, 분명한 학습 가치입니다. **최신 품질 목표가 아닙니다** — 현대적인 기본값을 원하면 **템플릿(권장)** 탭(또는 다른 모델 튜토리얼)으로 전환하세요. + ## 워크플로의 구성 요소 알아보기 {#learn-the-parts-of-a-workflow} 워크플로는 연결로 이어진 노드의 집합입니다. 각 노드는 하나의 작업을 수행합니다: @@ -42,7 +101,7 @@ translationBlockHashes: - **위젯**은 노드 내부의 설정으로, 텍스트 상자, 숫자, 목록 등이 있습니다. - **연결**은 같은 타입의 출력에서 입력으로 데이터를 전달하는 선입니다. 예를 들어 `CLIP` 출력에서 `clip` 입력으로 이어집니다. -이 튜토리얼의 워크플로에는 6가지 타입의 노드 7개가 있습니다. 마지막 열은 각 노드가 **노드 추가** 메뉴에서 위치하는 곳이며, [노드 추가](#add-a-node)에서 설명합니다. +경로 B의 워크플로에는 6가지 타입의 노드 7개가 있습니다. 마지막 열은 각 노드가 **노드 추가** 메뉴에서 위치하는 곳이며, [노드 추가](#add-a-node)에서 설명합니다. | 노드 | 하는 일 | **노드 추가** 경로 | | --- | --- | --- | @@ -254,7 +313,7 @@ ComfyUI에 **필수 입력 누락**이 표시되면 [필수 입력 누락](#requ ## 이미지에서 워크플로 불러오기 {#load-a-workflow-from-an-image} -`Save Image`가 기록하는 모든 PNG 파일에는 기본적으로 해당 파일을 만든 워크플로가 포함되어 있습니다. 아래 예시 이미지를 불러와 해당 이미지의 워크플로를 직접 만든 워크플로와 비교해 보세요. +`Save Image`가 기록하는 모든 PNG 파일에는 기본적으로 해당 파일을 만든 워크플로가 포함되어 있습니다. 아래 예시 이미지를 불러와 해당 이미지의 워크플로를 경로 B에서 만든 워크플로와 비교해 보세요. 1. 이 이미지를 컴퓨터에 저장합니다: @@ -264,18 +323,21 @@ ComfyUI에 **필수 입력 누락**이 표시되면 [필수 입력 누락](#requ 이미지의 워크플로가 열립니다. 대신 `Load Image` 노드가 나타나면 드롭한 파일에 저장된 워크플로가 없는 것입니다. -## 누락된 모델 해결 + + + +## 누락된 모델 해결 {#fix-a-missing-model} 모델 파일이 모델 폴더에 없는 워크플로를 불러오면 ComfyUI는 누락된 모델 이름을 알려주는 알림을 표시합니다. 예: `v1-5-pruned-emaonly-fp16.safetensors is missing`. 1. **자세히 보기**를 클릭합니다. **오른쪽 사이드 패널**이 **문제** 탭에서 열리고 파일이 **누락된 모델** 아래에 나열됩니다. 파일이 속한 폴더(예: `checkpoints`)가 파일 이름 아래에 표시됩니다. 2. 행에 **다운로드** 버튼이 있으면 클릭합니다. - **Comfy Desktop**: Comfy Desktop은 파일을 **DOWNLOADS** 모델 폴더의 `checkpoints` 폴더로 다운로드합니다. - - **ComfyUI Portable 및 수동 설치**: 브라우저에서 파일을 다운로드합니다. [모델을 checkpoints 폴더에 넣기](#put-the-model-in-the-checkpoints-folder)에 설명된 대로 파일을 `checkpoints` 폴더로 이동합니다. + - **ComfyUI Portable 및 수동 설치**: 브라우저에서 파일을 다운로드합니다. 파일 이름 아래 폴더로 옮기세요. SD 1.5 체크포인트는 [모델을 checkpoints 폴더에 넣기](#put-the-model-in-the-checkpoints-folder)를 참고하세요. 3. 행에 **다운로드** 버튼이 없으면 파일을 직접 가져옵니다: 1. 파일 이름 옆의 링크 아이콘을 클릭합니다. 링크 아이콘은 다운로드 링크(**URL 복사**)를 복사하거나, 워크플로에 링크가 없으면 파일 이름(**모델 이름 복사**)을 복사합니다. - 2. 파일을 다운로드합니다. 이 튜토리얼의 모델은 [모델 다운로드](#download-the-model)를 따릅니다. - 3. 파일 이름 아래에 표시된 폴더(예: `checkpoints`)로 파일을 이동합니다. + 2. 파일을 다운로드합니다. 경로 B 모델은 [모델 다운로드](#download-the-model)를 따르고, 경로 A는 [Z-Image-Turbo 튜토리얼](/ko/tutorials/image/z-image/z-image-turbo)의 링크를 사용하세요. + 3. 파일 이름 아래에 표시된 폴더(예: `checkpoints`, `diffusion_models`, `text_encoders`, `vae`)로 파일을 이동합니다. 4. **누락된 모델** 헤더에서 **새로고침**(원형 화살표)을 클릭하거나 `R`을 눌러 ComfyUI가 모델 폴더를 다시 확인하도록 합니다. 누락된 모델 행에 **다운로드** 버튼이 없는 경우는 다음 중 하나가 참일 때입니다: @@ -300,3 +362,9 @@ ComfyUI에 **필수 입력 누락**이 표시되면 [필수 입력 누락](#requ ### 모델이 체크포인트 목록에 없음 {#the-model-isnt-in-the-checkpoint-list} 파일이 ComfyUI가 읽는 `checkpoints` 폴더에 없습니다. [모델을 체크포인트 폴더에 넣기](#put-the-model-in-the-checkpoints-folder)에 설명된 대로 파일을 해당 폴더로 옮긴 다음 `R`을 누르세요. + +## 다음 단계 {#next-steps} + +- 최신 이미지 모델 이어가기: [Z-Image-Turbo](/ko/tutorials/image/z-image/z-image-turbo), [FLUX.3 Klein](/ko/tutorials/flux/flux-3-klein), [Qwen-Image-2.1](/ko/tutorials/image/qwen/qwen-image-2-1) +- SD 1.5 스타일 기초 더 보기: [텍스트-이미지 튜토리얼](/ko/tutorials/basic/text-to-image) +- 인터페이스 안내: [인터페이스 개요](/ko/interface/overview) diff --git a/zh/get_started/first_generation.mdx b/zh/get_started/first_generation.mdx index 9448b96942..c3ce699051 100644 --- a/zh/get_started/first_generation.mdx +++ b/zh/get_started/first_generation.mdx @@ -1,14 +1,15 @@ --- -title: "Stable Diffusion 1.5:从零搭建文生图工作流" -description: "从空白画布开始,一步步搭建 Stable Diffusion 1.5 文生图工作流:放好模型文件、修复缺失的模型并运行。" +title: "在 ComfyUI 中生成第一张图像" +description: "在 ComfyUI 中生成第一张图像:从当前模板(如 Z-Image-Turbo)开始,或从空白画布搭建 Stable Diffusion 1.5 文生图工作流以学习节点与连线。" sidebarTitle: "第一次生成" icon: "shoe-prints" -translationSourceHash: 28869800 +translationSourceHash: e9338118 translationFrom: get_started/first_generation.mdx translationBlockHashes: - "_intro": e25c7a8c - "Learn the parts of a Workflow": d42d55aa - "Download the model": bcd5fd13 + "_intro": 936c0ed5 + "Choose how to start": db837b36 + "Learn the parts of a Workflow": 2242d9a7 + "Download the model": 461190aa "Put the model in the `checkpoints` folder": 043c6d2b "Open a blank Workflow": 38cae5c7 "Add a Node": 7c9e54d5 @@ -16,16 +17,17 @@ translationBlockHashes: "Add the `Load Checkpoint` Node": 8f217224 "Add the `KSampler` Node": af572c00 "Add the prompt Nodes": 623914a4 - "Set the image size": e62d74ae + "Set the image size": 2d04c6e8 "Decode and save the image": dd196cc4 "Run the Workflow": bb569869 "Find the generated image": c49e1daa - "Load a Workflow from an image": 725d3575 - "Fix a missing model": 0317d1b6 + "Load a Workflow from an image": 07fea849 + "Fix a missing model": 659485a7 "Troubleshoot": bdee9477 + "Next steps": 04ff2ec2 --- -在本教程中,你将在空白**画布**上构建一个文生图工作流并运行它。你输入一段对画面的描述,ComfyUI 便会使用 Stable Diffusion 1.5 模型据此生成一张 512 × 512 的图像。每个节点都由你自己添加并连接。每一步都会说明该节点做什么,以及如何判断这一步是否成功。 +本页先帮你生成第一张图,再帮你理解工作流是如何搭建的。 本教程使用你自己电脑上的 ComfyUI:Comfy Desktop、ComfyUI Portable 或手动安装。开始之前,请先安装 ComfyUI 并打开它。 @@ -33,6 +35,63 @@ translationBlockHashes: 若想无需安装、直接在浏览器中使用 ComfyUI,请[在 Comfy Cloud 中打开 Z-Image-Turbo 文生图模板](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation)。 +## 选择开始方式 + +用下方标签页选择一条开始路径。**模板**适合先用较新的模型出一张图。**从零搭建工作流**用 Stable Diffusion 1.5 在空白画布上学习节点与连线。 + + + +当前 ComfyUI 模板包含较新的开源模型。**Z-Image-Turbo** 很适合作为第一张图像:采样步数少、体量相对小但质量不错,并且有官方维护的模板。与「从零搭建工作流」不同,这条路径**不用**手搭节点——打开模板、装好模型,然后运行即可。 + + + +### 1. 打开 Z-Image-Turbo 模板 + +1. 在 ComfyUI 中打开模板浏览器(**Workflow → Browse Templates**,或你所用界面中的 Templates 入口)。 +2. 搜索 **Z-Image-Turbo**(文生图)。 +3. 打开模板,使其加载到画布上。 + + + 若想无需安装、直接在浏览器中使用,请[在 Comfy Cloud 打开同一模板](https://cloud.comfy.org/?template=image_z_image_turbo&utm_source=docs&utm_medium=referral&utm_campaign=first_generation)。完整模型卡片与更多工作流见:[Z-Image-Turbo 在 ComfyUI 中的用法](/zh/tutorials/image/z-image/z-image-turbo)。 + + +### 2. 安装模型 + +Z-Image-Turbo 需要 **三个** 文件(文本编码器 + 扩散模型 + VAE),不是单个 SD 1.5 checkpoint: + +| 文件 | 文件夹 | +| --- | --- | +| `qwen_3_4b.safetensors` | `ComfyUI/models/text_encoders/` | +| `z_image_turbo_bf16.safetensors` | `ComfyUI/models/diffusion_models/` | +| `ae.safetensors` | `ComfyUI/models/vae/` | + +**最省事 — 缺失模型界面** + +1. 模板加载后若出现缺失模型提示,点击**查看详情**。 +2. 在**问题**标签的**缺失模型**下,若 Comfy Desktop 提供**下载**,请使用它。 +3. 在 **Portable** 或**手动安装**中,打开每个文件的链接(或复制 URL),下载后移到文件名下方标注的文件夹——思路与[修复缺失的模型](#fix-a-missing-model)相同。 +4. 按 `R`(或在缺失模型中点击**刷新**),让 ComfyUI 重新扫描。 + +**手动下载** — 若问题面板没有**下载**按钮,请使用 [Z-Image-Turbo 模型下载](/zh/tutorials/image/z-image/z-image-turbo#z-image-turbo-模型下载) 中的卡片与目录说明。 + +### 3. 运行并查看图像 + +1. 如需修改提示词,编辑画布上的提示词控件。 +2. 点击 **Run**,或按 `Ctrl+Enter`(macOS 上为 `Cmd+Enter`)。工作流会进入队列,随后 ComfyUI 生成图像。 +3. 运行结束后,在模板的保存 / 预览节点中查看结果。 +4. 或从**左侧边栏**打开**资产 → 已生成**。Portable 与手动安装还会把 PNG 写到 `ComfyUI/output`。 + +若出现**缺少必需输入**,参见[缺少必需输入](#required-input-missing)。若仍提示缺模型,回到步骤 2 或[修复缺失的模型](#fix-a-missing-model)。 + +你现在已经在较新的模型栈上得到第一张图像。若想用 Stable Diffusion 1.5 逐个连接节点,请切换到**从零搭建工作流**标签页。 + + + + +在这条路径中,你将在空白**画布**上构建一个文生图工作流。你输入一段对画面的描述,ComfyUI 便会使用 **Stable Diffusion 1.5** 模型生成一张 512 × 512 的图像。每个节点都由你自己添加并连接。每一步都会说明该节点做什么,以及如何判断这一步是否成功。 + +这里故意选用体积小、结构简单的 SD 1.5:一个 checkpoint 文件、一段简短工作流,教学价值清晰。它**不是**最新的画质目标——若想用较新的默认方案,请切换到**模板(推荐)**标签页(或其他模型教程)。 + ## 了解工作流的组成部分 {#learn-the-parts-of-a-workflow} 工作流是由连线连接的一组节点。每个节点执行一项任务: @@ -42,7 +101,7 @@ translationBlockHashes: - **控件**是节点内部的设置,例如文本框、数字或列表。 - **连线**是从某一输出将数据传送到相同类型输入的线,例如从 `CLIP` 输出到 `clip` 输入。 -本教程中的工作流包含七个节点,共六种类型。最后一列是每个节点在**添加节点**菜单中的位置;[添加节点](#add-a-node)一节对此进行了说明。 +路径 B 中的工作流包含七个节点,共六种类型。最后一列是每个节点在**添加节点**菜单中的位置;[添加节点](#add-a-node)一节对此进行了说明。 | 节点 | 功能 | **添加节点**路径 | | --- | --- | --- | @@ -254,7 +313,7 @@ translationBlockHashes: ## 从图像加载工作流 {#load-a-workflow-from-an-image} -默认情况下,`Save Image` 写出的每个 PNG 文件都包含生成该图像的工作流。加载下面的示例图像,将其工作流与你构建的工作流进行对比。 +默认情况下,`Save Image` 写出的每个 PNG 文件都包含生成该图像的工作流。加载下面的示例图像,将其工作流与你在路径 B 中构建的工作流进行对比。 1. 将此图像保存到你的计算机: @@ -264,18 +323,21 @@ translationBlockHashes: 图像中的工作流会打开。如果出现的是 `Load Image` 节点,说明你拖入的文件中没有保存工作流。 -## 修复缺失的模型 + + + +## 修复缺失的模型 {#fix-a-missing-model} 当你加载的工作流所用的模型文件不在你的模型文件夹中时,ComfyUI 会显示一条提示,指出缺失的模型,例如 `v1-5-pruned-emaonly-fp16.safetensors is missing`。 1. 点击**查看详情**。**右侧面板**会打开**问题**标签页,并在**缺失模型**下列出该文件。文件应放入的文件夹(例如 `checkpoints`)会显示在文件名下方。 2. 如果该行有**下载**按钮,请点击它。 - **Comfy Desktop**:Comfy Desktop 会将文件下载到你**DOWNLOADS** 模型文件夹中的 `checkpoints` 文件夹。 - - **ComfyUI Portable 和手动安装**:浏览器会下载该文件。请将其移动到 `checkpoints` 文件夹,参见[将模型放入 checkpoints 文件夹](#put-the-model-in-the-checkpoints-folder)。 + - **ComfyUI Portable 和手动安装**:浏览器会下载该文件。请将其移动到文件名下方标注的文件夹;SD 1.5 checkpoint 参见[将模型放入 checkpoints 文件夹](#put-the-model-in-the-checkpoints-folder)。 3. 如果该行没有**下载**按钮,请自行获取文件: 1. 点击文件名旁的链接图标。该链接图标会复制下载链接(**复制链接**);当工作流没有链接时,则复制文件名(**复制模型名称**)。 - 2. 下载该文件。本教程使用的模型请参见[下载模型](#download-the-model)。 - 3. 将文件移动到文件名下方标注的文件夹中,例如 `checkpoints`。 + 2. 下载该文件。路径 B 的模型请参见[下载模型](#download-the-model)。路径 A 请使用 [Z-Image-Turbo 教程](/zh/tutorials/image/z-image/z-image-turbo) 中的链接。 + 3. 将文件移动到文件名下方标注的文件夹中,例如 `checkpoints`、`diffusion_models`、`text_encoders` 或 `vae`。 4. 点击**缺失模型**标题栏中的**刷新**(圆形箭头),或按 `R`,让 ComfyUI 重新检查模型文件夹。 只要满足以下任一条件,缺失模型的行就不会显示**下载**按钮: @@ -300,3 +362,9 @@ translationBlockHashes: ### 模型不在 checkpoint 列表中 {#the-model-isnt-in-the-checkpoint-list} 该文件不在 ComfyUI 读取的 `checkpoints` 文件夹中。请将其移动到该文件夹,具体操作参见[将模型放入 checkpoints 文件夹](#put-the-model-in-the-checkpoints-folder),然后按下 `R`。 + +## 接下来 {#next-steps} + +- 继续使用较新的图像模型:[Z-Image-Turbo](/zh/tutorials/image/z-image/z-image-turbo)、[FLUX.3 Klein](/zh/tutorials/flux/flux-3-klein)、[Qwen-Image-2.1](/zh/tutorials/image/qwen/qwen-image-2-1) +- 了解更多 SD 1.5 风格基础:[文生图教程](/zh/tutorials/basic/text-to-image) +- 界面导览:[界面概览](/zh/interface/overview)