Skip to content

Commit acf9c99

Browse files
committed
Fix: unify temporal tiling toggle and align UI with backend
- Removed redundant UseTemporalTiling property from TiledVAECardViewModel - Consolidated temporal tiling logic into UseCustomTemporalTiling - Updated TiledVAECard.axaml bindings to use UseCustomTemporalTiling - Ensured temporal controls visibility and backend behavior remain consistent
1 parent d332aa1 commit acf9c99

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

StabilityMatrix.Avalonia/Controls/Inference/TiledVAECard.axaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
<!-- Enable Temporal Tiling -->
5555
<ToggleSwitch
5656
Header="Enable Temporal Tiling"
57-
IsChecked="{Binding UseTemporalTiling}" />
57+
IsChecked="{Binding UseCustomTemporalTiling}" />
5858

5959
<!-- Temporal Controls (Visible only when enabled) -->
60-
<StackPanel IsVisible="{Binding UseTemporalTiling}" Spacing="8">
60+
<StackPanel IsVisible="{Binding UseCustomTemporalTiling}" Spacing="8">
6161

6262
<!-- Temporal Size -->
6363
<Grid ColumnDefinitions="Auto,*">

StabilityMatrix.Avalonia/ViewModels/Inference/TiledVAECardViewModel.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@ public partial class TiledVAECardViewModel : LoadableViewModelBase
2828
[Range(0, 4096)]
2929
private int overlap = 64;
3030

31-
// NEW: Toggle now means "Use custom temporal tiling settings"
31+
// Toggle: Use custom temporal tiling settings
3232
[ObservableProperty]
3333
private bool useCustomTemporalTiling = false;
3434

3535
// Temporal tile size (must be >= 8)
36-
[ObservableProperty]
37-
private bool useTemporalTiling = true;
38-
3936
[ObservableProperty]
4037
[NotifyDataErrorInfo]
4138
[Required]

0 commit comments

Comments
 (0)