Skip to content

Commit cb27198

Browse files
committed
Fix result splitter focus issues
1 parent a34660c commit cb27198

31 files changed

+469
-342
lines changed

BuildRelease.bat

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
dotnet build TensorStack.Common/TensorStack.Common.csproj -c Release
2+
dotnet pack TensorStack.Common/TensorStack.Common.csproj -c Release
3+
4+
dotnet build TensorStack.Image/TensorStack.Image.csproj -c Release
5+
dotnet pack TensorStack.Image/TensorStack.Image.csproj -c Release
6+
7+
dotnet build TensorStack.Image.Bitmap/TensorStack.Image.Bitmap.csproj -c Release
8+
dotnet pack TensorStack.Image.Bitmap/TensorStack.Image.Bitmap.csproj -c Release
9+
10+
dotnet build TensorStack.Image.BitmapImage/TensorStack.Image.BitmapImage.csproj -c Release
11+
dotnet pack TensorStack.Image.BitmapImage/TensorStack.Image.BitmapImage.csproj -c Release
12+
13+
dotnet build TensorStack.Image.ImageSharp/TensorStack.Image.ImageSharp.csproj -c Release
14+
dotnet pack TensorStack.Image.ImageSharp/TensorStack.Image.ImageSharp.csproj -c Release
15+
16+
dotnet build TensorStack.Audio/TensorStack.Audio.csproj -c Release
17+
dotnet pack TensorStack.Audio/TensorStack.Audio.csproj -c Release
18+
19+
dotnet build TensorStack.Audio.Windows/TensorStack.Audio.Windows.csproj -c Release
20+
dotnet pack TensorStack.Audio.Windows/TensorStack.Audio.Windows.csproj -c Release
21+
22+
dotnet build TensorStack.Video/TensorStack.Video.csproj -c Release
23+
dotnet pack TensorStack.Video/TensorStack.Video.csproj -c Release
24+
25+
dotnet build TensorStack.Video.Windows/TensorStack.Video.Windows.csproj -c Release
26+
dotnet pack TensorStack.Video.Windows/TensorStack.Video.Windows.csproj -c Release
27+
28+
dotnet build TensorStack.Providers.CPU/TensorStack.Providers.CPU.csproj -c Release
29+
dotnet pack TensorStack.Providers.CPU/TensorStack.Providers.CPU.csproj -c Release
30+
31+
dotnet build TensorStack.Providers.CUDA/TensorStack.Providers.CUDA.csproj -c Release
32+
dotnet pack TensorStack.Providers.CUDA/TensorStack.Providers.CUDA.csproj -c Release
33+
34+
dotnet build TensorStack.Providers.DML/TensorStack.Providers.DML.csproj -c Release
35+
dotnet pack TensorStack.Providers.DML/TensorStack.Providers.DML.csproj -c Release
36+
37+
dotnet build TensorStack.Extractors/TensorStack.Extractors.csproj -c Release
38+
dotnet pack TensorStack.Extractors/TensorStack.Extractors.csproj -c Release
39+
40+
dotnet build TensorStack.Upscaler/TensorStack.Upscaler.csproj -c Release
41+
dotnet pack TensorStack.Upscaler/TensorStack.Upscaler.csproj -c Release
42+
43+
dotnet build TensorStack.StableDiffusion/TensorStack.StableDiffusion.csproj -c Release
44+
dotnet pack TensorStack.StableDiffusion/TensorStack.StableDiffusion.csproj -c Release
45+
46+
dotnet build TensorStack.TextGeneration/TensorStack.TextGeneration.csproj -c Release
47+
dotnet pack TensorStack.TextGeneration/TensorStack.TextGeneration.csproj -c Release
48+
49+
dotnet build TensorStack.WPF/TensorStack.WPF.csproj -c Release
50+
dotnet pack TensorStack.WPF/TensorStack.WPF.csproj -c Release

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project>
22
<PropertyGroup>
3-
<Version>0.1.18</Version>
3+
<Version>0.1.25</Version>
44
<Company>TensorStack</Company>
55
<Copyright>TensorStack - 2025</Copyright>
66
<RepositoryUrl>https://github.com/TensorStack-AI/TensorStack</RepositoryUrl>

