From 3479b0ebced0905b5ca87439f5eeb0a20e8a6e61 Mon Sep 17 00:00:00 2001 From: RevLayDust <225862333+RevLayDust@users.noreply.github.com> Date: Tue, 13 Oct 2026 21:24:55 +0700 Subject: [PATCH] fix(cli): remove unsupported directml prefix from device validation in model_resolver --- uvr_cli/model_resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uvr_cli/model_resolver.py b/uvr_cli/model_resolver.py index 628c34a..07bda63 100644 --- a/uvr_cli/model_resolver.py +++ b/uvr_cli/model_resolver.py @@ -297,7 +297,7 @@ def parse_and_validate_device(device_str: str) -> Tuple[bool, str, str]: prefix = parts[0] index = parts[1] if len(parts) > 1 else "0" - if prefix not in ("cuda", "trt_rtx", "directml"): + if prefix not in ("cuda", "trt_rtx"): raise ValueError( f"Invalid device '{device_str}'. Valid choices are: 'cuda[:N]', 'trt_rtx[:N]', or 'cpu' (e.g. 'cuda:0', 'trt_rtx:0', 'cpu')." )