Git Product home page Git Product logo

Comments (4)

MaikoTan avatar MaikoTan commented on August 18, 2024

So my thought is like:

  1. Add an integer configuration named maxIteration.
  • Minimum value is 1.
  • If it set to 1, then would be nothing changed.
  • If it set to a more than 1 number, then there would be a new option iteration available.
  1. Add a new integer option named iteration
  • Minimum / default value is 1
  • Maximum value is maxIteration
  • If it is set to a number more then 1, then go to 3.
  1. Check the type of backend we are using, then choose
  • SD-WebUI: in the request body, set n_iter to iteration in 2.
  • NovelAI: request iteration times, cache the response
  • NAIFU: same as NovelAI or set n_samples to iteration in 2? (NEED HELP)
  1. Grab the responded images, then differ with
  • Ignore the output configuration: Construct a forward message and then send it.
  • Respect the output configuration: Send messages individually

Feel free to write your thoughts in comments.

cc @MirrorCY

from novelai-bot.

MaikoTan avatar MaikoTan commented on August 18, 2024

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.

from novelai-bot.

MirrorCY avatar MirrorCY commented on August 18, 2024

我不太确认各个后端的批量绘制实现有何不同,考虑到有可能不是所有人的显存都支持同步绘制多张图,而且顺序绘制并不太影响性能,不如直接统一为多次请求,减少代码量的同时也便于后续可能兼容的其他绘图后端?


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.

from novelai-bot.

shigma avatar shigma commented on August 18, 2024

我们已于 1.15.0 版本中实验性地实装了一次生成多张图片的功能。

目前可通过 --iterations 选项指定生成的轮数。配置项方面可以通过 maxIteration 设置最大的轮数。

from novelai-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.