Browse Source

Merge pull request #383 from LykosAI/main

2.7.7.1
pull/395/head
JT 11 months ago committed by GitHub
parent
commit
f03f7d3b60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      StabilityMatrix.Core/Models/Packages/StableDiffusionDirectMl.cs

8
StabilityMatrix.Core/Models/Packages/StableDiffusionDirectMl.cs

@ -1,7 +1,4 @@
using System.Diagnostics.CodeAnalysis; using NLog;
using System.Text.Json.Nodes;
using System.Text.RegularExpressions;
using NLog;
using StabilityMatrix.Core.Attributes; using StabilityMatrix.Core.Attributes;
using StabilityMatrix.Core.Helper; using StabilityMatrix.Core.Helper;
using StabilityMatrix.Core.Helper.Cache; using StabilityMatrix.Core.Helper.Cache;
@ -37,7 +34,8 @@ public class StableDiffusionDirectMl(
public override SharedFolderMethod RecommendedSharedFolderMethod => SharedFolderMethod.Symlink; public override SharedFolderMethod RecommendedSharedFolderMethod => SharedFolderMethod.Symlink;
public override TorchVersion GetRecommendedTorchVersion() => TorchVersion.DirectMl; public override TorchVersion GetRecommendedTorchVersion() =>
HardwareHelper.PreferDirectML() ? TorchVersion.DirectMl : base.GetRecommendedTorchVersion();
public override PackageDifficulty InstallerSortOrder => PackageDifficulty.Recommended; public override PackageDifficulty InstallerSortOrder => PackageDifficulty.Recommended;

Loading…
Cancel
Save