mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
fix
This commit is contained in:
@@ -100,9 +100,9 @@ def preprocess_pipeline(p, refiner_enabled: bool):
|
||||
|
||||
if "ONNX" not in shared.opts.diffusers_pipeline:
|
||||
shared.log.warning(f"Unsupported pipeline for 'olive-ai' compile backend: {shared.opts.diffusers_pipeline}. You should select one of the ONNX pipelines.")
|
||||
return
|
||||
return shared.sd_model
|
||||
|
||||
if shared.opts.cuda_compile and shared.opts.cuda_compile_backend == "olive-ai":
|
||||
if shared.opts.cuda_compile_backend == "olive-ai" and len(shared.opts.cuda_compile) != 1:
|
||||
compile_height = p.height
|
||||
compile_width = p.width
|
||||
if (shared.compiled_model_state is None or
|
||||
@@ -131,6 +131,8 @@ def preprocess_pipeline(p, refiner_enabled: bool):
|
||||
sd_models.reload_model_weights(op='model')
|
||||
shared.sd_model = shared.sd_model.preprocess(p)
|
||||
|
||||
return shared.sd_model
|
||||
|
||||
|
||||
def initialize():
|
||||
global initialized # pylint: disable=global-statement
|
||||
|
||||
Reference in New Issue
Block a user