dlr5668 wrote:
dawkinscm wrote:

I've been trying for a while now to get RIFE running smoothly with my 3080 with MPC-BE. I've given up on that so instead I tried using MPV and there was an instant improvement. It still needed a bit of work and I had to learn about MPV config files so that I could configure it to match the scaling used in my MadVR config. Now it looks great and runs very smoothly.

Nvidia should release soon https://www.youtube.com/watch?v=XA-tQpQqD7U Perfect match for Rife

since we're using vs-mlrt maybe we should include RealESRGANv2 to upscale 480p~720p? or maybe for transcoding.
https://github.com/AmusementClub/vs-mlr … alESRGANv2

Based on this post and my benchmark, hardware-accelerated GPU scheduling ON will reduce RIFE performance by ~30%.

https://github.com/AmusementClub/vs-mlr … nt-4957580

78

(6 replies, posted in Using SVP)

Madvr's bug. running mpc+madvr only, mpc still uses 50% GPU on pause for no reason.
mpc+mpc render+SVP on pause: 0% GPU usage

I tested with Scene Change threshold 6%: very stuttering on that screen.
changing Scene Change threshold to 15%: look perfectly fine.
you should always use 15% imo, below that numbers gain me almost no benefit, just make scene changing stuttering.

Piovasia wrote:

Umm, If you had installed old method, you can load all Ncnn model with TensorRt.

Chainik wrote:

    That one - https://github.com/AmusementClub/vs-mlrt - is MUUUUCH better
    -------------
    Post updates:
    09/01: updated both libs and scripts, should improve 4K performance on 4080+
    -------------
    Let's try this:

    0. nothing to do with Python big_smile
    1. download --> https://www.svp-team.com/files/temp/rife-trt-0701.7z <--, unpack into SVP 4\rife (you should already have this folder), so vstrt.dll must be in the root, i.e. SVP 4\rife\vstrt.dll
    2. replace generate.js, base.py in SVP 4\script; restart SVP to be sure
    3. menu -> Applications settings -> Additional options -> All settings, go to 'User defined options'
    Title: TensortRT; Script name: rife_trt; Other values by default - "FRC profile", "ON or OFF"
    Click 'Add option'
    Go to the RIFE video profile, see the added TensortRT on/off swtich.
    Make a copy of the RIFE video profile, one with TensorRT ON and another with OFF.

    Pros:
    - no Pytorch!
    - works in a real-time
    - even faster (?) than vsrife [could be just because of some TensorRT options]
    Cons:
    - even slower (?) first-time initialization [could be just because of some TensorRT options]
    - a nasty command-line window will pop-up for every new video resolution

    It's OK for the command-line window to stay for 4-5 mins. Don't close it! Wait!


You followed this guide, right?

OK, I got what you want now. RIFE TRT in that guide always runs model 4.6 from the start. Changing models in that guide does nothing.


TRT model version use: rife_v4.x.onnx *.onnx file
ncnn model version use: flownet.bin, flownet.param file


the models from https://github.com/styler00dollar/Vapou … cnn-Vulkan, only contain flownet.bin, flownet.param file. It means it only runs with RIFE ncnn, not RIFE TRT.
the title also said VapourSynth-RIFE-ncnn-Vulkan.

Piovasia wrote:
aloola wrote:

just uninstall SVP, and install SVP again.


That's guide is outdated, you don't need it.

more infos here:
https://www.svp-team.com/wiki/RIFE_AI_interpolation

I know that's guide is outdated.
But for me, I think it's much better than version update in SVP now
I can choose to load model from: https://github.com/styler00dollar/Vapou … cnn-Vulkan, the assemble version pretty smooth and not only limited by version 4.4 and 4.6 now in SVP.
After update in SVP, I regret, I can't roll back.

it's still there, RIFE NCNN/Vulkan (old version).

https://media.discordapp.net/attachments/290709370600423424/1067484032876687380/image.png

TRT model and NCNN model are different. (iirc)

Piovasia wrote:

Could someone share me the generate.js and base.py file, please ?  (╯•﹏•╰)

