@@ -25,18 +25,13 @@ public DiffusionInputControl()
2525 {
2626 SeedCommand = new RelayCommand < bool > ( GenerateSeed ) ;
2727 AddTriggerWordCommand = new AsyncRelayCommand < string > ( AddTriggerWordAsync ) ;
28- // DefaultResolutions = [.. Enumerable.Range(4, 24).Select(x => 64 * x)];
2928 InitializeComponent ( ) ;
3029 }
3130
32-
33-
3431 public static readonly DependencyProperty PipelineProperty = DependencyProperty . Register ( nameof ( Pipeline ) , typeof ( PipelineModel ) , typeof ( DiffusionInputControl ) , new PropertyMetadata < DiffusionInputControl , PipelineModel > ( ( c , o , n ) => c . OnPipelineChanged ( o , n ) ) ) ;
3532 public static readonly DependencyProperty OptionsProperty = DependencyProperty . Register ( nameof ( Options ) , typeof ( DiffusionInputOptions ) , typeof ( DiffusionInputControl ) , new PropertyMetadata < DiffusionInputControl , DiffusionInputOptions > ( ( c , o , n ) => c . OnOptionsChanged ( o , n ) ) ) ;
3633 public static readonly DependencyProperty UpscaleOptionsProperty = DependencyProperty . Register ( nameof ( UpscaleOptions ) , typeof ( UpscaleInputOptions ) , typeof ( DiffusionInputControl ) ) ;
3734 public static readonly DependencyProperty ExtractOptionsProperty = DependencyProperty . Register ( nameof ( ExtractOptions ) , typeof ( ExtractInputOptions ) , typeof ( DiffusionInputControl ) ) ;
38- private HashSet < int > _defaultResolutions ;
39-
4035
4136 public ProcessType ProcessType { get ; set ; }
4237 public RelayCommand < bool > SeedCommand { get ; }
@@ -56,27 +51,16 @@ public DiffusionInputOptions Options
5651
5752 public UpscaleInputOptions UpscaleOptions
5853 {
59-
6054 get { return ( UpscaleInputOptions ) GetValue ( UpscaleOptionsProperty ) ; }
6155 set { SetValue ( UpscaleOptionsProperty , value ) ; }
6256 }
6357
6458 public ExtractInputOptions ExtractOptions
6559 {
66-
6760 get { return ( ExtractInputOptions ) GetValue ( ExtractOptionsProperty ) ; }
6861 set { SetValue ( ExtractOptionsProperty , value ) ; }
6962 }
7063
71-
72-
73-
74- //public HashSet<int> DefaultResolutions
75- //{
76- // get { return _defaultResolutions; }
77- // set { SetProperty(ref _defaultResolutions, value); }
78- //}
79-
8064 public SchedulerType [ ] Schedulers
8165 {
8266 get { return _schedulers ; }
@@ -125,9 +109,6 @@ public SizeOption SelectedResolution
125109 }
126110
127111
128-
129-
130-
131112 private Task OnPipelineChanged ( PipelineModel oldPipeline , PipelineModel newPipeline )
132113 {
133114 if ( newPipeline is null || newPipeline . DiffusionModel is null )
0 commit comments