Skip to content

Commit

Permalink
Minor bug fix - checking type of combinatorial batches
Browse files Browse the repository at this point in the history
  • Loading branch information
adieyal committed Nov 12, 2022
1 parent 798901e commit a729de9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,5 @@
0.15.1 Fixed an error caused when setting wildcard_dir in config.json, also other minor bug fixes
0.15.2 Handle situation where no prompts are generated.
0.16.0 Added a checkbox to enable writing all generated prompts to a text file.
0.17.0 Dynamic prompts is now an AlwaysVisible script. It now plays nicely with other scripts like X/Y plot. Big thanks to @stysmmaker
0.17.0 Dynamic prompts is now an AlwaysVisible script. It now plays nicely with other scripts like X/Y plot. Big thanks to @stysmmaker
0.17.1 Minor bug fix checking type of combinatorial batches
9 changes: 7 additions & 2 deletions scripts/dynamic_prompting.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
else:
WILDCARD_DIR = Path(wildcard_dir)

VERSION = "0.17.0"
VERSION = "0.17.1"


wildcard_manager = WildcardManager(WILDCARD_DIR)
Expand Down Expand Up @@ -123,7 +123,12 @@ def process(

original_prompt = p.prompt[0] if type(p.prompt) == list else p.prompt
original_seed = p.seed
if combinatorial_batches < 1:

try:
combinatorial_batches = int(combinatorial_batches)
if combinatorial_batches < 1:
combinatorial_batches = 1
except (ValueError, TypeError):
combinatorial_batches = 1

if is_combinatorial:
Expand Down

0 comments on commit a729de9

Please sign in to comment.