just uninstall SVP, and install SVP again.


That's guide is outdated, you don't need it.

more infos here:
https://www.svp-team.com/wiki/RIFE_AI_interpolation

83

(6 replies, posted in Using SVP)

this is MPV's bug not from SVP's side.

84

(6 replies, posted in Using SVP)

this is Freesync, G-sync "bug" or not compatible with MPV. Try to turn g-sync/freesync off first.

I need someone to confirm with me.

here is Hardware-accelerated GPU scheduling ON
https://cdn.discordapp.com/attachments/290709370600423424/1066759015536799855/image.png

Hardware-accelerated GPU scheduling OFF, FPS increase a lot.
https://cdn.discordapp.com/attachments/290709370600423424/1066757184819576882/image.png


Windows 11 has Hardware-accelerated GPU turn on by default, you can turn it off by go to System > display > graphics > default graphics settings > turn it off then restart PC.

Chainik wrote:

> Any way to run this on 4GB of Vram?

dunno, but you can turn on "performance boost" to save the memory on lower resolutions (<=1080p)

hello Chainik, would be nice if you add more options for this
https://media.discordapp.net/attachments/290709370600423424/1064811760516874290/image.png

I want options like resizing to 1440p, 1080p and user custom.
So I can downscale 4k video to 1440p and watch it with RIFE.

720p is too low res for me.

Chainik wrote:

aloola
> I have performance boost: disabled, but the CMD command still pop up when I open 480p, 720p video. Is this a bug?

no idea. unless you edited something, "opt" must be fixed value equal to "max", regardless of the video size
like this: rife_v4.6.onnx.min64x64_opt2560x1440_max2560x1440_fp16_trt-8502_cudnn_I-fp16_O-fp16_NVIDIA-GeForce-RTX-2060_3dcbe72f

could you show the full script generated by SVP in your case?

ok, my bad, I uninstalled svp and reinstalled it again, and it works fine now.

kellykline wrote:
DragonicPrime wrote:
Chainik wrote:

DV just can't show "washed out" colors. It can do either good or totally wrong colors.
The _only_ option for now for the proper DV colors with SVP is SVP's provided mpv build.
And I personally can't see any color difference between RIFE and non-RIFE interpolation here.

If colors are washed out then it's HDR10, not DV.
Not sure what happens for the "hybrid" releases when there're both HDR10 and DV in the same video file hmm

Ya I think wrong colours is a better way to put it. I tried an HDR10 video and it worked fine though. But with DV, black scenes appear grey for example. When using any other SVP profile that's not RIFE, it works like intended

This new TRT feature doesn't work. RTX 2080 Ti, playing HDR10 4K video. console window pops up and just freezes with [W] [TRT] Using kFASTER_DYNAMIC_SHAPES_0805 preview feature. What gives?

the cmd windows might stay for 10 minutes, just wait. Also 2080ti is not strong enough for 4k, you need at least 4070/4080 for 4k x2
https://www.svp-team.com/wiki/RIFE_AI_interpolation

Chainik wrote:

SVP updated, added TensorRT (no need for doing anything manually), fixed (??) possible audio desync after RIFE transcoding (both Vulkan and TRT versions)

Either select the checkbox at install time, or install an additional package called "TensorRT" via SVP menu -> Utilities -> Additional programs and features.

----
It uses "dynamic shapes" by default, i.e. only ONE optimization pass for all resolutions below 2560*1440. And if/when you open a 4K video then it'll do another pass for resolutions from 1440p to 4K.
BUT! this can be a little bit slower than optimization for a specific resolution, like 5% in my case. This is why there's a "performance boost" profile option - it forces its own opt. pass for each resolution.

another finding: model 4.6 needs more than 8G of device memory for 4K res, so if you're on a 8G card and want 4K then choose model 4.4.

----
Also installation scripts fixed so the Vapoursynth Filter must be registered automatically.


I have performance boost: disabled, but the CMD command still pop up when I open 480p, 720p video. Is this a bug? it's not different from Performance boost: on.

