Giter Club home page Giter Club logo

Comments (6)

adieyal avatar adieyal commented on August 11, 2024

Have you checked the Combinatorial Generation checkbox? To help you understand what's happening in the back-end, there are two main prompt generators, a RandomPromptGenerator and CombinatorialPromptGenerator. The first is what you're probably familiar with, you give it a prompt template, tell it how many batches, and how many image per batch, and it generates that number of randomly generated prompts using the prompt template..

CombinatorialPromptGenerator isn't random it all. It produces every possible variation that it can, as in your examples above. To enable it, you check the combinatorial box. Combinatorial batches is a newly-requested feature. If you set it to 2, it will run as follows:

my favourite color is __MyColor__

my favorite color is red (seed 1)
my favorite color is black (seed 2)
my favorite color is white (seed 3)

my favorite color is red (seed 4)
my favorite color is black (seed 5)
my favorite color is white (seed 6)

Does that help?

from sd-dynamic-prompts.

aniketgore avatar aniketgore commented on August 11, 2024

It didn't work. I tried a simple prompt with below settings:

Prompt:
style\genre
batch count: 1
batch size : 1

Combinatorial Generator : Selected
Batches: 1

Tried it with batch count set to 2, and it should have picked the first two genres from the file that is American frontier
American propaganda,

but it picked western and something else.

from sd-dynamic-prompts.

aniketgore avatar aniketgore commented on August 11, 2024

Prompt was :
style\genre

from sd-dynamic-prompts.

aniketgore avatar aniketgore commented on August 11, 2024

__ style\genre __

from sd-dynamic-prompts.

adieyal avatar adieyal commented on August 11, 2024

I think I understand what you're seeing. I made a change recently to remove duplicates, i.e. you shouldn't get American frontier twice. The deduplication makes the order unpredictable, i.e. it will pick any two from your file. If you file has ten genres in it and you set your batch count to ten, it should use every one of the genres once.

Could you confirm that's the case?

from sd-dynamic-prompts.

aniketgore avatar aniketgore commented on August 11, 2024

Yes, that's working like that. Thanks for the clarification.

from sd-dynamic-prompts.

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.