Examples/TensorStack.Example.Extractors/MainWindow.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@
4040
<StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right">
4141
<UniformGrid Columns="3" >
4242
<Button Command="{Binding MinimizeCommand}" Padding="10,1" >
43-
<CommonControls:FontAwesome Icon="&#xf2d1;" />
43+
<CommonControls:FontAwesome Icon="f2d1" />
4444
</Button>
4545
<Grid>
4646
<Button Command="{Binding RestoreCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Maximized}">
47-
<CommonControls:FontAwesome Icon="&#xf2d2;" />
47+
<CommonControls:FontAwesome Icon="f2d2" />
4848
</Button>
4949
<Button Command="{Binding MaximizeCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource InverseEnumToVisibilityConverter}, ConverterParameter=Maximized}">
50-
<CommonControls:FontAwesome Icon="&#xf2d0;" />
50+
<CommonControls:FontAwesome Icon="f2d0" />
5151
</Button>
5252
</Grid>
5353
<Button x:Name="CloseButton" Command="{Binding CloseCommand}" Padding="12,0" >
54-
<CommonControls:FontAwesome Icon="&#xf00d;" />
54+
<CommonControls:FontAwesome Icon="f00d" />
5555
</Button>
5656
</UniformGrid>
5757
</StackPanel>

Examples/TensorStack.Example.Extractors/Views/ImageExtractorView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@
168168
SplitterPosition="Source"
169169
SplitterDirection="LeftToRight"
170170
Progress="{Binding Progress}"
171-
Source="{Binding ResultImage}"
172-
OverlaySource="{Binding CompareImage}"
171+
Source="{Binding ResultImage, Mode=TwoWay}"
172+
OverlaySource="{Binding CompareImage, Mode=TwoWay}"
173173
IsLoadEnabled="False"
174174
IsLoadOverlayEnabled="False"/>
175175
</Grid>

Examples/TensorStack.Example.Extractors/Views/VideoExtractorView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@
185185
SplitterPosition="Source"
186186
SplitterDirection="LeftToRight"
187187
Progress="{Binding Progress}"
188-
Source="{Binding ResultVideo}"
189-
OverlaySource="{Binding CompareVideo}"
188+
Source="{Binding ResultVideo, Mode=TwoWay}"
189+
OverlaySource="{Binding CompareVideo, Mode=TwoWay}"
190190
IsLoadEnabled="False"
191191
IsLoadOverlayEnabled="False"/>
192192
</Grid>

Examples/TensorStack.Example.TextGeneration/MainWindow.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,18 @@
2929
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
3030
<UniformGrid Columns="3" >
3131
<Button Command="{Binding MinimizeCommand}" Padding="10,1" >
32-
<CommonControls:FontAwesome Icon="&#xf2d1;" />
32+
<CommonControls:FontAwesome Icon="f2d1" />
3333
</Button>
3434
<Grid>
3535
<Button Command="{Binding RestoreCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Maximized}">
36-
<CommonControls:FontAwesome Icon="&#xf2d2;" />
36+
<CommonControls:FontAwesome Icon="f2d2" />
3737
</Button>
3838
<Button Command="{Binding MaximizeCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource InverseEnumToVisibilityConverter}, ConverterParameter=Maximized}">
39-
<CommonControls:FontAwesome Icon="&#xf2d0;" />
39+
<CommonControls:FontAwesome Icon="f2d0" />
4040
</Button>
4141
</Grid>
4242
<Button x:Name="CloseButton" Command="{Binding CloseCommand}" Padding="12,0" >
43-
<CommonControls:FontAwesome Icon="&#xf00d;" />
43+
<CommonControls:FontAwesome Icon="f00d" />
4444
</Button>
4545
</UniformGrid>
4646
</StackPanel>

