lllyasviel commited on
Commit
b2f47d1
·
1 Parent(s): f7392f2
Files changed (2) hide show
  1. modules/default_pipeline.py +0 -3
  2. webui.py +2 -0
modules/default_pipeline.py CHANGED
@@ -3,7 +3,6 @@ import os
3
  import torch
4
 
5
  from modules.path import modelfile_path, lorafile_path
6
- from modules.cv2win32 import close_all_preview
7
 
8
 
9
  xl_base_filename = os.path.join(modelfile_path, 'sd_xl_base_1.0.safetensors')
@@ -44,6 +43,4 @@ def process(positive_prompt, negative_prompt, steps, switch, width, height, imag
44
 
45
  images = core.image_to_numpy(decoded_latent)
46
 
47
- close_all_preview()
48
-
49
  return images
 
3
  import torch
4
 
5
  from modules.path import modelfile_path, lorafile_path
 
6
 
7
 
8
  xl_base_filename = os.path.join(modelfile_path, 'sd_xl_base_1.0.safetensors')
 
43
 
44
  images = core.image_to_numpy(decoded_latent)
45
 
 
 
46
  return images
webui.py CHANGED
@@ -3,6 +3,7 @@ import random
3
 
4
  from modules.sdxl_styles import apply_style, style_keys, aspect_ratios
5
  from modules.default_pipeline import process
 
6
 
7
 
8
  def generate_clicked(prompt, negative_prompt, style_selction, performance_selction,
@@ -29,6 +30,7 @@ def generate_clicked(prompt, negative_prompt, style_selction, performance_selcti
29
  seed += 1
30
  results += imgs
31
 
 
32
  return results
33
 
34
 
 
3
 
4
  from modules.sdxl_styles import apply_style, style_keys, aspect_ratios
5
  from modules.default_pipeline import process
6
+ from modules.cv2win32 import close_all_preview
7
 
8
 
9
  def generate_clicked(prompt, negative_prompt, style_selction, performance_selction,
 
30
  seed += 1
31
  results += imgs
32
 
33
+ close_all_preview()
34
  return results
35
 
36