forked from LykosAI/StabilityMatrix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiledVAECard.axaml
More file actions
79 lines (75 loc) · 3.66 KB
/
TiledVAECard.axaml
File metadata and controls
79 lines (75 loc) · 3.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<Styles
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="using:StabilityMatrix.Avalonia.Controls"
xmlns:ui="clr-namespace:FluentAvalonia.UI.Controls;assembly=FluentAvalonia"
xmlns:vmInference="clr-namespace:StabilityMatrix.Avalonia.ViewModels.Inference"
x:DataType="vmInference:TiledVAECardViewModel">
<Design.PreviewWith>
<controls:TiledVAECard />
</Design.PreviewWith>
<Style Selector="controls|TiledVAECard">
<!-- Set Defaults -->
<Setter Property="Template">
<ControlTemplate>
<controls:Card x:Name="PART_Card">
<controls:Card.Styles>
<Style Selector="ui|NumberBox">
<Setter Property="Margin" Value="12,0,0,0" />
<Setter Property="MinWidth" Value="70" />
<Setter Property="HorizontalAlignment" Value="Stretch" />
<Setter Property="ValidationMode" Value="InvalidInputOverwritten" />
<Setter Property="SmallChange" Value="32" />
<Setter Property="LargeChange" Value="128" />
<Setter Property="SpinButtonPlacementMode" Value="Inline" />
</Style>
</controls:Card.Styles>
<StackPanel Spacing="8">
<!-- Tile Size -->
<Grid ColumnDefinitions="Auto,*">
<TextBlock
Grid.Column="0"
VerticalAlignment="Center"
Text="Tile Size" />
<ui:NumberBox
Grid.Column="1"
Value="{Binding TileSize, Mode=TwoWay}" />
</Grid>
<!-- Overlap -->
<Grid ColumnDefinitions="Auto,*">
<TextBlock
Grid.Column="0"
VerticalAlignment="Center"
Text="Overlap" />
<ui:NumberBox
Grid.Column="1"
Value="{Binding Overlap, Mode=TwoWay}" />
</Grid>
<!-- Temporal Size (for Video VAEs) -->
<Grid ColumnDefinitions="Auto,*">
<TextBlock
Grid.Column="0"
VerticalAlignment="Center"
Text="Temporal Size" />
<ui:NumberBox
Grid.Column="1"
Value="{Binding TemporalSize, Mode=TwoWay}" />
</Grid>
<!-- Temporal Overlap (for Video VAEs) -->
<Grid ColumnDefinitions="Auto,*">
<TextBlock
Grid.Column="0"
VerticalAlignment="Center"
Text="Temporal Overlap" />
<ui:NumberBox
Grid.Column="1"
Value="{Binding TemporalOverlap, Mode=TwoWay}"
SmallChange="4"
LargeChange="16" />
</Grid>
</StackPanel>
</controls:Card>
</ControlTemplate>
</Setter>
</Style>
</Styles>