diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-18 17:39:49 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-18 17:39:49 +0000 |
commit | c3be3d36c237e85e3b4dd9cdc7e4ea763962209a (patch) | |
tree | 9a4f7fb420de07dcad6dc84f62a94ddd9623dbc3 | |
parent | c76a616bc92df227f57289064e33dcf01ed258cd (diff) | |
parent | 4c17ce49495f8a2bcbafef41609db1ab6db75bc2 (diff) | |
download | stable-diffusion-webui-gfx803-c3be3d36c237e85e3b4dd9cdc7e4ea763962209a.tar.gz stable-diffusion-webui-gfx803-c3be3d36c237e85e3b4dd9cdc7e4ea763962209a.tar.bz2 stable-diffusion-webui-gfx803-c3be3d36c237e85e3b4dd9cdc7e4ea763962209a.zip |
Merge pull request #667 from berkybear/fixSubSeedNoneTypeIssue
handle NoneType when subseed is not initialized
-rw-r--r-- | modules/processing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py index 435e17eb..2cd0bf34 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -102,7 +102,7 @@ class Processed: "prompt": self.prompt if type(self.prompt) != list else self.prompt[0],
"negative_prompt": self.negative_prompt if type(self.negative_prompt) != list else self.negative_prompt[0],
"seed": int(self.seed if type(self.seed) != list else self.seed[0]),
- "subseed": int(self.subseed if type(self.subseed) != list else self.subseed[0]),
+ "subseed": int(self.subseed if type(self.subseed) != list else self.subseed[0]) if self.subseed is not None else -1,
"subseed_strength": self.subseed_strength,
"width": self.width,
"height": self.height,
|