Skip to content

Add seed support to wildcards node#3

Open
cbaoth wants to merge 1 commit intolilly1987:mainfrom
cbaoth:main
Open

Add seed support to wildcards node#3
cbaoth wants to merge 1 commit intolilly1987:mainfrom
cbaoth:main

Conversation

@cbaoth
Copy link
Copy Markdown

@cbaoth cbaoth commented Mar 24, 2023

This commit introduces a seed field to the CLIPTextEncodeWildcards node and adds a seed to all places where the random module is used within the wildcards module. There are two reasons why I made this change:

  1. Allow users to reproduce wildcard based prompts using a seed that is also persisted inside the workflow (including PNG metadata), as long as the wildcard files are unchanged.
  2. Allow users to choose between random and static wildcard based prompts between invocations (queue entries) by every queue entry by toggling the "Random seed after every gen" switch.

Note that I just wanted a quick solution for point no. 2 since I'm currently starting to play around with ComfyUI and I didn't find another way to enforce new prompts for every invocation. So this change was not heavily tested at all, I'm still playing around with it, but it looks good at first glance so I'm sharing my change as a PR.

@lilly1987
Copy link
Copy Markdown
Owner

CLIPTextEncodeWildcards2 add

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants