Added XVFI models to model downloader

This commit is contained in:
n00mkrad
2021-08-25 00:31:39 +02:00
parent 55a2aa1cd1
commit 23fff2db09
3 changed files with 20 additions and 2 deletions

View File

@@ -42,6 +42,7 @@ namespace Flowframes.Forms
this.rifeNcnn = new System.Windows.Forms.CheckBox();
this.dainNcnn = new System.Windows.Forms.CheckBox();
this.flavrCuda = new System.Windows.Forms.CheckBox();
this.xvfiCuda = new System.Windows.Forms.CheckBox();
this.SuspendLayout();
//
// longProgBar
@@ -215,12 +216,26 @@ namespace Flowframes.Forms
this.flavrCuda.Text = "FLAVR CUDA";
this.flavrCuda.UseVisualStyleBackColor = true;
//
// xvfiCuda
//
this.xvfiCuda.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
this.xvfiCuda.AutoSize = true;
this.xvfiCuda.Checked = true;
this.xvfiCuda.CheckState = System.Windows.Forms.CheckState.Checked;
this.xvfiCuda.Location = new System.Drawing.Point(382, 203);
this.xvfiCuda.Name = "xvfiCuda";
this.xvfiCuda.Size = new System.Drawing.Size(82, 17);
this.xvfiCuda.TabIndex = 99;
this.xvfiCuda.Text = "XVFI CUDA";
this.xvfiCuda.UseVisualStyleBackColor = true;
//
// ModelDownloadForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(32)))), ((int)(((byte)(32)))), ((int)(((byte)(32)))));
this.ClientSize = new System.Drawing.Size(624, 301);
this.Controls.Add(this.xvfiCuda);
this.Controls.Add(this.flavrCuda);
this.Controls.Add(this.dainNcnn);
this.Controls.Add(this.rifeNcnn);
@@ -259,5 +274,6 @@ namespace Flowframes.Forms
private System.Windows.Forms.CheckBox rifeNcnn;
private System.Windows.Forms.CheckBox dainNcnn;
private System.Windows.Forms.CheckBox flavrCuda;
private System.Windows.Forms.CheckBox xvfiCuda;
}
}

View File

@@ -67,7 +67,8 @@ namespace Flowframes.Forms
bool rifeN = rifeNcnn.Checked;
bool dainN = dainNcnn.Checked;
bool flavrC = flavrCuda.Checked;
ModelDownloadFormUtils.DownloadModels(rifeC, rifeN, dainN, flavrC);
bool xvfiC = xvfiCuda.Checked;
ModelDownloadFormUtils.DownloadModels(rifeC, rifeN, dainN, flavrC, xvfiC);
}
private void cancelBtn_Click(object sender, EventArgs e)

View File

@@ -15,7 +15,7 @@ namespace Flowframes.MiscUtils
static int tasksToDo = 0;
static bool canceled = false;
public static async Task DownloadModels (bool rifeC, bool rifeN, bool dainN, bool flavrC)
public static async Task DownloadModels (bool rifeC, bool rifeN, bool dainN, bool flavrC, bool xvfiC)
{
form.SetDownloadBtnEnabled(true);
canceled = false;
@@ -25,6 +25,7 @@ namespace Flowframes.MiscUtils
if (rifeN) ais.Add(Implementations.rifeNcnn);
if (dainN) ais.Add(Implementations.dainNcnn);
if (flavrC) ais.Add(Implementations.flavrCuda);
if (xvfiC) ais.Add(Implementations.xvfiCuda);
if (ais.Count < 1)
return;