Skip to content

Commit bedc702

Browse files
authoredFeb 1, 2025··
Merge pull request #1131 from LykosAI/main
v2.13.3
2 parents e63443a + e7f2093 commit bedc702

14 files changed

+98
-72
lines changed
 

‎CHANGELOG.md

+18
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,24 @@ All notable changes to Stability Matrix will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).
77

8+
## v2.13.3
9+
### Added
10+
- Added Safetensor Metadata viewer to the Checkpoint Manager context menu - thanks to @genteure!
11+
### Changed
12+
- "Remove symbolic links on shutdown" option now also removes links from Output Sharing
13+
### Fixed
14+
- Fixed [#1083](https://github.com/LykosAI/StabilityMatrix/issues/1083) - "Show Nested Models" incorrectly displaying models from some non-nested folders
15+
- Fixed [#1120](https://github.com/LykosAI/StabilityMatrix/issues/1120) - crash when right clicking in the console after restarting a package
16+
- Fixed issue with InvokeAI model sharing when the host address is set to 0.0.0.0
17+
- Fixed issue when parsing index URLs in Python Dependencies Override menu
18+
- Fixed issue where models were filtered incorrectly in the Checkpoint Manager
19+
- Fixed ComfyUI-Zluda not using the user-defined pip overrides
20+
### Supporters
21+
#### Visionaries
22+
- A heartfelt thank you to our incredible Visionary-tier Patrons, **Waterclouds**, **TheTekknician**, and **Corey**! Your unwavering support means the world to us!
23+
#### Pioneers
24+
- A big shoutout to our outstanding Pioneer-tier Patrons, **tankfox**, **Mr. Unknown**, **Szir777**, and **NowFallenAngel**! We deeply appreciate your ongoing support and dedication!
25+
826
## v2.13.2
927
### Changed
1028
- Removed SimpleSDXL due to security concerns - thanks to @iwr-redmond for the detailed report. For more information please visit https://github.com/LykosAI/StabilityMatrix/security/advisories.

‎StabilityMatrix.Avalonia/App.axaml

-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@
4141
<SolidColorBrush x:Key="ToolTipBackground" Color="#1E1F22" />
4242
<SolidColorBrush x:Key="ToolTipForeground" Color="#9FBDC3" />
4343
<FontFamily x:Key="NotoSansJP">avares://StabilityMatrix.Avalonia/Assets/Fonts/NotoSansJP#Noto Sans JP</FontFamily>
44-
45-
<PathIcon x:Key="OpenAiIcon" Data="F1 M925.8 456.3C936.2 479.5 942.8 504.3 945.5 529.6C948.1 554.9 946.8 580.5 941.4 605.4C936.1 630.3 926.9 654.2 914.1 676.2C905.7 690.9 895.8 704.7 884.4 717.4C873.1 730 860.5 741.4 846.8 751.4C833 761.4 818.3 769.8 802.7 776.7C787.2 783.5 771 788.7 754.4 792.1C746.6 816.3 735 839.2 720 859.8C705.1 880.4 687 898.5 666.4 913.4C645.8 928.4 623 940 598.8 947.8C574.6 955.7 549.3 959.6 523.8 959.6C506.9 959.7 489.9 957.9 473.3 954.5C456.8 951 440.6 945.7 425.1 938.8C409.6 931.9 394.9 923.3 381.2 913.3C367.6 903.3 355 891.8 343.8 879.1C318.8 884.5 293.2 885.8 267.9 883.2C242.6 880.5 217.8 873.9 194.5 863.5C171.3 853.2 149.8 839.2 130.9 822.1C112 805 95.9001 785 83.2001 763C74.7001 748.3 67.7001 732.8 62.4001 716.7C57.1001 700.6 53.6001 684 51.8001 667.1C50.0001 650.3 50.1001 633.3 51.9001 616.4C53.7001 599.6 57.4001 583 62.7001 566.9C45.7001 548 31.7001 526.5 21.3001 503.3C11.0001 480 4.30011 455.3 1.70011 430C-0.999887 404.7 0.400113 379.1 5.70011 354.2C11.0001 329.3 20.2001 305.4 33.0001 283.4C41.4001 268.7 51.3001 254.8 62.6001 242.2C73.9001 229.6 86.6001 218.2 100.3 208.2C114 198.2 128.8 189.7 144.3 182.9C159.9 176 176.1 170.9 192.7 167.5C200.5 143.2 212.1 120.4 227 99.8C242 79.2 260.1 61.1 280.7 46.1C301.3 31.2 324.1 19.6 348.3 11.7C372.5 3.89997 397.8 -0.10003 423.3 -2.95639e-05C440.2 -0.10003 457.2 1.59997 473.8 5.09997C490.4 8.59997 506.6 13.8 522.1 20.7C537.6 27.7 552.3 36.2 566 46.2C579.7 56.3 592.3 67.7 603.5 80.4C628.4 75.1 654 73.8 679.3 76.4C704.6 79 729.3 85.7 752.6 96C775.8 106.4 797.3 120.3 816.2 137.4C835.1 154.4 851.2 174.3 863.9 196.4C872.4 211 879.4 226.5 884.7 242.7C890 258.8 893.6 275.4 895.3 292.3C897.1 309.2 897.1 326.2 895.2 343.1C893.4 360 889.7 376.6 884.4 392.7C901.5 411.6 915.4 433 925.8 456.3L925.8 456.3ZM592.6 883.2C614.4 874.2 634.2 860.9 650.9 844.2C667.6 827.5 680.9 807.7 689.9 785.8C698.9 764 703.6 740.6 703.6 717L703.6 494Q703.5 493.7 703.4 493.3Q703.3 493 703.1 492.7Q702.9 492.4 702.6 492.2Q702.3 491.9 702 491.8L621.3 445.2L621.3 714.6C621.3 717.3 620.9 720.1 620.2 722.7C619.5 725.4 618.5 727.9 617.1 730.3C615.7 732.7 614.1 734.9 612.1 736.8Q610.642 738.253 609.01 739.508Q607.379 740.763 605.6 741.8L414.5 852.1C412.9 853.1 410.2 854.5 408.8 855.3C416.7 862 425.3 867.9 434.3 873.1C443.4 878.3 452.8 882.7 462.6 886.3C472.4 889.8 482.5 892.5 492.7 894.3C503 896.1 513.4 897 523.8 897C547.4 897 570.8 892.3 592.6 883.2L592.6 883.2ZM137.5 731.8C149.4 752.3 165.1 770.1 183.8 784.5C202.6 798.9 223.9 809.4 246.7 815.5C269.5 821.6 293.3 823.2 316.7 820.1C340.1 817 362.6 809.4 383.1 797.6L576.3 686.1L576.8 685.6Q577 685.4 577.1 685Q577.3 684.7 577.4 684.4L577.4 590.4L344.2 725.3C341.8 726.7 339.3 727.7 336.7 728.5C334 729.2 331.3 729.5 328.5 729.5C325.8 729.5 323.1 729.2 320.4 728.5C317.8 727.7 315.2 726.7 312.8 725.3L121.7 614.9C120 613.9 117.5 612.4 116.1 611.5C114.3 621.8 113.4 632.2 113.4 642.6C113.4 653 114.4 663.4 116.2 673.7C118 683.9 120.8 694 124.3 703.8C127.9 713.6 132.3 723 137.5 732L137.5 731.8ZM87.3 314.8C75.5 335.3 67.9 357.9 64.8 381.3C61.7 404.7 63.3 428.4 69.4 451.3C75.5 474.1 86 495.4 100.4 514.2C114.8 532.9 132.7 548.6 153.1 560.4L346.2 672Q346.5 672.1 346.9 672.2L347.6 672.2Q348 672.2 348.3 672Q348.6 671.9 348.9 671.7L429.9 624.9L196.7 490.3C194.4 488.9 192.2 487.2 190.2 485.3Q188.747 483.842 187.492 482.21Q186.236 480.579 185.2 478.8C183.9 476.4 182.8 473.9 182.1 471.2C181.4 468.6 181 465.9 181.1 463.1L181.1 236C171.3 239.6 161.8 244 152.8 249.2C143.8 254.5 135.3 260.5 127.3 267.2C119.4 273.9 112 281.3 105.3 289.3C98.6 297.2 92.7 305.8 87.5 314.8L87.3 314.8ZM750.6 469.2C753 470.6 755.2 472.2 757.2 474.2C759.1 476.1 760.8 478.3 762.2 480.7C763.5 483.1 764.6 485.7 765.3 488.3C765.9 491 766.3 493.7 766.2 496.5L766.2 723.6C798.3 711.8 826.3 691.1 847 663.9C867.8 636.7 880.3 604.2 883.2 570.2C886.1 536.2 879.3 502 863.5 471.7C847.7 441.4 823.6 416.2 794 399.2L600.9 287.6Q600.6 287.5 600.2 287.4L599.5 287.4Q599.2 287.5 598.8 287.6Q598.5 287.7 598.2 287.9L517.6 334.5L750.8 469.2L750.6 469.2ZM831.1 348.2L831 348.2L831 348.3L831.1 348.2ZM831 348.1C836.8 314.5 832.9 279.9 819.7 248.4C806.6 216.9 784.7 189.8 756.7 170.2C728.7 150.7 695.7 139.5 661.6 138C627.4 136.6 593.6 144.9 564 161.9L370.9 273.4Q370.6 273.6 370.4 273.9L370 274.5Q369.9 274.8 369.8 275.2Q369.7 275.5 369.7 275.9L369.7 369.1L602.9 234.4C605.3 233 607.9 232 610.5 231.2C613.2 230.5 615.9 230.2 618.6 230.2C621.4 230.2 624.1 230.5 626.8 231.2C629.4 232 631.9 233 634.3 234.4L825.4 344.8C827.1 345.8 829.6 347.2 831 348.1ZM325.7 244.9C325.7 242.2 326.1 239.5 326.8 236.8C327.5 234.2 328.5 231.6 329.9 229.2C331.3 226.9 332.9 224.7 334.9 222.7C336.8 220.8 339 219.1 341.4 217.8L532.5 107.5C534.3 106.4 536.8 105 538.2 104.3C512 82.3999 480 68.3999 446.1 64.0999C412.2 59.6999 377.8 65.0999 346.9 79.5999C315.9 94.0999 289.7 117.2 271.4 146C253.1 174.9 243.4 208.3 243.4 242.5L243.4 465.5Q243.5 465.9 243.6 466.2Q243.7 466.5 243.9 466.8Q244.1 467.1 244.4 467.4Q244.6 467.6 245 467.8L325.7 514.4L325.7 244.9ZM369.5 539.6L473.4 599.6L577.3 539.6L577.3 419.7L473.5 359.7L369.6 419.7L369.5 539.6Z" />
4644
</ResourceDictionary>
4745
</Application.Resources>
4846

Loading

‎StabilityMatrix.Avalonia/Languages/Resources.Designer.cs

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎StabilityMatrix.Avalonia/Languages/Resources.resx

+2-2
Original file line numberDiff line numberDiff line change
@@ -418,10 +418,10 @@
418418
<value>Checkpoint Manager</value>
419419
</data>
420420
<data name="Label_RemoveSymlinksOnShutdown" xml:space="preserve">
421-
<value>Remove shared checkpoints directory symbolic links on shutdown</value>
421+
<value>Remove shared folder symbolic links on shutdown</value>
422422
</data>
423423
<data name="Label_RemoveSymlinksOnShutdown_Details" xml:space="preserve">
424-
<value>Select this option if you&apos;re having problems moving Stability Matrix to another drive</value>
424+
<value>Removes both model and output folder symbolic links when closing Stability Matrix. Select this option if you're having problems moving Stability Matrix to another drive</value>
425425
</data>
426426
<data name="Label_ResetCheckpointsCache" xml:space="preserve">
427427
<value>Reset Checkpoints Cache</value>

‎StabilityMatrix.Avalonia/StabilityMatrix.Avalonia.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
<AvaloniaResource Include="Assets\hf-packages.json" />
151151
<AvaloniaResource Include="Assets\santahat.png" />
152152
<AvaloniaResource Include="Assets\markdown.css" />
153+
<AvaloniaResource Include="Assets\openai-white-logomark.png" />
153154
</ItemGroup>
154155

155156
<ItemGroup>

‎StabilityMatrix.Avalonia/ViewModels/CheckpointsPageViewModel.cs

+22-7
Original file line numberDiff line numberDiff line change
@@ -1041,8 +1041,9 @@ private bool FilterModels(LocalModelFile file)
10411041
{
10421042
if (SelectedCategory?.Path is null || SelectedCategory?.Path == settingsManager.ModelsDirectory)
10431043
return file.HasConnectedModel
1044-
? SelectedBaseModels.Contains(file.ConnectedModelInfo.BaseModel ?? "Other")
1045-
: SelectedBaseModels.Contains("Other");
1044+
? SelectedBaseModels.Count == 0
1045+
|| SelectedBaseModels.Contains(file.ConnectedModelInfo.BaseModel ?? "Other")
1046+
: SelectedBaseModels.Count == 0 || SelectedBaseModels.Contains("Other");
10461047

10471048
var folderPath = Path.GetDirectoryName(file.RelativePath);
10481049
var categoryRelativePath = SelectedCategory
@@ -1056,16 +1057,30 @@ private bool FilterModels(LocalModelFile file)
10561057
if (
10571058
(
10581059
file.HasConnectedModel
1059-
? SelectedBaseModels.Contains(file.ConnectedModelInfo?.BaseModel ?? "Other")
1060-
: SelectedBaseModels.Contains("Other")
1060+
? SelectedBaseModels.Count == 0
1061+
|| SelectedBaseModels.Contains(file.ConnectedModelInfo?.BaseModel ?? "Other")
1062+
: SelectedBaseModels.Count == 0 || SelectedBaseModels.Contains("Other")
10611063
)
10621064
is false
10631065
)
10641066
return false;
10651067

1066-
return ShowModelsInSubfolders
1067-
? folderPath.StartsWith(categoryRelativePath)
1068-
: categoryRelativePath.Equals(folderPath);
1068+
// If not showing nested models, just check if the file is directly in this folder
1069+
if (!ShowModelsInSubfolders)
1070+
return categoryRelativePath.Equals(folderPath, StringComparison.OrdinalIgnoreCase);
1071+
1072+
// Split paths into segments
1073+
var categorySegments = categoryRelativePath.Split(Path.DirectorySeparatorChar);
1074+
var folderSegments = folderPath.Split(Path.DirectorySeparatorChar);
1075+
1076+
// Check if folder is a subfolder of category by comparing path segments
1077+
if (folderSegments.Length < categorySegments.Length)
1078+
return false;
1079+
1080+
// Compare each segment of the category path with the folder path
1081+
return !categorySegments
1082+
.Where((t, i) => !t.Equals(folderSegments[i], StringComparison.OrdinalIgnoreCase))
1083+
.Any();
10691084
}
10701085

10711086
private bool FilterCategories(CheckpointCategory category)

‎StabilityMatrix.Avalonia/Views/ConsoleOutputPage.axaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,11 @@
115115
<MenuItem
116116
Command="{Binding SearchWithChatGptCommand}"
117117
CommandParameter="{Binding ., ElementName=Console}"
118-
Header="Search with ChatGPT"
119-
Icon="{StaticResource OpenAiIcon}" />
118+
Header="Search with ChatGPT">
119+
<MenuItem.Icon>
120+
<controls:BetterAdvancedImage Source="avares://StabilityMatrix.Avalonia/Assets/openai-white-logomark.png" />
121+
</MenuItem.Icon>
122+
</MenuItem>
120123
</MenuFlyout>
121124
</avaloniaEdit:TextEditor.ContextFlyout>
122125
</avaloniaEdit:TextEditor>

‎StabilityMatrix.Core/Helper/SharedFolders.cs

+6
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ public void RemoveLinksForAllPackages()
195195
.RemoveModelFolderLinks(package.FullPath, sharedFolderMethod)
196196
.GetAwaiter()
197197
.GetResult();
198+
199+
// Remove output folder links if enabled
200+
if (package.UseSharedOutputFolder)
201+
{
202+
basePackage.RemoveOutputFolderLinks(package.FullPath).GetAwaiter().GetResult();
203+
}
198204
}
199205
catch (Exception e)
200206
{

‎StabilityMatrix.Core/Models/Packages/A3WebUI.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ IPrerequisiteHelper prerequisiteHelper
3939
new("https://github.com/AUTOMATIC1111/stable-diffusion-webui/raw/master/screenshot.png");
4040
public string RelativeArgsDefinitionScriptPath => "modules.cmd_args";
4141

42-
public override PackageDifficulty InstallerSortOrder => PackageDifficulty.Recommended;
42+
public override PackageDifficulty InstallerSortOrder => PackageDifficulty.Simple;
4343

4444
public override SharedFolderMethod RecommendedSharedFolderMethod => SharedFolderMethod.Symlink;
4545

‎StabilityMatrix.Core/Models/Packages/ComfyZluda.cs

+5
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ await requirements.ReadAllTextAsync(cancellationToken).ConfigureAwait(false),
7171

7272
pipArgs = pipArgs.AddArg("numpy==1.26.0");
7373

74+
if (installedPackage.PipOverrides != null)
75+
{
76+
pipArgs = pipArgs.WithUserOverrides(installedPackage.PipOverrides);
77+
}
78+
7479
progress?.Report(
7580
new ProgressReport(-1f, "Installing Package Requirements...", isIndeterminate: true)
7681
);

‎StabilityMatrix.Core/Models/Packages/InvokeAI.cs

+30-55
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class InvokeAI : BaseGitPackage
2222
{
2323
private static readonly Logger Logger = LogManager.GetCurrentClassLogger();
2424
private const string RelativeRootPath = "invokeai-root";
25-
private string RelativeFrontendBuildPath = Path.Combine("invokeai", "frontend", "web", "dist");
25+
private readonly string relativeFrontendBuildPath = Path.Combine("invokeai", "frontend", "web", "dist");
2626

2727
public override string Name => "InvokeAI";
2828
public override string DisplayName { get; set; } = "InvokeAI";
@@ -35,7 +35,7 @@ public class InvokeAI : BaseGitPackage
3535
public override PackageDifficulty InstallerSortOrder => PackageDifficulty.Nightmare;
3636

3737
public override IReadOnlyList<string> ExtraLaunchCommands =>
38-
new[] { "invokeai-db-maintenance", "invokeai-import-images", };
38+
["invokeai-db-maintenance", "invokeai-import-images"];
3939

4040
public override Uri PreviewImageUri =>
4141
new("https://raw.githubusercontent.com/invoke-ai/InvokeAI/main/docs/assets/canvas_preview.png");
@@ -57,80 +57,50 @@ IPrerequisiteHelper prerequisiteHelper
5757
public override Dictionary<SharedFolderType, IReadOnlyList<string>> SharedFolders =>
5858
new()
5959
{
60-
[SharedFolderType.StableDiffusion] = new[]
61-
{
62-
Path.Combine(RelativeRootPath, "autoimport", "main")
63-
},
64-
[SharedFolderType.Lora] = new[] { Path.Combine(RelativeRootPath, "autoimport", "lora") },
65-
[SharedFolderType.TextualInversion] = new[]
66-
{
67-
Path.Combine(RelativeRootPath, "autoimport", "embedding")
68-
},
69-
[SharedFolderType.ControlNet] = new[]
70-
{
71-
Path.Combine(RelativeRootPath, "autoimport", "controlnet")
72-
},
73-
[SharedFolderType.InvokeIpAdapters15] = new[]
74-
{
60+
[SharedFolderType.StableDiffusion] = [Path.Combine(RelativeRootPath, "autoimport", "main")],
61+
[SharedFolderType.Lora] = [Path.Combine(RelativeRootPath, "autoimport", "lora")],
62+
[SharedFolderType.TextualInversion] = [Path.Combine(RelativeRootPath, "autoimport", "embedding")],
63+
[SharedFolderType.ControlNet] = [Path.Combine(RelativeRootPath, "autoimport", "controlnet")],
64+
[SharedFolderType.InvokeIpAdapters15] =
65+
[
7566
Path.Combine(RelativeRootPath, "models", "sd-1", "ip_adapter")
76-
},
77-
[SharedFolderType.InvokeIpAdaptersXl] = new[]
78-
{
67+
],
68+
[SharedFolderType.InvokeIpAdaptersXl] =
69+
[
7970
Path.Combine(RelativeRootPath, "models", "sdxl", "ip_adapter")
80-
},
81-
[SharedFolderType.InvokeClipVision] = new[]
82-
{
71+
],
72+
[SharedFolderType.InvokeClipVision] =
73+
[
8374
Path.Combine(RelativeRootPath, "models", "any", "clip_vision")
84-
},
85-
[SharedFolderType.T2IAdapter] = new[]
86-
{
87-
Path.Combine(RelativeRootPath, "autoimport", "t2i_adapter")
88-
}
75+
],
76+
[SharedFolderType.T2IAdapter] = [Path.Combine(RelativeRootPath, "autoimport", "t2i_adapter")]
8977
};
9078

9179
public override Dictionary<SharedOutputType, IReadOnlyList<string>>? SharedOutputFolders =>
92-
new() { [SharedOutputType.Text2Img] = new[] { Path.Combine("invokeai-root", "outputs", "images") } };
80+
new() { [SharedOutputType.Text2Img] = [Path.Combine("invokeai-root", "outputs", "images")] };
9381

9482
public override string OutputFolderName => Path.Combine("invokeai-root", "outputs", "images");
9583

9684
// https://github.com/invoke-ai/InvokeAI/blob/main/docs/features/CONFIGURATION.md
9785
public override List<LaunchOptionDefinition> LaunchOptions =>
9886
[
99-
new LaunchOptionDefinition
100-
{
101-
Name = "Host",
102-
Type = LaunchOptionType.String,
103-
DefaultValue = "localhost",
104-
Options = ["--host"]
105-
},
106-
new LaunchOptionDefinition
87+
new()
10788
{
108-
Name = "Port",
89+
Name = "Root Directory",
10990
Type = LaunchOptionType.String,
110-
DefaultValue = "9090",
111-
Options = ["--port"]
91+
Options = ["--root"]
11292
},
113-
new LaunchOptionDefinition
93+
new()
11494
{
115-
Name = "Allow Origins",
116-
Description =
117-
"List of host names or IP addresses that are allowed to connect to the "
118-
+ "InvokeAI API in the format ['host1','host2',...]",
95+
Name = "Config File",
11996
Type = LaunchOptionType.String,
120-
DefaultValue = "[]",
121-
Options = ["--allow-origins"]
122-
},
123-
new LaunchOptionDefinition
124-
{
125-
Name = "Precision",
126-
Type = LaunchOptionType.Bool,
127-
Options = ["--precision auto", "--precision float16", "--precision float32"]
97+
Options = ["--config"]
12898
},
12999
LaunchOptionDefinition.Extras
130100
];
131101

132102
public override IEnumerable<TorchIndex> AvailableTorchIndices =>
133-
new[] { TorchIndex.Cpu, TorchIndex.Cuda, TorchIndex.Rocm, TorchIndex.Mps };
103+
[TorchIndex.Cpu, TorchIndex.Cuda, TorchIndex.Rocm, TorchIndex.Mps];
134104

135105
public override TorchIndex GetRecommendedTorchVersion()
136106
{
@@ -325,7 +295,7 @@ private async Task RunInvokeCommand(
325295
VenvRunner.UpdateEnvironmentVariables(env => GetEnvVars(env, installedPackagePath));
326296

327297
// fix frontend build missing for people who updated to v3.6 before the fix
328-
var frontendExistsPath = Path.Combine(installedPackagePath, RelativeFrontendBuildPath);
298+
var frontendExistsPath = Path.Combine(installedPackagePath, relativeFrontendBuildPath);
329299
if (!Directory.Exists(frontendExistsPath))
330300
{
331301
await SetupAndBuildInvokeFrontend(
@@ -422,6 +392,11 @@ ProcessOutput s
422392
)
423393
{
424394
var invokeAiUrl = match.Value;
395+
if (invokeAiUrl.Contains("0.0.0.0"))
396+
{
397+
invokeAiUrl = invokeAiUrl.Replace("0.0.0.0", "127.0.0.1");
398+
}
399+
425400
var invokeAiApi = RestService.For<IInvokeAiApi>(
426401
invokeAiUrl,
427402
new RefitSettings

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ IPrerequisiteHelper prerequisiteHelper
3636
public override TorchIndex GetRecommendedTorchVersion() =>
3737
HardwareHelper.PreferDirectMLOrZluda() ? TorchIndex.DirectMl : base.GetRecommendedTorchVersion();
3838

39-
public override PackageDifficulty InstallerSortOrder => PackageDifficulty.Recommended;
39+
public override PackageDifficulty InstallerSortOrder => PackageDifficulty.Simple;
4040

4141
public override List<LaunchOptionDefinition> LaunchOptions
4242
{

‎StabilityMatrix.Core/Python/PipInstallArgs.cs

+5
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ public PipInstallArgs WithUserOverrides(List<PipPackageSpecifierOverride> overri
6565
if (string.IsNullOrWhiteSpace(pipOverride.Name))
6666
continue;
6767

68+
if (pipOverride.Name is "--extra-index-url" or "--index-url")
69+
{
70+
pipOverride.Constraint = "=";
71+
}
72+
6873
var pipOverrideArg = pipOverride.ToArgument();
6974

7075
if (pipOverride.Action is PipPackageSpecifierOverrideAction.Update)

0 commit comments

Comments
 (0)
Please sign in to comment.