https://media.discordapp.net/attachments/290709370600423424/1064375606478905417/image.png?width=1080&amp;height=60
https://media.discordapp.net/attachments/290709370600423424/1064375832761606174/image.png?width=1080&amp;height=79

Drakko01 wrote:

Now that I was able to enable vapoursynth whit MPC-HC, does it make any sense to use other profiles? I'm trying and I don't know if I have a serious case of placebo effect or it looks better, adding to the question does the TensorTRT option do something in this context? . Using another profile that is not RIFE.
Cons and Pros to used instead of AviSynth Filter

your profile is wrong
you should follow the guide
https://www.svp-team.com/forum/viewtopi … 483#p81483

https://cdn.discordapp.com/attachments/290709370600423424/1062949400957165598/image.png
should be look like this.

have you set vapour filter prefer yet?
https://cdn.discordapp.com/attachments/290709370600423424/1062874317597184040/image.png

also right click on MPC is there any vapoursynth filter running?
https://cdn.discordapp.com/attachments/290709370600423424/1062874544240594974/image.png

If you have any vapoursynth installed, you should uninstall it first.

1. install SVP
2. set environment and restart the PC
https://cdn.discordapp.com/attachments/290709370600423424/1062837335210860665/image.png

3. go to C:\Program Files (x86)\SVP 4\avsf and right click on register.bat and run as admin (to register vapoursynth filter)
4. add vapoursynth to MPC, if vapoursynth filter does not pop up the setting windows it's means something wrong with your vapoursynth setup.
https://cdn.discordapp.com/attachments/290709370600423424/1062837737130049587/image.png

@Chainik

BTW it can generate a "multi-resolution" cache, for example one cache for "1920*1080 and below" but then the speed drops by ~30% hmm

look like they just fixed the bug https://github.com/AmusementClub/vs-mlrt/issues/20

MPC-HC shows:
23:23:24.207 [E]: Playback [c85b13c2]: AVS - RIFE:

you're using Avisynth Filter instead of Vapoursynth Filter.


This is puzzling. Apparently it is the mpv that is more efficient....

producing the same FPS with a lower GPU load is more efficient, right? big_smile

UHD wrote:
aloola wrote:

My MPC-MC+MPC Video Render + Vapoursynth Filter works perfectly fine with RIFE. Better results than MPV.

Better results???

well at least for me
1080p@24 x4
MPC+MPC render: ~75% GPU load.
SVP's MPV default: ~85%

maybe different between users' setups.

Drakko01 wrote:
Chainik wrote:

> when I try to do this, access violation error appears and the player close

SVP menu -> Utilities -> Set environment variables for Vapoursynth

No change , same error , any ideas

thanks in advance

must be on your side, My MPC-MC+MPC Video Render + Vapoursynth Filter works perfectly fine with RIFE. Better results than MPV.

make sure there is no other vapoursynth path in your system PATH.

here is mine
https://media.discordapp.net/attachments/290709370600423424/1062486253313990697/image.png

Xenocyde wrote:

I did some more testing, 10% scene change threshold seems a bit too much so I reduced it to 6%, but with this setting I'm seeing some stuttering on fast movement and sometimes on scenes with normal movement. Most of the times it disappears when I replay the scene, but sometimes the stutter persists even after replaying a few times.

15% is the best setting for me, below 15% is not good when the scene changes.
I think the lower value means less resource usage but reduce smoothness?

so to do real-time 4k you need really good RAM bandwidth first, then GPU and CPU last, since my CPU usage is very low.

grobalt wrote:

What alola wrote the last days has just be to wrong .. impossible the results for his 3070ti with the old script.


I dunno, but I also got ~16% performance gain for 4k video with the new update.

https://media.discordapp.net/attachments/290709370600423424/1062122814833950810/image.png?width=509&amp;height=545

holy!! I CAN DO 1080p x4 IN REAL-TIME with 3070ti!!!!!!!!!!

https://media.discordapp.net/attachments/290709370600423424/1062115251786612776/image.png?width=697&amp;height=545



btw:also maybe it a bug? every time black bar detection was on, the TRT CMD pop out again.