mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
i (#114)
This commit is contained in:
@@ -14,6 +14,7 @@ def worker():
|
||||
import random
|
||||
import modules.default_pipeline as pipeline
|
||||
import modules.path
|
||||
import modules.patch
|
||||
|
||||
from PIL import Image
|
||||
from modules.sdxl_styles import apply_style, aspect_ratios
|
||||
@@ -30,11 +31,13 @@ def worker():
|
||||
|
||||
def handler(task):
|
||||
prompt, negative_prompt, style_selction, performance_selction, \
|
||||
aspect_ratios_selction, image_number, image_seed, base_model_name, refiner_model_name, \
|
||||
aspect_ratios_selction, image_number, image_seed, sharpness, base_model_name, refiner_model_name, \
|
||||
l1, w1, l2, w2, l3, w3, l4, w4, l5, w5 = task
|
||||
|
||||
loras = [(l1, w1), (l2, w2), (l3, w3), (l4, w4), (l5, w5)]
|
||||
|
||||
modules.patch.sharpness = sharpness
|
||||
|
||||
pipeline.refresh_base_model(base_model_name)
|
||||
pipeline.refresh_refiner_model(refiner_model_name)
|
||||
pipeline.refresh_loras(loras)
|
||||
|
||||
Reference in New Issue
Block a user