> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-matt-router-pricing-pika-and-guard.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# StableCascade_StageC_VAEEncode - ComfyUI Built-in Node Documentation

> StableCascadeStageCVAEEncode 节点通过 VAE 编码器处理输入图像，为 Stable Cascade 模型生成潜在表示。

StableCascade\_StageC\_VAEEncode 节点通过 VAE 编码器处理输入图像，为 Stable Cascade 模型生成潜在表示。它首先根据压缩因子和 VAE 的下采样比率调整图像大小，然后对调整后的图像进行编码。该节点输出两个潜在张量：一个用于阶段 C（实际的编码结果），一个用于阶段 B（零填充的占位符）。

## 输入

| 参数 | 描述 | 数据类型 | 是否必需 | 范围 |
| - | - | - | - | - |
| `图像` | 要编码到潜在空间的输入图像 | IMAGE | 是 | - |
| `vae` | 用于编码图像的 VAE 模型 | VAE | 是 | - |
| `压缩` | 编码前应用于图像的压缩因子。图像尺寸除以该值，再乘以 VAE 的下采样比率。这是一个高级参数。（默认值：42） | INT | 是 | 4-128 |

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `阶段C` | Stable Cascade 模型阶段 C 的编码后潜在表示 | LATENT |
| `阶段B` | 阶段 B 的占位潜在表示。当前返回一个零填充张量，其维度根据输入图像尺寸计算。 | LATENT |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/StableCascade_StageC_VAEEncode/zh.md)

***

**Source fingerprint (SHA-256):** `1679aaac77057fcc359e5428906d5227f6c2dde721aabbfb5a32c08738ac376c`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.