dlr5668 wrote:

537.58 is super stable indeed. You can also use https://www.techpowerup.com/download/te … leanstall/ to install it without bloat (GFE and other crap)

SVP, games with FSR3+DLSS2 mod - all works great

I installed 537.58 and tbh it made little obvious difference. But the install tool was useful to completely fix some Nvidia driver issues I knew about but had only partially fixed. I just made another back up of everything. Thank you smile


Blackfyre wrote:

Question, regarding RIFE I assume the 4070, 4070 Super, 4070 Ti Super, etc are all better than the RTX 3090 with regards to RIFE yes?

Not necessarily. I would test 1.14 lite first because the 3080/3090 has a wider memory bus than even the 4070ti/4080 so the 3090ti might work better with Rife 1.14 lite than anything less than a 4090. Hopefully someone can help with other card comparisons.

RAGEdemon wrote:

Gentlemen,

Consistent reports are emerging regarding recent nvidia drivers causing stuttering in apps and games. It is related to the DPC latency.

Current advice is to roll back to 537.58 drivers (dated October 2023).

More info in the COMMENTS in this thread:
https://www.reddit.com/r/nvidia/comment … iscussion/


I believe I have seen these stutters in SVP too. Rolling back to the recommended driver fixed the issue. Best staying on the older driver till a confirmed fix has been integrated...

Looking through that thread, there are conflicting reports as to which Nvidia drivers are causing problems. There are also reports of problems being caused by Windows 11. I downgraded to Windows 10 months ago after having lots of issues.  I switched to Nvidia Studio drivers as they are more stable with less changes and less likely to cause an issue. But I'm not a gamer. I also turned off Windows GPU scheduling on the recommendation of a VR dev.

cemaydnlar wrote:
dawkinscm wrote:
cemaydnlar wrote:

v1.14 v2 is the smoothest version of them all for me somehow...

v1.14 v2 is so smooth that I made sure to back everything up smile

I meant v1.14 lite v2 sorry big_smile i am using 3070. That might be the case i appreciate your answer bud thx.

It's OK. We were both talking about 1.14 lite v2 and it is very smooth smile

cemaydnlar wrote:

v1.14 v2 is the smoothest version of them all for me somehow...

v1.14 v2 is so smooth that I made sure to back everything up smile


cemaydnlar wrote:

It gave a weird error while caching but is somehow working without doing that caching cmd again.2nd i don't see any improvement for gpu usage. İt's the same as v.14. Is it normal?

If the messages come after the "profiling" statement then my understanding is that the warnings are part of the profiling process. As for the performance, that might depend on you GPU memory bandwidth. The Nvidia 3070Ti and above start at 600GB/s memory bandwidth. The 4070Ti has the same memory bandwidth as a 4080 at 700GB/s. But he older 3080 and 3090 series cards might perform better with 4.14 "lite" than the 4080 because of higher memory bandwidth. Below this class of card YMMV.

The new technique used for the "lite" versions is potentially a little more accurate than the normal versions but I suspect that GPUs with low internal memory bandwidth will have issues with v14 "lite". I'm keeping it for now and will see what happens further down the line.

Edit:
The figures from @aloola and @RickyAstle98 show that this is a heavy model. But now everything has kind of bedded in, Rife v1.14 "lite" (v2) is using a little less GPU resources than before, down from 94-100% with Rife v1.14 to between 86-92% with "lite" while "so far" retaining the same quality as before. It's also very smooth. YMMV on GPUs with limited memory bandwidth.

So far v14.4 lite uses more GPU than the non lite version. I thought it was may be because of the changes I made but I reverted back to SVP standard configs and it's the same. Maybe there is an issue they need to fix.

Update:
It uses about the same amount of GPU resources but it works in a different way which makes it more dependant on memory bandwidth than GPU resources.  I've read up a little on the new methodology and it is interesting the result is that the "lite" version may not be as "lite" before.

flowreen91 wrote:

There may be fixes and enhancements in the latest v14 releases which is not in v13. If you're willing to help test, I would try downloading https://github.com/AmusementClub/vs-mlr … 4.test2.7z and unzipping