Examples/TensorStack.Example.TextGeneration/Views/TextSummaryView.xaml.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System.Linq;
55
using System.Threading.Tasks;
66
using TensorStack.Common;
7+
using TensorStack.Common.Common;
78
using TensorStack.Example.Common;
89
using TensorStack.Example.Services;
910
using TensorStack.TextGeneration.Common;
@@ -267,8 +268,8 @@ private bool CanCancel()
267268

268269
private async Task<bool> IsModelValidAsync()
269270
{
270-
var filenames = SelectedModel.UrlPaths.Select(x => Path.Combine(SelectedModel.Path, Path.GetFileName(x).Split('?').First()));
271-
if (filenames.All(File.Exists))
271+
var modelFiles = FileHelper.GetUrlFileMapping(SelectedModel.UrlPaths, SelectedModel.Path);
272+
if (modelFiles.Values.All(File.Exists))
272273
return true;
273274

274275
return await DialogService.DownloadAsync($"Download '{SelectedModel.Name}' model?", SelectedModel.UrlPaths, SelectedModel.Path);

Examples/TensorStack.Example.Upscaler/MainWindow.xaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,18 @@
3131
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
3232
<UniformGrid Columns="3" >
3333
<Button Command="{Binding MinimizeCommand}" Padding="10,1" >
34-
<CommonControls:FontAwesome Icon="&#xf2d1;" />
34+
<CommonControls:FontAwesome Icon="f2d1" />
3535
</Button>
3636
<Grid>
3737
<Button Command="{Binding RestoreCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=Maximized}">
38-
<CommonControls:FontAwesome Icon="&#xf2d2;" />
38+
<CommonControls:FontAwesome Icon="f2d2" />
3939
</Button>
4040
<Button Command="{Binding MaximizeCommand}" Padding="10,1" Visibility="{Binding WindowState, Converter={StaticResource InverseEnumToVisibilityConverter}, ConverterParameter=Maximized}">
41-
<CommonControls:FontAwesome Icon="&#xf2d0;" />
41+
<CommonControls:FontAwesome Icon="f2d0" />
4242
</Button>
4343
</Grid>
4444
<Button x:Name="CloseButton" Command="{Binding CloseCommand}" Padding="12,0" >
45-
<CommonControls:FontAwesome Icon="&#xf00d;" />
45+
<CommonControls:FontAwesome Icon="f00d" />
4646
</Button>
4747
</UniformGrid>
4848
</StackPanel>

Examples/TensorStack.Example.Upscaler/Views/ImageUpscaleView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@
118118
SplitterPosition="Source"
119119
SplitterDirection="LeftToRight"
120120
Progress="{Binding Progress}"
121-
Source="{Binding ResultImage}"
122-
OverlaySource="{Binding CompareImage}"
121+
Source="{Binding ResultImage, Mode=TwoWay}"
122+
OverlaySource="{Binding CompareImage, Mode=TwoWay}"
123123
IsLoadEnabled="False"
124124
IsLoadOverlayEnabled="False"/>
125125
</Grid>

Examples/TensorStack.Example.Upscaler/Views/VideoUpscaleView.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@
121121
SplitterPosition="Source"
122122
SplitterDirection="LeftToRight"
123123
Progress="{Binding Progress}"
124-
Source="{Binding ResultVideo}"
125-
OverlaySource="{Binding CompareVideo}"
124+
Source="{Binding ResultVideo, Mode=TwoWay}"
125+
OverlaySource="{Binding CompareVideo, Mode=TwoWay}"
126126
IsLoadEnabled="False"
127127
IsLoadOverlayEnabled="False"/>
128128
</Grid>

0 commit comments

Comments
 (0)