[ComfyUI]批量生成图片的节点:输入一个prompt列表批量生成图像
1.参考资料
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
这个节点的话是一个一个连续的推理生图,但是解码是在最后统一解码为图像
可以支持上传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的文本编码器,增加的一个文本的输入
生成的结果展示
原文地址:https://blog.csdn.net/m0_52985451/article/details/144331245
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!