aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-26 04:49:57 +0000
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-26 04:49:57 +0000
commit835a7dbf0e73c4cdf945b588d319a6c36652cbe5 (patch)
tree222c42bd87dae038067625ccd071877a0559857e /modules/scripts.py
parent7c22bbd3ad5a149e0cf29df887405188fb2d0471 (diff)
downloadstable-diffusion-webui-gfx803-835a7dbf0e73c4cdf945b588d319a6c36652cbe5.tar.gz
stable-diffusion-webui-gfx803-835a7dbf0e73c4cdf945b588d319a6c36652cbe5.tar.bz2
stable-diffusion-webui-gfx803-835a7dbf0e73c4cdf945b588d319a6c36652cbe5.zip
simplify PostprocessBatchListArgs
Diffstat (limited to 'modules/scripts.py')
-rw-r--r--modules/scripts.py16
1 files changed, 6 insertions, 10 deletions
diff --git a/modules/scripts.py b/modules/scripts.py
index 4317cbb6..5b4edcac 100644
--- a/modules/scripts.py
+++ b/modules/scripts.py
@@ -17,12 +17,8 @@ class PostprocessImageArgs:
class PostprocessBatchListArgs:
- def __init__(self, images, prompts, negative_prompts, seeds, subseeds):
+ def __init__(self, images):
self.images = images
- self.prompts = prompts
- self.negative_prompts = negative_prompts
- self.seeds = seeds
- self.subseeds = subseeds
class Script:
@@ -172,11 +168,11 @@ class Script:
You can modify the postprocessing object (pp) to update the images in the batch, remove images, add images, etc.
If the number of images is different from the batch size when returning,
- then the script has the responsibility to also update the following attributes in the processing object (pp):
- - pp.prompts
- - pp.negative_prompts
- - pp.seeds
- - pp.subseeds
+ then the script has the responsibility to also update the following attributes in the processing object (p):
+ - p.prompts
+ - p.negative_prompts
+ - p.seeds
+ - p.subseeds
**kwargs will have same items as process_batch, and also:
- batch_number - index of current batch, from 0 to number of batches-1