Skip to content

Commit db617db

Browse files
committed
Merge branch 'prompt-amplify-n-stuff' of https://github.com/ionite34/StabilityMatrix into prompt-amplify-n-stuff
2 parents 9609243 + 6e1f637 commit db617db

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning 2.0](https://semver.org/spec/v2
1212
- Fixed Inference ControlNet Preprocessors using incorrect resolution and increased maximum of smallest dimension to 16384
1313
- Fixed Triton/Sage install option showing for incompatible GPUs
1414
- Fixed errors from invalid pip specifiers in requirements files
15+
- Fixed package images sometimes showing as blank due to concurrent image caching. Requests to same image resources are now de-duplicated
1516

1617
## v2.14.0-pre.1
1718
### Added

StabilityMatrix.Avalonia/Controls/VendorLabs/AsyncImage/BetterAsyncImageCacheProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
using System.IO;
33
using System.Reflection;
44
using System.Threading;
5+
using Fusillade;
56
using StabilityMatrix.Avalonia.Controls.VendorLabs.Cache;
67

78
namespace StabilityMatrix.Avalonia.Controls.VendorLabs;
@@ -20,7 +21,8 @@ public static class BetterAsyncImageCacheProvider
2021
&& !string.IsNullOrEmpty(assemblyName)
2122
? Path.Combine(Path.GetTempPath(), assemblyName, "Cache")
2223
: Path.Combine(Path.GetTempPath(), "Cache"),
23-
CacheDuration = TimeSpan.FromDays(1)
24+
CacheDuration = TimeSpan.FromDays(1),
25+
HttpMessageHandler = NetCache.UserInitiated
2426
}
2527
),
2628
LazyThreadSafetyMode.ExecutionAndPublication

StabilityMatrix.Avalonia/Views/Dialogs/SafetensorMetadataDialog.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
Orientation="Horizontal" />
6767
</ui:ItemsRepeater.Layout>
6868
<ui:ItemsRepeater.ItemTemplate>
69-
<DataTemplate>
69+
<DataTemplate x:DataType="models:SafetensorMetadata+Tag">
7070
<Button
7171
Command="{Binding $parent[ui:ItemsRepeater].((dialogs:SafetensorMetadataViewModel)DataContext).CopyTagToClipboardCommand}"
7272
CommandParameter="{Binding Name}"
@@ -100,7 +100,7 @@
100100
IsVisible="{Binding !!Metadata.OtherMetadata.Count}"
101101
ItemsSource="{Binding Metadata.OtherMetadata}">
102102
<ui:ItemsRepeater.ItemTemplate>
103-
<DataTemplate>
103+
<DataTemplate x:DataType="models:SafetensorMetadata+Metadata">
104104
<StackPanel Margin="5" Orientation="Vertical">
105105
<TextBlock FontWeight="SemiBold" Text="{Binding Name}" />
106106
<TextBlock Text="{Binding Value}" />

0 commit comments

Comments
 (0)