欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 新闻 > 焦点 > [ComfyUI]批量生成图片的节点:输入一个prompt列表批量生成图像

[ComfyUI]批量生成图片的节点:输入一个prompt列表批量生成图像

2024/12/22 9:19:10 来源:https://blog.csdn.net/m0_52985451/article/details/144331245  浏览:    关键词:[ComfyUI]批量生成图片的节点:输入一个prompt列表批量生成图像

文章目录

  • 1.参考资料
  • 2.两个节点的部署
    • FizzNodes节点
    • comfyui-mixlab-nodes
  • 生成的结果展示

1.参考资料

如何使用ComfyUI一次批量生成不同内容的图片

ComfyUI工作流】随机提示词批量出图,懒人刷图福音,根据提示

2.两个节点的部署

FizzNodes节点

fizznodes节点
将这个节点下载到custom_nodes后安装requirments.txt里面的包到自己的环境里
在这里插入图片描述
使用的话,需要先将clip连接到 batch prompt schedule里面
然后这里需要设置开始和结束的帧,以及空的latent image的个数,
比如我要生成20张图片,那么开始和结束的帧 就为0和19,然后latent image的batch_size为20

注意这行节点是一次性推理20张图片,然后最后统一解码生成图像,所以会对显存有要求

comfyui-mixlab-nodes

这个节点的话是一个一个连续的推理生图,但是解码是在最后统一解码为图像

mixlabs节点

在这里插入图片描述
可以支持上传txt文件,然后读取其中的文本提示词
文本需要把引号去掉,按照如下格式

Fred and Barney are in a room. Barney sits in a chair while Fred holds a rock and talks.
In the living room, dino was sleeping on the chair. Dino then woke up and got off the chair.
Fred stand in the doorway and has a big yawn
Fred is scratching his head in the room
Fred is standing in the doorway. He is looking around as if looking for something.
Bamm Bamm holds a newspaper and a cart filled with more newspapers as he runs through the street outside.
Fred is in his yard, he is laying in a hammock between two trees.Fred reads a stone slab out loud .
Fred is in his backyard in a hammock holding a slate in his hands when something startles hims and he cringes and crunches up his body and then he looks around with really wide eyes.
Barney is practicing at the golf course.
Barney is standing outside. He starts to talk after raising his club in the air.
Fred is in the yard and he is looking over the fence. He is talking to someone on the other side of the fence
Barney is standing in the yard holding a golf club over a golf ball. He is winding back preparing to swing.
Fred stood over the fence to have a glimpse of what is happening outside
Fred is in the yard. He is sitting in a hammock and reading something from his white stone slab. He has an angry face while reading and then turns his head to his right.
Fred is sitting in a hammock reading outside.
Fred reads the newspaper in the back yard while laying down.
Fred and Barney are at the golf course.  Barney is upside down in a tree, with a golf club in his hand.  Fred is standing next to the tree with a golf ball in his mouth.  Barney is going to swing and hit the ball out of Fred's mouth.
Barney gets ready to hit a golf ball that is in Fred's mouth. Barney is hanging upside down in a tree on a golf course. Fred spits the ball out of his mouth before Barney to hit the ball.
Fred is snoring, with his hands across his chest, while laying on a hammock in the yard.
Fred is laying in his hammock in his yard and sleeping.

然后需要将clip的文本编码器,增加的一个文本的输入
在这里插入图片描述

生成的结果展示

在这里插入图片描述

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com