第三方插件
ComfyUI_LayerStyle_Advance
图层工具:Florence2 图像转提示(高级)
Florence2智能描述生成器 - 基于微软Florence2多模态模型,实现图像到精准文本描述的转换,支持17种不同的描述生成模式。LayerUtility: Florence2 Image2Prompt(Advance)-
节点中英文对比
按当前节点配置,分别展示中文与英文节点结构。
中文节点
图层工具:Florence2 图像转提示(高级)
task
text_input
max_new_tokens
num_beams
do_sample
fill_mask
英文节点
LayerUtility: Florence2 Image2Prompt(Advance)
task
text_input
max_new_tokens
num_beams
do_sample
fill_mask
参数说明
依据当前节点关联的 `NodesItems` 数据展示输入、输出与控件说明。
输入参数
florence2_model
florence2_model
已加载的 Florence2 模型结构体,来自 LS_LoadFlorence2Model 节点。
image
image
输入图像。支持批处理,但目前只处理首张图像。
输出参数
text
text
由模型生成的文本结果,已去除 angle brackets 内容。
preview_image
preview_image
处理后返回的图像。对于部分任务会包含边框或文字区域标注。
控件参数
task
task
图像理解任务类型,如“caption”、“object detection”等。
text_input
text_input
附加文本输入。部分任务(如 grounding、caption-to-phrase)依赖该字段。
max_new_tokens
max_new_tokens
生成文本的最大 token 数量。
num_beams
num_beams
Beam Search 的宽度。
do_sample
do_sample
是否使用采样生成(temperature 控制多样性)。
fill_mask
fill_mask
是否启用 [MASK] token 填充逻辑(用于填空任务)。
详细说明
结合节点用途、参数和调用方式,给出更完整的说明内容。
暂无节点说明
同类节点导航
继续浏览同一分类下的相邻节点,方便串联学习。