Skip to content

Commit

Permalink
rife-v4.23-beta (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
TNTwise authored Oct 31, 2024
1 parent bff73f1 commit 12dbce2
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 20 deletions.
21 changes: 11 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,19 +85,20 @@ By default models are exported with ensemble=False and Fast=True
- 62 = rife-v4.20 (ensemble=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)
- 68 = rife-v4.25 (ensemble=False)
- 69 = rife-v4.25-lite (ensemble=False)
- 70 = rife-v4.25-heavy (ensemble=False)
- 71 = rife-v4.26 (ensemble=False)
- 65 = rife-v4.22-lite (ensemble=False)
- 66 = rife-v4.23-beta (ensemble=False)
- 67 = rife-v4.24 (ensemble=False)
- 68 = rife-v4.24 (ensemble=True)
- 69 = rife-v4.25 (ensemble=False)
- 70 = rife-v4.25-lite (ensemble=False)
- 71 = rife-v4.25-heavy (ensemble=False)
- 72 = rife-v4.26 (ensemble=False)

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

- 72 = sudo_rife4 (ensemble=False / fast=True)
- 73 = sudo_rife4 (ensemble=True / fast=False)
- 74 = sudo_rife4 (ensemble=True / fast=True)
- 73 = sudo_rife4 (ensemble=False / fast=True)
- 74 = sudo_rife4 (ensemble=True / fast=False)
- 75 = 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
23 changes: 13 additions & 10 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 > 74)
throw "model must be between 0 and 74 (inclusive)";
if (model < 0 || model > 75)
throw "model must be between 0 and 75 (inclusive)";

if (factorNum < 1)
throw "factor_num must be at least 1";
Expand Down Expand Up @@ -485,30 +485,33 @@ static void VS_CC rifeCreate(const VSMap* in, VSMap* out, [[maybe_unused]] void*
modelPath += "/rife-v4.22_lite_ensembleFalse";
break;
case 66:
modelPath += "/rife-v4.24_ensembleFalse";
modelPath += "/rife-v4.23_beta_ensembleFalse";
break;
case 67:
modelPath += "/rife-v4.24_ensembleTrue";
modelPath += "/rife-v4.24_ensembleFalse";
break;
case 68:
modelPath += "/rife-v4.25_ensembleFalse";
modelPath += "/rife-v4.24_ensembleTrue";
break;
case 69:
modelPath += "/rife-v4.25-lite_ensembleFalse";
modelPath += "/rife-v4.25_ensembleFalse";
break;
case 70:
modelPath += "/rife-v4.25_heavy_beta_ensembleFalse";
modelPath += "/rife-v4.25-lite_ensembleFalse";
break;
case 71:
modelPath += "/rife-v4.26_ensembleFalse";
modelPath += "/rife-v4.25_heavy_beta_ensembleFalse";
break;
case 72:
modelPath += "/sudo_rife4_ensembleFalse_fastTrue";
modelPath += "/rife-v4.26_ensembleFalse";
break;
case 73:
modelPath += "/sudo_rife4_ensembleTrue_fastFalse";
modelPath += "/sudo_rife4_ensembleFalse_fastTrue";
break;
case 74:
modelPath += "/sudo_rife4_ensembleTrue_fastFalse";
break;
case 75:
modelPath += "/sudo_rife4_ensembleTrue_fastTrue";
break;

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

0 comments on commit 12dbce2

Please sign in to comment.