Skip to content

Commit

Permalink
Merge pull request #828 from LykosAI/main
Browse files Browse the repository at this point in the history
v2.11.7 Update
  • Loading branch information
ionite34 authored Aug 15, 2024
2 parents 43d9e7b + b9c8421 commit baf7331
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to Stability Matrix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2.0.0.html).

## v2.11.7
### Changed
- Forge will use the recommended pytorch version 2.3.1 the next time it is updated
- InvokeAI users with AMD GPUs on Linux will be upgraded to the rocm5.6 version of pytorch the next time it is updated
### Fixed
- Fixed Inference not connecting with "Could not connect to backend - JSON value could not be converted" error with API changes from newer ComfyUI versions
### Supporters
#### Pioneers
- Shoutout to our Pioneer-tier supporters on Patreon: **tankfox**, **tanangular**, **Mr. Unknown**, and **Szir777**! Thanks for all of your continued support!

## v2.11.6
### Fixed
- Fixed incorrect IPAdapter download links in the HuggingFace model browser
Expand Down
7 changes: 6 additions & 1 deletion StabilityMatrix.Avalonia/ViewModels/InferenceViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -462,10 +462,15 @@ private async Task Connect(CancellationToken cancellationToken = default)

if (RunningPackage is not null)
{
await notificationService.TryAsync(
var result = await notificationService.TryAsync(
ClientManager.ConnectAsync(RunningPackage, cancellationToken),
"Could not connect to backend"
);

if (result.Exception is { } exception)
{
Logger.Error(exception, "Failed to connect to Inference backend");
}
}
}

Expand Down
26 changes: 22 additions & 4 deletions StabilityMatrix.Core/Models/Api/Comfy/ComfyInputInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,35 @@ public class ComfyInputInfo
{
var value = Required?[key];

var nested = value?.Deserialize<List<List<string>>>();
// value usually is a [["a", "b"]] array
// but can also be [["a", "b"], {"x": "y"}] array

return nested?.SelectMany(x => x).ToList();
var outerArray = value?.Deserialize<JsonArray>();

if (outerArray?.FirstOrDefault() is not { } innerNode)
{
return null;
}

var innerList = innerNode.Deserialize<List<string>>();
return innerList;
}

public List<string>? GetOptionalValueAsNestedList(string key)
{
var value = Optional?[key];

var nested = value?.Deserialize<JsonArray>()?[0].Deserialize<List<string>>();
// value usually is a [["a", "b"]] array
// but can also be [["a", "b"], {"x": "y"}] array

var outerArray = value?.Deserialize<JsonArray>();

if (outerArray?.FirstOrDefault() is not { } innerNode)
{
return null;
}

return nested;
var innerList = innerNode.Deserialize<List<string>>();
return innerList;
}
}
8 changes: 4 additions & 4 deletions StabilityMatrix.Core/Models/Packages/InvokeAI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,15 @@ await venvRunner
await venvRunner
.PipInstall(
new PipInstallArgs()
.WithTorch("==2.0.1")
.WithTorchVision()
.WithExtraIndex("rocm5.4.2"),
.WithTorch("==2.2.2")
.WithTorchVision("==0.17.2")
.WithExtraIndex("rocm5.6"),
onConsoleOutput
)
.ConfigureAwait(false);
Logger.Info("Starting InvokeAI install (ROCm)...");
pipCommandArgs =
"-e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.4.2";
"-e . --use-pep517 --extra-index-url https://download.pytorch.org/whl/rocm5.6";
break;
case TorchVersion.Mps:
// For Apple silicon, use MPS
Expand Down
4 changes: 2 additions & 2 deletions StabilityMatrix.Core/Models/Packages/SDWebForge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ public override async Task InstallPackage(
else
{
pipArgs = pipArgs
.WithTorch("==2.1.2")
.WithTorchVision("==0.16.2")
.WithTorch("==2.3.1")
.WithTorchVision("==0.18.1")
.WithTorchExtraIndex(
torchVersion switch
{
Expand Down

0 comments on commit baf7331

Please sign in to comment.