vstrt.dll

and the folder

vsmlrt-cuda

into

C:\Program Files (x86)\SVP 4\rife

I've updated and I don't see any obvious differences. But I have thought about updating for the latest fixes to TensorRT and Cuda so thanks smile

flowreen91 wrote:

Current default SVP installation has 4.6/4.9 v1 models which means average user never saw this jiggling issue.
In the future when SVP devs will want to add the v2 models they will surely update the default old TensorRT libraries too so your average user will never see this issue.

Until then we should follow @cws guide on how to update our own TensorRT library from https://github.com/AmusementClub/vs-mlrt/releases if we want to play around with latest RIFE models:

cws wrote:

Right, TensorRT 9.x is in "beta" and not officially released. Still, v13 was released when TensorRT 8.5 was the latest version, when there is a new release of TensorRT 8.x (which is 8.6.)

There may be fixes and enhancements in the latest v14 releases which is not in v13. If you're willing to help test, I would try downloading https://github.com/AmusementClub/vs-mlr … 4.test2.7z and unzipping

vstrt.dll

and the folder

vsmlrt-cuda

into

C:\Program Files (x86)\SVP 4\rife

If true then this is not so much a vsmlrt fix as it is a Cuda/TensorRT fix. I think the last time I tried this my Tensor libraries weren't updated but I might use the info above and try again.

259

(9 replies, posted in Using SVP)

Blackfyre wrote:

Both SSimDownscaler and KrigBilateral I get from here and are frequently updated.

https://gist.github.com/igv

Yep. That's where I got the last copy from too. It's configured for Catmull Rom. The ones I saw configured for Mitchell must have been local variations by other users.

260

(9 replies, posted in Using SVP)

Blackfyre wrote:
ontop

glsl-shader="C:\Users\Username\AppData\Roaming\mpv\Shaders\SSimDownscaler.glsl"

FYI While I think SsimDownscaler by default was configured for Mitchell, some configs out there have it configured for Catmull Rom.

cws wrote:

It's true there's no significant performance improvement, but there may be fixes and other minor improvements.

Specifically, when using v13 (with TensorRT 8.5 / CUDA 11.8) with the v2 models, I can see some blurriness and pixels shifting in the bottom right corner if there is some obvious static content there like a logo. If this is something you can reproduce, try using the latest v14 (with TensorRT 9.x / CUDA 12.x)

Thanks. If you see a particular issue that you want fixing then this does make sense. Especially if you are saying that v14 fixes this issue for you. I still do testing of new models, changing code etc but I think SVP is stable and works well now so I would not recommend most people do this. Why fix something when it ain't broken ? smile

flowreen91 wrote:
dawkinscm wrote:

It's a change to the code in base.py. I got this from a previous post by @blackmickey1007 for completely disabling SC.

SVP4\script\base.py

input_m = input_m.misc.SCDetect(threshold= 0.1 or 0.2).

The old line is:
input_m = input_m.misc.SCDetect(threshold=rife_sc)
and changing it manually to 0.1 and 0.2 values translates to:
- selecting "Scene change threshold" from SVP and selecting "10%" or "20%"
- or by going to application settings and search "rife_sc" and set it to 10 or 20 like in following image:
https://gyazo.com/714dd3a8a3159f1ac7f496126d92ee70

dawkinscm i suggest you revert that line change since SVP devs were nice enough to allow us to control it from both mentioned places.
For "completely disabling SC" just set "rife_sc" application setting at 100 to see max smoothness with zero animation stuttering.

Thanks for clarifying.  I just used that the 0.1/0.2 examples from the original post. I've tried 100 and other high values before and Rife is smooth with anything from 15% or 100% on my machine.

But the double image issue I'm talking about you may never see this issue depending on the the type of stuff you watch. I want to fix this while keeping the smooth motion which is pretty much impossible. With a low enough value, the stutters disappear but also causes slow pan stutters. My actual setting is a decimal fraction below 10% and rife_sc only accepts integers. Increasing fps actually fixes the issue but causes slow pan stutters and resource issues.  The only real solution is for the model to get better and I've noticed a couple of small improvements so hopefully that trend will continue.

BTW I didn't want to say it before without more testing but Rife 4.14 uses a little less GPU resources than 4.12/4.13. YMMV.

flowreen91 wrote:
dawkinscm wrote:

Rife 4.14 seems to be better overall for fast movement.

What video you use for fast movement tests?
For slow panning movement i found first seconds of this video very useful:
https://drive.usercontent.google.com/uc … t=download

I use a number of videos highlighting different artefacts. But Alita might be the best because it has different types of fast movement and exposes a couple of minor artefacts. One of which has been fixed by Rife 4.14.

cemaydnlar wrote:

Can you share that setting with me ?

It's a change to the code in base.py. I got this from a previous post by @blackmickey1007 for completely disabling SC.

SVP4\script\base.py

input_m = input_m.misc.SCDetect(threshold= 0.1 or 0.2)

The threshold values are just suggestions. You will need to experiment to see what works for you. You won't find a pefect setting because when you fix double images from fast movement it will break slow panning. When you reset for slow panning you get double images in fast movement. But you can get a compromise which improves fast movement a little without breaking slow panning. I couldn't get even this minor improvement in 4.12/4.13 but 4.14 does seem to be better overall for fast movement so here it was possible.

Rife 4.14 is out. There's fast movement artefact I saw in one movie which is now gone. There are some sc settings I make in the code that work a lot better to reduce a different more problematical fast movement artefact. It's still there, but less so than before.  Rife 4.14 seems to be better overall for fast movement.

265

(9 replies, posted in Using SVP)

Blackfyre wrote:
ontop
vo=gpu-next
fbo-format=rgba16hf

spirv-compiler=auto

dither-depth=auto

scale=ewa_lanczossharp
cscale=ewa_lanczossharp
dscale=ewa_lanczossharp
sigmoid-upscaling=yes

glsl-shader="C:\Users\YourUsernameHere\AppData\Roaming\mpv\Shaders\KrigBilateral.glsl"
glsl-shader="C:\Users\YourUsernameHere\AppData\Roaming\mpv\Shaders\FSRCNNX_x2_16-0-4-1.glsl"
glsl-shader="C:\Users\YourUsernameHere\AppData\Roaming\mpv\Shaders\SSimDownscaler.glsl"

I'm not going to comment on config for OLED. It's best you experiment for yourself. Here are some points to think about.
dither-depth=auto and spirv-compiler=auto is the default so not necessary
fbo-format is disabled in gpu-next so is not needed and won't work anyway.

KrigBilateral isn't really necessary and although I've never seen it myself it can apparently cause mistakes.
Is FSRCNNX_x2_16-0-4-1.glsl that much better than FSRCNNX_x2_8-0-4-1.glsl considering the extra processing power needed?
Do you need to use both FSRCNNX_x2_16-0-4-1.glsl and SSimDownscaler.glsl? That's a lot of processing and sharpening.
SSimDownscaler.glsl is configured by default for Mitchell but you are using ewa_lanczossharp. So that is not optimal.

You are sharpening in upscale, shader and downscale. Although FSRCNNX might not be doing anything because by default it only works when a x2 or greater upscale is needed. This might be why you can get away with running FSRCNNX_x2_16 and SSimDownscaler which are very GPU heavy.
Some shaders overwrite others so it's best to use append when you want multiple shaders to work at the same time.

Hope this helps a little.

cws wrote:

Right, TensorRT 9.x is in "beta" and not officially released. Still, v13 was released when TensorRT 8.5 was the latest version, when there is a new release of TensorRT 8.x (which is 8.6.)

There may be fixes and enhancements in the latest v14 releases which is not in v13. If you're willing to help test, I would try downloading https://github.com/AmusementClub/vs-mlr … 4.test2.7z and unzipping

vstrt.dll

and the folder

vsmlrt-cuda

into

C:\Program Files (x86)\SVP 4\rife

