diff options
author | JohannesGaessler <johannesg@5d6.de> | 2022-09-11 09:18:06 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-11 09:39:09 +0000 |
commit | 13008bab90305144591e0b2e233214a8b3415bba (patch) | |
tree | 4e975e179e1830489613946a2b1231f57c53a1df /modules/processing.py | |
parent | ae6b879b8587e2b900c16639d9ba8b07a040c9d3 (diff) | |
download | stable-diffusion-webui-gfx803-13008bab90305144591e0b2e233214a8b3415bba.tar.gz stable-diffusion-webui-gfx803-13008bab90305144591e0b2e233214a8b3415bba.tar.bz2 stable-diffusion-webui-gfx803-13008bab90305144591e0b2e233214a8b3415bba.zip |
Fixed prompt_style type hints: int -> str
Diffstat (limited to 'modules/processing.py')
-rw-r--r-- | modules/processing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/processing.py b/modules/processing.py index df45d877..cf2e13d3 100644 --- a/modules/processing.py +++ b/modules/processing.py @@ -30,14 +30,14 @@ def torch_gc(): class StableDiffusionProcessing:
- def __init__(self, sd_model=None, outpath_samples=None, outpath_grids=None, prompt="", prompt_style=0, seed=-1, subseed=-1, subseed_strength=0, seed_resize_from_h=-1, seed_resize_from_w=-1, sampler_index=0, batch_size=1, n_iter=1, steps=50, cfg_scale=7.0, width=512, height=512, restore_faces=False, tiling=False, do_not_save_samples=False, do_not_save_grid=False, extra_generation_params=None, overlay_images=None, negative_prompt=None):
+ def __init__(self, sd_model=None, outpath_samples=None, outpath_grids=None, prompt="", prompt_style="None", seed=-1, subseed=-1, subseed_strength=0, seed_resize_from_h=-1, seed_resize_from_w=-1, sampler_index=0, batch_size=1, n_iter=1, steps=50, cfg_scale=7.0, width=512, height=512, restore_faces=False, tiling=False, do_not_save_samples=False, do_not_save_grid=False, extra_generation_params=None, overlay_images=None, negative_prompt=None):
self.sd_model = sd_model
self.outpath_samples: str = outpath_samples
self.outpath_grids: str = outpath_grids
self.prompt: str = prompt
self.prompt_for_display: str = None
self.negative_prompt: str = (negative_prompt or "")
- self.prompt_style: int = prompt_style
+ self.prompt_style: str = prompt_style
self.seed: int = seed
self.subseed: int = subseed
self.subseed_strength: float = subseed_strength
|