mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i
This commit is contained in:
@@ -3,7 +3,6 @@ import os
|
|||||||
import torch
|
import torch
|
||||||
|
|
||||||
from modules.path import modelfile_path, lorafile_path
|
from modules.path import modelfile_path, lorafile_path
|
||||||
from modules.cv2win32 import close_all_preview
|
|
||||||
|
|
||||||
|
|
||||||
xl_base_filename = os.path.join(modelfile_path, 'sd_xl_base_1.0.safetensors')
|
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
|
|||||||
|
|
||||||
images = core.image_to_numpy(decoded_latent)
|
images = core.image_to_numpy(decoded_latent)
|
||||||
|
|
||||||
close_all_preview()
|
|
||||||
|
|
||||||
return images
|
return images
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ import random
|
|||||||
|
|
||||||
from modules.sdxl_styles import apply_style, style_keys, aspect_ratios
|
from modules.sdxl_styles import apply_style, style_keys, aspect_ratios
|
||||||
from modules.default_pipeline import process
|
from modules.default_pipeline import process
|
||||||
|
from modules.cv2win32 import close_all_preview
|
||||||
|
|
||||||
|
|
||||||
def generate_clicked(prompt, negative_prompt, style_selction, performance_selction,
|
def generate_clicked(prompt, negative_prompt, style_selction, performance_selction,
|
||||||
@@ -29,6 +30,7 @@ def generate_clicked(prompt, negative_prompt, style_selction, performance_selcti
|
|||||||
seed += 1
|
seed += 1
|
||||||
results += imgs
|
results += imgs
|
||||||
|
|
||||||
|
close_all_preview()
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user