For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /nodes/03/PhotoMakerEncode.md.

PhotoMaker编码(PhotoMakerEncode)

PhotoMakerEncodemodel/conditioning/photomaker角色:条件编码★ 常用节点

PhotoMakerEncode 节点将参考图像与文本提示词相结合,为图像生成创建条件数据。当文本包含单词 "photomaker" 时,该节点使用 PhotoMaker 模型将参考图像的视觉身份插入到提示词中该位置处的条件数据中。

参数

参数类型默认 / 范围说明
photomakerPHOTOMAKER—(连线输入)用于处理参考图像并生成基于图像的嵌入向量的 PhotoMaker 模型
imageIMAGE · 图像—(连线输入)RGB 图像输入;尺寸不一致会被缩放或裁切。
clipCLIP · 文本编码器—(连线输入)用于文本分词和文本编码的 CLIP 模型
textSTRING多行文本要叠加的文字内容。

输出

输出类型说明
CONDITIONINGCONDITIONING条件

怎么接

  • 上游:CLIP / CLIP_VISION / 编码模型
  • 下游:KSampler.positive / negative
  • 接线:把 CLIP(或视觉/音频编码器)接到本节点,输出的 CONDITIONING 接 KSampler 的 positive 或 negative;条件在采样器之前还可以继续用条件修饰节点加工。

使用案例

属于「条件编码」类节点,向下游提供条件,最终进采样器的 positive 或 negative。从 photomaker、image、clip 开始填就能跑起来。典型接法:CLIP → 本节点 → KSampler.positive。输出类型是 CONDITIONING,只能接同类型的输入端口,颜色对不上就是接错了。

端口与连线示意

PhotoMakerEncode 端口与连线示意