mirror of
https://github.com/vladmandic/automatic
synced 2026-08-26 23:20:59 +02:00
Olive SDXL optimization.
This commit is contained in:
@@ -21,7 +21,7 @@ def process_diffusers(p: processing.StableDiffusionProcessing):
|
||||
results = []
|
||||
|
||||
if hasattr(shared.sd_model, 'preprocess'):
|
||||
shared.sd_model = shared.sd_model.preprocess(p.width, p.height, p.batch_size)
|
||||
shared.sd_model = shared.sd_model.preprocess(p.batch_size, p.height, p.width)
|
||||
|
||||
def is_txt2img():
|
||||
return sd_models.get_diffusers_task(shared.sd_model) == sd_models.DiffusersTaskType.TEXT_2_IMAGE
|
||||
|
||||
Reference in New Issue
Block a user