Olive SDXL optimization.

This commit is contained in:
Seunghoon Lee
2023-12-17 03:13:46 +09:00
parent 86b56d2d2c
commit f10b257dd9
4 changed files with 486 additions and 153 deletions
+1 -1
View File
@@ -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