From e389085ec11104f51ac5b10c4e7edab3dc3f9f42 Mon Sep 17 00:00:00 2001 From: JT Date: Tue, 28 Nov 2023 23:03:51 -0800 Subject: [PATCH] Added image to video in inference (mostly) --- StabilityMatrix.Avalonia/App.axaml | 3 +- .../Controls/ModelCard.axaml | 2 + .../VideoGenerationSettingsCard.axaml | 122 +++++++++ .../VideoGenerationSettingsCard.axaml.cs | 7 + .../Controls/VideoOutputSettingsCard.axaml | 86 +++++++ .../Controls/VideoOutputSettingsCard.axaml.cs | 7 + .../DesignData/DesignData.cs | 14 + .../Models/Inference/VideoOutputMethod.cs | 8 + .../Models/InferenceProjectDocument.cs | 1 + .../Models/InferenceProjectType.cs | 4 +- .../StabilityMatrix.Avalonia.csproj | 12 + .../Base/InferenceGenerationViewModelBase.cs | 37 ++- .../InferenceImageToVideoViewModel.cs | 243 ++++++++++++++++++ .../Inference/ModelCardViewModel.cs | 5 +- .../Video/ImgToVidModelCardViewModel.cs | 37 +++ .../Video/SvdImgToVidConditioningViewModel.cs | 90 +++++++ .../Video/VideoOutputSettingsCardViewModel.cs | 80 ++++++ .../Inference/InferenceImageToVideoView.axaml | 221 ++++++++++++++++ .../InferenceImageToVideoView.axaml.cs | 13 + .../Views/InferencePage.axaml | 10 + .../Views/InferencePage.axaml.cs | 7 + .../Api/Comfy/NodeTypes/NodeConnections.cs | 2 + .../Api/Comfy/Nodes/ComfyNodeBuilder.cs | 41 +++ 23 files changed, 1038 insertions(+), 14 deletions(-) create mode 100644 StabilityMatrix.Avalonia/Controls/VideoGenerationSettingsCard.axaml create mode 100644 StabilityMatrix.Avalonia/Controls/VideoGenerationSettingsCard.axaml.cs create mode 100644 StabilityMatrix.Avalonia/Controls/VideoOutputSettingsCard.axaml create mode 100644 StabilityMatrix.Avalonia/Controls/VideoOutputSettingsCard.axaml.cs create mode 100644 StabilityMatrix.Avalonia/Models/Inference/VideoOutputMethod.cs create mode 100644 StabilityMatrix.Avalonia/ViewModels/Inference/InferenceImageToVideoViewModel.cs create mode 100644 StabilityMatrix.Avalonia/ViewModels/Inference/Video/ImgToVidModelCardViewModel.cs create mode 100644 StabilityMatrix.Avalonia/ViewModels/Inference/Video/SvdImgToVidConditioningViewModel.cs create mode 100644 StabilityMatrix.Avalonia/ViewModels/Inference/Video/VideoOutputSettingsCardViewModel.cs create mode 100644 StabilityMatrix.Avalonia/Views/Inference/InferenceImageToVideoView.axaml create mode 100644 StabilityMatrix.Avalonia/Views/Inference/InferenceImageToVideoView.axaml.cs diff --git a/StabilityMatrix.Avalonia/App.axaml b/StabilityMatrix.Avalonia/App.axaml index 93486dab..4e02cb07 100644 --- a/StabilityMatrix.Avalonia/App.axaml +++ b/StabilityMatrix.Avalonia/App.axaml @@ -74,7 +74,8 @@ - + + diff --git a/StabilityMatrix.Avalonia/Controls/ModelCard.axaml b/StabilityMatrix.Avalonia/Controls/ModelCard.axaml index e0fc6a1c..ce990ac9 100644 --- a/StabilityMatrix.Avalonia/Controls/ModelCard.axaml +++ b/StabilityMatrix.Avalonia/Controls/ModelCard.axaml @@ -12,6 +12,7 @@ + @@ -135,6 +136,7 @@ + +