【AI学习-comfyUI学习-第十四节-joycaption3课程工作流工作流-各个部分学习】

【AI学习-comfyUI学习-第十四节-joycaption3课程工作流工作流-各个部分学习】

1,前言

最近,学习comfyUI,这也是AI的一部分,想将相关学习到的东西尽可能记录下来。

2,说明

1:JoyCaption 的本质

一篇话总结它的本质:

JoyCaption 的本质就是一种 多模态 Transformer 模型,

把图片通过视觉 Transformer 提取为 embedding,

再让语言大模型(LLM)通过 cross-attention 理解这些 embedding,

最后按语言概率模型逐词生成描述。

简单来说:

  • "视觉编码 + 跨模态对齐 + LLM 文本生成"
    就是 JoyCaption 的底层机制。

== 本质:视觉神经网络把图片编码 → 语言大模型根据视觉 token 自回归生成文本。

它是一种"图像理解 + 文本生成"的多模态 Transformer 机制。 ==

2:批量工作流逐节点解释

上传一个 ZIP → 自动拆成多张图片 → JoyCaption 给每张图生成一段长描述 → 变成纯文本 → 输出给 ShellAgent 保存或进一步处理。

3,流程

1-第十三节-自动语义分割局部重绘工作流

(1)调用模块

整个模块部分

这回整个模块都可以截截图下了

(2)输出 提示词

这次是得到得提示词

bash 复制代码
This is a close-up photograph of a snowy owl, focusing on its head and upper body. The owl is positioned slightly to the left of the center of the image. Its round, yellow eyes are wide open, giving it a curious and slightly surprised expression. The owl's beak is small, black, and slightly open, revealing a hint of its pink tongue. The feathers on its head are predominantly white with blue speckles, while its body feathers are a mix of white and brown with darker brown stripes running horizontally across its chest and wings. The background is blurred, featuring warm hues of orange, red, and brown, suggesting a natural, outdoor setting with sunlight filtering through trees or foliage. The photograph has a soft focus on the owl, making its eyes and beak stand out sharply against the more diffuse background. The lighting highlights the owl's white feathers, giving them a slight blue tint, while the brown stripes on its body are clearly defined. The overall texture of the owl's feathers appears soft and fluffy. The image has a warm and natural color palette, emphasizing the owl's striking yellow eyes and the contrasting colors of its plumage.

(3)模型加载

(4)生成图片

(1)原图片

(2)生成图片

(5)模块介绍参数说明

JoyCaption 模型加载(两个 Advance 节点)

用了两个 Load JoyCaption Beta One 版本的节点:

✔ Load JoyCaption Beta One (Advance)

  • 功能:加载 JoyCaption 的图像→文本模型

  • 输入:无

  • 输出:模型对象(model)

✔ JoyCaption 推理节点(大蓝框)

  • 输入:image(左侧原图)

  • 输出:text(很长的描述)

设置了:

  • caption_length = very long

temperature = 0.6

所以它会生成特别长、特别详细的英文描述。

2-第十四节-批量打标工作流

(1)调用模块

整个模块部分

这回整个模块都可以截截图下了

(2)调用模块

这里我使用了四张图片进行测试。

增加了从 ZIP 里面读出所有图片功能模块。

4,细节部分

5,使用的工作流

https://download.csdn.net/download/qq_22146161/92439356

6,总结

这也算各一个开始吧,我也在学习摸索中。

相关推荐
子夜江寒5 小时前
Python 学习-Day9-pandas数据导入导出操作
python·学习·pandas
点云SLAM5 小时前
Decisive 英文单词学习
人工智能·学习·英文单词学习·雅思备考·decisive·起决定性的·果断的
码农很忙5 小时前
让复杂AI应用构建像搭积木:Spring AI Alibaba Graph深度指南与源码拆解
开发语言·人工智能·python
余俊晖5 小时前
多模态视觉语言模型增强原生分辨率继续预训练方法-COMP架构及训练方法
人工智能·语言模型·自然语言处理
运维@小兵5 小时前
使用Spring-ai实现同步响应和流式响应
java·人工智能·spring-ai·ai流式响应
玩具猴_wjh5 小时前
线性规划核心知识点
人工智能·机器学习
科学最TOP6 小时前
IJCAI25|如何平衡文本与时序信息的融合适配?
人工智能·深度学习·神经网络·机器学习·时间序列
TL滕6 小时前
从0开始学算法——第八天(堆排序)
笔记·学习·算法·排序算法