According to the info about the code, v14 is no improvement over v13. Having personally tested the v14 versions I would say that if anything they might use a little more GPU resource. Maybe that's because they are designed for AI GPUs.

flowreen91 wrote:
dawkinscm wrote:

Does changing the code in the way I mentioned do this?

https://gyazo.com/c71046909c565742a9c8b94a6929f11f
For values integers higher than 2 it will play the video track at 2x 4x 8x the speed while sound track would still be played at 1x.
For values lower than 2 it will crash with error 'fractional multi requires plugin akarin (https://github.com/AkarinVS/vapoursynth-plugin/releases) version v0.96g or later.'
Try to play the video with MPC-HC if you want to see big error logs on your screen when you test with different values.

dawkinscm wrote:

after a few seconds the screen goes blank

that's what happens when you run out of video track big_smile

follow aloola's suggestion and just select your FPS from the top right

Now that you have said it is obvious. I already knew what multi does in theory. But what I didn't realise was that in practice it directly relates to the fps which again is now obvious. Thanks smile

cws wrote:

Does it still happen when using the latest version from https://github.com/AmusementClub/vs-mlrt/releases? SVP might be using the last non-test release (v13) instead of the latest testing release (v14).

As stated in the docs, the v14 test releases are not designed for our GPUs even though they will work. SVP is not and should not be using them

aloola wrote:

why do you need to change it there when you can easily do it here?

Thanks but that's not what I'm trying to do. Or at least I don't think that's what I'm trying to do. Does changing the code in the way I mentioned do this?

From looking into the rest of the code I decided to set multi to an odd number in the Rife return function and it no longer crashes. But it no longer removes the double images either. Any help @Chainik or other dev would be appreciated smile

Hi
I want to change the value of "multi" which I think increases the number of frames? In helpers I can replace multi with an integer the Rife return function which works. But then after a few seconds the screen goes blank then it looks like Rife stops working. I have changed it in vsmlrt but it has no effect. I assume that is because the variable is being set somewhere else. 
I see rife_num and rife_den set in the script generated in APPDATA  which is used by multi elsewhere.

Xenocyde wrote:

Deleted, redownlaoded, still doesn't work. Do I need some new version of Python or TRT maybe?

Nope. As long as you have downloaded the latest version of SVP, it comes with everything you need. I have manually modified some things over time and still do occasionally. But after the recent updates, I only do it now for experimentation because it's really not necessary any more. If I was in your position I would uninstall everything and start again, especially the Rife model folders. Once SVP is set up it just works for everything up to Rife v4.13 v2.

Xenocyde wrote:

Decided to test 4.13 and 4.13 v2.

4.13 works well, Win resource monitor shows ~50% GPU utilization regardless of the video resolution. Also, the 4.9 model included with SPV by default now has almost the same performance, mostly sitting at ~50% regardless of resolution.

I'm using my GPU heavily and can easily hit 100% usage with 4.12.4.13 but max out at 80% with 4.9. So maybe you don't see it under lighter loads?


Xenocyde wrote:

Decided to test 4.13 and 4.13 v2.
4.13 v2 doesn't seem to be working, however. Every time I try to play a video, it compiles the cache file and after around 50 seconds it stops and the video plays without RIFE. Can't really see if it gives an error cuz the window closes fast.

Make sure you have a 4.13 onnx file in the "v2" folder. If you do then delete it and any files created by it, download the v2 onnx file again and put the new onnx file into the "v2" folder.

aloola wrote:

currently, the best quality that almost gets rid of the soap effect is models 4.12 and 4.13.
my recommended models are: 4.6, 4.9 and 4.13

The Soap Opera Effect is exactly what you are trying to get. If you "get rid of the soap effect" then it's not working.

flowreen91 wrote:

My suggestion would be to delete cache folder from here:
"C:\Users\username\AppData\Roaming\SVP4\cache"
every time you update rife models and let them generate fresh.

This is not necessary. In the SVP rife folder, just replace the onnx file for the model you want updated then delete the generated model and engine files. This will trigger regeneration. But if you are using model names that are different to the actual model being used then I don't know since I stopped doing this some time ago.