diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 08:37:18 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-10 08:37:18 +0000 |
commit | a5121e7a0623db328a9462d340d389ed6737374a (patch) | |
tree | 2fa6051d457555ef2d61793af2756a44c0ea221c /scripts | |
parent | 550256db1ce18778a9d56ff343d844c61b9f9b83 (diff) | |
download | stable-diffusion-webui-gfx803-a5121e7a0623db328a9462d340d389ed6737374a.tar.gz stable-diffusion-webui-gfx803-a5121e7a0623db328a9462d340d389ed6737374a.tar.bz2 stable-diffusion-webui-gfx803-a5121e7a0623db328a9462d340d389ed6737374a.zip |
fixes for B007
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/prompts_from_file.py | 2 | ||||
-rw-r--r-- | scripts/sd_upscale.py | 4 | ||||
-rw-r--r-- | scripts/xyz_grid.py | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/scripts/prompts_from_file.py b/scripts/prompts_from_file.py index 149bc85f..27af5ff6 100644 --- a/scripts/prompts_from_file.py +++ b/scripts/prompts_from_file.py @@ -156,7 +156,7 @@ class Script(scripts.Script): images = []
all_prompts = []
infotexts = []
- for n, args in enumerate(jobs):
+ for args in jobs:
state.job = f"{state.job_no + 1} out of {state.job_count}"
copy_p = copy.copy(p)
diff --git a/scripts/sd_upscale.py b/scripts/sd_upscale.py index d873a09c..0b1d3096 100644 --- a/scripts/sd_upscale.py +++ b/scripts/sd_upscale.py @@ -56,7 +56,7 @@ class Script(scripts.Script): work = []
- for y, h, row in grid.tiles:
+ for _y, _h, row in grid.tiles:
for tiledata in row:
work.append(tiledata[2])
@@ -85,7 +85,7 @@ class Script(scripts.Script): work_results += processed.images
image_index = 0
- for y, h, row in grid.tiles:
+ for _y, _h, row in grid.tiles:
for tiledata in row:
tiledata[2] = work_results[image_index] if image_index < len(work_results) else Image.new("RGB", (p.width, p.height))
image_index += 1
diff --git a/scripts/xyz_grid.py b/scripts/xyz_grid.py index 332e0ecd..38a20381 100644 --- a/scripts/xyz_grid.py +++ b/scripts/xyz_grid.py @@ -704,7 +704,7 @@ class Script(scripts.Script): if not include_sub_grids:
# Done with sub-grids, drop all related information:
- for sg in range(z_count):
+ for _ in range(z_count):
del processed.images[1]
del processed.all_prompts[1]
del processed.all_seeds[1]
|