|
118 | 118 |
|
119 | 119 | </UniformGrid> |
120 | 120 |
|
| 121 | + |
| 122 | + |
| 123 | + <!--Frames / FrameRate--> |
| 124 | + <StackPanel Visibility="{Binding Pipeline.DiffusionModel.DefaultOptions.FrameOptions, Converter={StaticResource NullVisibilityConverter}, FallbackValue=Collapsed}"> |
| 125 | + <UniformGrid Columns="3"> |
| 126 | + <StackPanel Margin="0,0,2,0"> |
| 127 | + <TextBlock Text="Frames" Style="{StaticResource FieldTextBlockStyle}" /> |
| 128 | + <ComboBox ItemsSource="{Binding Pipeline.DiffusionModel.DefaultOptions.FrameOptions}" SelectedItem="{Binding Options.Frames}" /> |
| 129 | + </StackPanel> |
| 130 | + <StackPanel Margin="2,0,2,0"> |
| 131 | + <TextBlock Text="Frame Rate" Style="{StaticResource FieldTextBlockStyle}" /> |
| 132 | + <ComboBox ItemsSource="{Binding FrameRates}" SelectedItem="{Binding Options.FrameRate}" > |
| 133 | + <ComboBox.ItemTemplate> |
| 134 | + <DataTemplate> |
| 135 | + <TextBlock Text="{Binding ., StringFormat={}{0} fps}"/> |
| 136 | + </DataTemplate> |
| 137 | + </ComboBox.ItemTemplate> |
| 138 | + </ComboBox> |
| 139 | + </StackPanel> |
| 140 | + |
| 141 | + <DockPanel Margin="2,0,0,0"> |
| 142 | + <TextBlock DockPanel.Dock="Top" Text="Duration" Style="{StaticResource FieldTextBlockStyle}" /> |
| 143 | + <TextBox IsReadOnly="True" IsHitTestVisible="False" Opacity=".8"> |
| 144 | + <TextBox.Text> |
| 145 | + <MultiBinding Converter="{StaticResource FramesToTimeSpanConverter}" StringFormat="{}{0:mm\:ss\.ff}"> |
| 146 | + <Binding Path="Options.Frames" /> |
| 147 | + <Binding Path="Options.FrameRate" /> |
| 148 | + </MultiBinding> |
| 149 | + </TextBox.Text> |
| 150 | + </TextBox> |
| 151 | + </DockPanel> |
| 152 | + </UniformGrid> |
| 153 | + |
| 154 | + <!--Frame Chunk--> |
| 155 | + <StackPanel Visibility="{Binding Pipeline.DiffusionModel.DefaultOptions.FrameChunk, Converter={StaticResource GreaterThanToVisibilityConverter}, ConverterParameter=0, FallbackValue=Collapsed}"> |
| 156 | + <UniformGrid Columns="3" Margin="0,4,0,0"> |
| 157 | + <CommonControls:SliderControl Text="Chunk Size" Value="{Binding Options.FrameChunk}" Minimum="1" Maximum="{Binding Pipeline.DiffusionModel.DefaultOptions.Frames}" TickFrequency="1" ValueFormat="N0" Margin="0,0,2,0"/> |
| 158 | + <CommonControls:SliderControl Text="Overlap" Value="{Binding Options.FrameChunkOverlap}" Minimum="1" Maximum="{Binding Pipeline.DiffusionModel.DefaultOptions.Frames}" TickFrequency="1" ValueFormat="N0" Margin="2,0,2,0"/> |
| 159 | + <CommonControls:SliderControl Text="Noise Condition" Value="{Binding Options.NoiseCondition}" Minimum="1" Maximum="100" TickFrequency="1" ValueFormat="N0" Margin="2,0,0,0"/> |
| 160 | + </UniformGrid> |
| 161 | + </StackPanel> |
| 162 | + |
| 163 | + </StackPanel> |
| 164 | + |
| 165 | + |
121 | 166 | <!--ImageEdit--> |
122 | 167 | <StackPanel Visibility="{Binding ProcessType, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=ImageEdit}"> |
123 | 168 | <CommonControls:SliderControl Text="Input Images" Value="{Binding Options.InputImageCount}" Minimum="1" Maximum="4" TickFrequency="1" ValueFormat="N0" /> |
|
134 | 179 | </UniformGrid> |
135 | 180 | </StackPanel> |
136 | 181 |
|
137 | | - |
138 | | - <!--GuidanceScale--> |
| 182 | + <!--Guidance Scale--> |
139 | 183 | <StackPanel Visibility="{Binding IsGuidance2Enabled, Converter={StaticResource InverseBooleanToVisibilityConverter}}"> |
140 | 184 | <CommonControls:SliderControl Text="Guidance" Value="{Binding Options.GuidanceScale}" Minimum="1" Maximum="20" TickFrequency="0.1" ValueFormat="F2"/> |
141 | 185 | </StackPanel> |
|
146 | 190 | </UniformGrid> |
147 | 191 | </StackPanel> |
148 | 192 |
|
149 | | - |
150 | 193 | <!--ImageToImage--> |
151 | 194 | <StackPanel Visibility="{Binding ProcessType, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=ImageToImage}"> |
152 | 195 | <CommonControls:SliderControl Text="Strength" Value="{Binding Options.Strength}" IsPercent="True" Minimum="0.01" Maximum="1" TickFrequency="0.01"/> |
153 | 196 | </StackPanel> |
154 | 197 |
|
| 198 | + <!--VideoToVideo--> |
| 199 | + <StackPanel Visibility="{Binding ProcessType, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=VideoToVideo}"> |
| 200 | + <StackPanel Visibility="{Binding Pipeline.DiffusionModel.DefaultOptions.Strength, Converter={StaticResource LessThanToVisibilityConverter}, ConverterParameter=1}"> |
| 201 | + <CommonControls:SliderControl Text="Strength" Value="{Binding Options.Strength}" IsPercent="True" Minimum="0.01" Maximum="1" TickFrequency="0.01"/> |
| 202 | + </StackPanel> |
| 203 | + </StackPanel> |
| 204 | + |
155 | 205 | <!--ImageInpaint--> |
156 | 206 | <StackPanel Visibility="{Binding ProcessType, Converter={StaticResource EnumToVisibilityConverter}, ConverterParameter=ImageInpaint}"> |
157 | 207 | <CommonControls:SliderControl Text="Strength" Value="{Binding Options.Strength}" IsPercent="True" Minimum="0.01" Maximum="1" TickFrequency="0.01"/> |
|
168 | 218 | <CommonControls:SliderControl Text="ControlNet Strength" Value="{Binding Options.ControlNetStrength}" IsPercent="True" Minimum="0.01" Maximum="1" TickFrequency="0.01"/> |
169 | 219 | </StackPanel> |
170 | 220 |
|
171 | | - |
172 | | - |
173 | | - <!--LoraStrength--> |
| 221 | + <!--Lora Strength--> |
174 | 222 | <ItemsControl ItemsSource="{Binding Options.LoraOptions}"> |
175 | 223 | <ItemsControl.ItemTemplate> |
176 | 224 | <DataTemplate> |
|
198 | 246 | </ItemsControl.ItemsPanel> |
199 | 247 | </ItemsControl> |
200 | 248 |
|
201 | | - <StackPanel Visibility="{Binding Pipeline.DiffusionModel.DefaultOptions.FramesMin, Converter={StaticResource GreaterThanToVisibilityConverter}, ConverterParameter=0}"> |
202 | | - <UniformGrid Columns="2"> |
203 | | - <CommonControls:SliderControl Text="Frames" Minimum="{Binding Pipeline.DiffusionModel.DefaultOptions.FramesMin}" Maximum="{Binding Pipeline.DiffusionModel.DefaultOptions.FramesMax}" Value="{Binding Options.Frames}" TickFrequency="1" Margin="0,0,3,0"/> |
204 | | - <CommonControls:SliderControl Text="Frame Rate" Value="{Binding Options.FrameRate}" Minimum="8" Maximum="60" TickFrequency="1" ValueFormat="F0" Margin="3,0,0,0"/> |
205 | | - </UniformGrid> |
206 | | - </StackPanel> |
207 | | - |
208 | 249 |
|
209 | | - |
210 | | - <!--FlowMatch--> |
211 | | - <StackPanel Visibility="{Binding IsSchedulerFlowMatch, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}"> |
212 | | - <StackPanel> |
213 | | - <CommonControls:SliderControl Text="Shift" Value="{Binding Options.SchedulerOptions.Shift}" Minimum="1" Maximum="10" TickFrequency="0.1" ValueFormat="F2"/> |
| 250 | + <StackPanel Margin="0,0,0,10"> |
| 251 | + <!--FlowMatch--> |
| 252 | + <StackPanel Visibility="{Binding IsSchedulerFlowMatch, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}"> |
| 253 | + <StackPanel> |
| 254 | + <CommonControls:SliderControl Text="Shift" Value="{Binding Options.SchedulerOptions.Shift}" Minimum="1" Maximum="10" TickFrequency="0.1" ValueFormat="F2"/> |
| 255 | + </StackPanel> |
| 256 | + <UniformGrid Columns="2" Margin="0,6,0,0"> |
| 257 | + <Grid HorizontalAlignment="Left"> |
| 258 | + <CheckBox Content="Dynamic Shifting" IsChecked="{Binding Options.SchedulerOptions.UseDynamicShifting}" /> |
| 259 | + </Grid> |
| 260 | + <Grid HorizontalAlignment="Right"> |
| 261 | + <CheckBox Content="Stochastic Sampling" IsChecked="{Binding Options.SchedulerOptions.StochasticSampling}" /> |
| 262 | + </Grid> |
| 263 | + </UniformGrid> |
214 | 264 | </StackPanel> |
215 | | - <UniformGrid Columns="2" Margin="0,6,0,0"> |
216 | | - <Grid HorizontalAlignment="Left"> |
217 | | - <CheckBox Content="Dynamic Shifting" IsChecked="{Binding Options.SchedulerOptions.UseDynamicShifting}" /> |
218 | | - </Grid> |
219 | | - <Grid HorizontalAlignment="Right"> |
220 | | - <CheckBox Content="Stochastic Sampling" IsChecked="{Binding Options.SchedulerOptions.StochasticSampling}" /> |
| 265 | + |
| 266 | + <!--Karras--> |
| 267 | + <StackPanel Margin="0,6,0,0" Visibility="{Binding IsSchedulerKarras, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}"> |
| 268 | + <Grid> |
| 269 | + <CheckBox Content="Karras Sigmas" IsChecked="{Binding Options.SchedulerOptions.UseKarrasSigmas}" /> |
221 | 270 | </Grid> |
222 | | - </UniformGrid> |
| 271 | + </StackPanel> |
223 | 272 | </StackPanel> |
224 | 273 |
|
225 | | - <!--Karras--> |
226 | | - <StackPanel Margin="0,6,0,0" Visibility="{Binding IsSchedulerKarras, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}"> |
227 | | - <Grid> |
228 | | - <CheckBox Content="Karras Sigmas" IsChecked="{Binding Options.SchedulerOptions.UseKarrasSigmas}" /> |
229 | | - </Grid> |
230 | | - </StackPanel> |
231 | 274 | </StackPanel> |
232 | 275 | </TabItem> |
233 | 276 |
|
|
0 commit comments