Skip to content

Commit

Permalink
Merge pull request #51 from TNTwise/master
Browse files Browse the repository at this point in the history
4.24
  • Loading branch information
styler00dollar authored Sep 2, 2024
2 parents 08c941c + 0477580 commit 2214832
Show file tree
Hide file tree
Showing 6 changed files with 960 additions and 7 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,14 @@ By default models are exported with ensemble=False and Fast=True
- 63 = rife-v4.21 (ensemble=False)
- 64 = rife-v4.22 (ensemble=False)
- 65 = rife-v4.22-lite(ensemble=False)
- 66 = rife-v4.24 (ensemble=False)
- 67 = rife-v4.24 (ensemble=True)

## My experimental custom models (only works with 2x)

- 66 = sudo_rife4 (ensemble=False / fast=True)
- 67 = sudo_rife4 (ensemble=True / fast=False)
- 68 = sudo_rife4 (ensemble=True / fast=True)
- 68 = sudo_rife4 (ensemble=False / fast=True)
- 69 = sudo_rife4 (ensemble=True / fast=False)
- 70 = sudo_rife4 (ensemble=True / fast=True)

- factor_num, factor_den: Factor of target frame rate. For example `factor_num=5, factor_den=2` will multiply input clip FPS by 2.5. Only rife-v4 model supports custom frame rate.

Expand Down
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 > 68)
throw "model must be between 0 and 68 (inclusive)";
if (model < 0 || model > 70)
throw "model must be between 0 and 70 (inclusive)";

if (factorNum < 1)
throw "factor_num must be at least 1";
Expand Down Expand Up @@ -484,12 +484,18 @@ static void VS_CC rifeCreate(const VSMap* in, VSMap* out, [[maybe_unused]] void*
modelPath += "/rife-v4.22_lite_ensembleFalse";
break;
case 66:
modelPath += "/sudo_rife4_ensembleFalse_fastTrue";
modelPath += "/rife-v4.24_ensembleFalse";
break;
case 67:
modelPath += "/sudo_rife4_ensembleTrue_fastFalse";
modelPath += "/rife-v4.24_ensembleTrue";
break;
case 68:
modelPath += "/sudo_rife4_ensembleFalse_fastTrue";
break;
case 69:
modelPath += "/sudo_rife4_ensembleTrue_fastFalse";
break;
case 70:
modelPath += "/sudo_rife4_ensembleTrue_fastTrue";
break;

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

0 comments on commit 2214832

Please sign in to comment.