mirror of
https://github.com/RevLayDust/RLD-UVR-Opt.git
synced 2026-11-20 13:07:58 +09:00
fix(cli): remove unsupported directml prefix from device validation in model_resolver
This commit is contained in:
1 parent
94c067632c
commit
3479b0ebce
1 file changed
+1
-1
@@ -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')."
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user