瀏覽代碼

fixes for incorrect progressbar

AUTOMATIC 3 年之前
父節點
當前提交
66a9ca9d00
共有 4 個文件被更改,包括 0 次插入8 次删除
  1. 0 4
      modules/img2img.py
  2. 0 1
      scripts/poor_mans_outpainting.py
  3. 0 1
      scripts/prompt_matrix.py
  4. 0 2
      scripts/xy_grid.py

+ 0 - 4
modules/img2img.py

@@ -75,8 +75,6 @@ def img2img(prompt: str, init_img, init_img_with_mask, steps: int, sampler_index
             p.denoising_strength = max(p.denoising_strength * 0.95, 0.1)
             history.append(processed.images[0])
 
-            state.nextjob()
-
         grid = images.image_grid(history, batch_size, rows=1)
 
         images.save_image(grid, p.outpath_grids, "grid", initial_seed, prompt, opts.grid_format, info=info, short_filename=not opts.grid_extended_filename)
@@ -123,8 +121,6 @@ def img2img(prompt: str, init_img, init_img_with_mask, steps: int, sampler_index
             p.seed = processed.seed + 1
             work_results += processed.images
 
-            state.nextjob()
-
         image_index = 0
         for y, h, row in grid.tiles:
             for tiledata in row:

+ 0 - 1
scripts/poor_mans_outpainting.py

@@ -95,7 +95,6 @@ class Script(scripts.Script):
             p.seed = processed.seed + 1
             work_results += processed.images
 
-            state.nextjob()
 
         image_index = 0
         for y, h, row in grid.tiles:

+ 0 - 1
scripts/prompt_matrix.py

@@ -31,7 +31,6 @@ def draw_xy_grid(xs, ys, x_label, y_label, cell):
                 first_pocessed = processed
 
             res.append(processed.images[0])
-            state.nextjob()
 
     grid = images.image_grid(res, rows=len(ys))
     grid = images.draw_grid_annotations(grid, res[0].width, res[0].height, hor_texts, ver_texts)

+ 0 - 2
scripts/xy_grid.py

@@ -80,8 +80,6 @@ def draw_xy_grid(xs, ys, x_label, y_label, cell):
 
             res.append(processed.images[0])
 
-            state.nextjob()
-
     grid = images.image_grid(res, rows=len(ys))
     grid = images.draw_grid_annotations(grid, res[0].width, res[0].height, hor_texts, ver_texts)