diff --git a/html/locale_en.json b/html/locale_en.json index eac85f8f3..af19c4804 100644 --- a/html/locale_en.json +++ b/html/locale_en.json @@ -297,7 +297,7 @@ {"id":"","label":"VAE tiling","localized":"","hint":"Divide large images into overlapping tiles with limited VRAM. Results in a minor increase in processing time"}, {"id":"","label":"Attention slicing","localized":"","hint":"Performs attention computation in steps instead of all at once. Slower inference times, but greatly reduced memory usage"}, {"id":"","label":"Execution Provider","localized":"","hint":"ONNX Execution Provider"}, - {"id":"","label":"ONNX show onnx-specific menu","localized":"","hint":"Enable ONNX tab in UI. Restart required"}, + {"id":"","label":"ONNX allow fallback to CPU","localized":"","hint":"Allow fallback to CPU when selected execution provider failed"}, {"id":"","label":"ONNX cache converted models","localized":"","hint":"Save the models that are converted to ONNX format as a cache. You can manage them in ONNX tab"}, {"id":"","label":"ONNX unload base model when processing refiner","localized":"","hint":"Unload base model when the refiner is being converted/optimized/processed"}, {"id":"","label":"inference-mode","localized":"","hint":"Use torch.inference_mode"}, diff --git a/html/locale_ko.json b/html/locale_ko.json index d586b6c73..3eeabe8c0 100644 --- a/html/locale_ko.json +++ b/html/locale_ko.json @@ -582,7 +582,7 @@ {"id":"","label":"Diffusers model loading variant","localized":"","hint":""}, {"id":"","label":"Diffusers VAE loading variant","localized":"","hint":""}, {"id":"","label":"Execution Provider","localized":"","hint":"ONNX Execution Provider"}, - {"id":"","label":"ONNX show onnx-specific menu","localized":"ONNX 탭 보이기","hint":"UI에서 ONNX 탭을 볼 수 있게 한다. WebUI를 재시작하면 반영된다."}, + {"id":"","label":"ONNX allow fallback to CPU","localized":"ONNX 생성 실패 시 CPU를 사용해 다시 시도","hint":"선택한 Execution Provider에서 오류가 발생했을 경우 CPU를 사용해 다시 시도한다."}, {"id":"","label":"ONNX cache converted models","localized":"ONNX 모델 저장 (캐시)","hint":"ONNX 형식으로 변환된 모델을 캐시로 저장한다. ONNX 탭에서 관리할 수 있다."}, {"id":"","label":"ONNX unload base model when processing refiner","localized":"ONNX 리파이너를 처리하고 있을 때 base 모델을 메모리에서 해제","hint":"리파이너 모델이 변환, 최적화 또는 처리되고 있을 때 base 모델을 메모리에서 잠시 해제합니다."} ], diff --git a/modules/onnx_impl/ui.py b/modules/onnx_impl/ui.py index bcddf1b80..cfdc40f82 100644 --- a/modules/onnx_impl/ui.py +++ b/modules/onnx_impl/ui.py @@ -17,6 +17,7 @@ def create_ui(): from modules.shared import log, opts, cmd_opts, refresh_checkpoints from modules.sd_models import checkpoint_tiles, get_closet_checkpoint_match from modules.paths import sd_configs_path + from . import run_olive_workflow from .execution_providers import ExecutionProvider, install_execution_provider from .utils import check_diffusers_cache @@ -47,7 +48,7 @@ def create_ui(): ep_install.click(fn=install_execution_provider, inputs=ep_checkbox) - if opts.cuda_compile_backend == "olive-ai": + if run_olive_workflow is not None: import olive.passes as olive_passes from olive.hardware.accelerator import AcceleratorSpec, Device