Skip to content

Commit

Permalink
add rife-v4.16-lite (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise authored Mar 25, 2024
1 parent 09a5648 commit 3045071
Show file tree
Hide file tree
Showing 5 changed files with 957 additions and 4 deletions.
14 changes: 10 additions & 4 deletions RIFE/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ static void VS_CC rifeCreate(const VSMap* in, VSMap* out, [[maybe_unused]] void*
if (err)
d->skipThreshold = 60.0;

if (model < 0 || model > 49)
throw "model must be between 0 and 49 (inclusive)";
if (model < 0 || model > 53)
throw "model must be between 0 and 53 (inclusive)";

if (factorNum < 1)
throw "factor_num must be at least 1";
Expand Down Expand Up @@ -433,12 +433,18 @@ static void VS_CC rifeCreate(const VSMap* in, VSMap* out, [[maybe_unused]] void*
modelPath += "/rife-v4.15_ensembleTrue";
break;
case 49:
modelPath += "/sudo_rife4_ensembleFalse_fastTrue";
modelPath += "/rife-v4.16_lite_ensembleTrue";
break;
case 50:
modelPath += "/sudo_rife4_ensembleTrue_fastFalse";
modelPath += "/rife-v4.16_lite_ensembleTrue";
break;
case 51:
modelPath += "/sudo_rife4_ensembleFalse_fastTrue";
break;
case 52:
modelPath += "/sudo_rife4_ensembleTrue_fastFalse";
break;
case 53:
modelPath += "/sudo_rife4_ensembleTrue_fastTrue";
break;

Expand Down
Binary file added models/rife-v4.16_lite_ensembleFalse/flownet.bin
Binary file not shown.
Loading

0 comments on commit 3045071

Please sign in to comment.