diff --git a/OpenUtau.Core/Util/Onnx.cs b/OpenUtau.Core/Util/Onnx.cs index a7bbc7a6c..dd80a138e 100644 --- a/OpenUtau.Core/Util/Onnx.cs +++ b/OpenUtau.Core/Util/Onnx.cs @@ -19,17 +19,17 @@ public class Onnx { public static List getRunnerOptions() { if (OS.IsWindows()) { return new List { - "cpu", - "directml" + "CPU", + "DirectML" }; } else if (OS.IsMacOS()) { return new List { - "cpu", - "coreml" + "CPU", + "CoreML" }; } return new List { - "cpu" + "CPU" }; } @@ -64,13 +64,13 @@ private static SessionOptions getOnnxSessionOptions(){ runner = runnerOptions[0]; } if (!runnerOptions.Contains(runner)) { - runner = "cpu"; + runner = "CPU"; } switch(runner){ - case "directml": + case "DirectML": options.AppendExecutionProvider_DML(Preferences.Default.OnnxGpu); break; - case "coreml": + case "CoreML": options.AppendExecutionProvider_CoreML(CoreMLFlags.COREML_FLAG_ENABLE_ON_SUBGRAPH); break; }