Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Update extension method
Browse files Browse the repository at this point in the history
  • Loading branch information
saddam213 committed Jan 11, 2024
1 parent 444f68a commit 1a437a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions OnnxStack.UI/Views/VideoToVideoView.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ private async Task Generate()
/// </returns>
private bool CanExecuteGenerate()
{
return !IsGenerating
return !IsGenerating
&& HasInputResult
&& (!SelectedModel.IsControlNet || (SelectedModel.IsControlNet && SelectedControlNetModel?.IsLoaded == true));
}
Expand Down Expand Up @@ -333,7 +333,7 @@ private PromptOptions GetPromptOptions(PromptOptionsModel promptOptionsModel, Vi
? DiffuserType.ControlNet
: DiffuserType.ControlNetImage;
}

return new PromptOptions
{
Prompt = promptOptionsModel.Prompt,
Expand Down Expand Up @@ -411,7 +411,7 @@ public BitmapImage UpdatePreviewFrame(int index)
using (var memoryStream = new MemoryStream())
using (var frameImage = SixLabors.ImageSharp.Image.Load<Rgba32>(frame))
{
ImageHelpers.Resize(frameImage, new[] { 1, 3, _schedulerOptions.Height, _schedulerOptions.Width });
frameImage.Resize(_schedulerOptions.Height, _schedulerOptions.Width);
frameImage.SaveAsPng(memoryStream);
var image = new BitmapImage();
image.BeginInit();
Expand Down

0 comments on commit 1a437a5

Please sign in to comment.