OpenVINO fix 4bit VAE after a resolution change

This commit is contained in:
Disty0
2024-01-05 14:09:30 +03:00
parent 178773a43a
commit 69ddc42993
+2
View File
@@ -77,6 +77,8 @@ def optimize_openvino():
shared.compiled_model_state.compiled_cache.clear()
shared.compiled_model_state.partitioned_modules.clear()
shared.compiled_model_state.first_pass = True if not shared.opts.cuda_compile_precompile else False
shared.compiled_model_state.first_pass_vae = True if not shared.opts.cuda_compile_precompile else False
shared.compiled_model_state.first_pass_refiner = True if not shared.opts.cuda_compile_precompile else False
except Exception as e:
shared.log.warning(f"Model compile: task=OpenVINO: {e}")