Closed LYAN0526 closed 1 year ago
So my thought is like:
Add an integer configuration named maxIteration
.
iteration
available.Add a new integer option named iteration
maxIteration
Check the type of backend we are using, then choose
n_iter
to iteration
in 2.iteration
times, cache the responsen_samples
to iteration
in 2? (NEED HELP)Grab the responded images, then differ with
output
configuration: Construct a forward message and then send it.output
configuration: Send messages individuallyFeel free to write your thoughts in comments.
cc @MirrorCY
BTW, if we are trying to make them different backend to be behaved not so far, we should also set the seed incrementally if we request it several times.
我不太确认各个后端的批量绘制实现有何不同,考虑到有可能不是所有人的显存都支持同步绘制多张图,而且顺序绘制并不太影响性能,不如直接统一为多次请求,减少代码量的同时也便于后续可能兼容的其他绘图后端?
I'm not sure how the batch drawing implementation of each backend is different. Considering that not everyone's video memory supports simultaneous drawing of multiple graphics, and sequential drawing does not affect the performance, it is better to unify it into multiple requests directly to reduce the amount of code and facilitate subsequent compatibility of other drawing backends.
我们已于 1.15.0 版本中实验性地实装了一次生成多张图片的功能。
目前可通过 --iterations
选项指定生成的轮数。配置项方面可以通过 maxIteration
设置最大的轮数。
Novelai官网的25刀订阅生成单张图片不需要点数,但是一次生成多张图片需要,但实际上一次生成多张图片和自己手动快速回车几次的效果(花费的时间)是一样的,可不可以利用机器人实现免费的一次生成多张图片呢? (使用排队生成最后收集起来一起发送回去的形式,或者挨个发送的形式?) 这样对于希望反复使用一个tag抽出最佳图片的用户来说很方便,同时又不需要点数,会是一个实用的功能。