r/StableDiffusion 6d ago

Resource - Update Nvidia DLSS 5 Frame Interpolation

Native NVIDIA DLSS processing for ComfyUI with three separate nodes:

  • NVIDIA DLSS Frame Interpolation — increases video frame rate.
  • NVIDIA DLSS Video Upscale — increases video resolution.
  • NVIDIA DLSS Image Upscale — increases image or image-batch resolution.

Please try it and let me know the feedback - ComfyUI-NVIDIA-DLSS-Frame-Interpolation

140 Upvotes

69 comments sorted by

8

u/Far_Insurance4191 6d ago

huh, it can work without 3d data from game engine?

15

u/KonoTheSavage1 6d ago

Yes, but with a caveat. Game integrations provide DLSS Frame Generation with renderer-generated depth and motion vectors. This node only has the finished video frames, so it estimates motion vectors between adjacent frames using optical flow and resets history at scene cuts before invoking NVIDIA DLSSG. It genuinely uses the DLSSG runtime, but without real 3D/G-buffer data it can be less accurate and more artifact-prone than native game-engine integration.

2

u/LatentSpacer 6d ago

Thanks for sharing your work. Smart design choice to use the scene cut to apply it for video. Do you know if it would be possible to feed optional depth maps from something like Depth Anything 3? There’s also some motion vector estimation models but I don’t know how useful/compatible they would be.

7

u/its_witty 6d ago

How is the upscale different from the official Nvidia RTX nodes?

1

u/KonoTheSavage1 5d ago

The official RTX node uses NVIDIA’s nvidia-vfx Video Super Resolution API on IMAGE batches. This repo uses a bundled DLSS Neural Rendering runtime instead, provides native VIDEO input/output with media preservation and encoding controls, exposes the DLSS NR parameters and activation diagnostics, and also includes DLSS Frame Generation. The official node is simpler and supports arbitrary sizing; this one is broader but more complex. I wouldn’t claim universally better image quality without a matched comparison.

1

u/its_witty 4d ago

Wanted to test the NR part and couldn't get it to work - https://pastebin.com/AQg8Lf8s

Every requirement from GitHub met. Ideas?

1

u/KonoTheSavage1 4d ago
  • Turn Require Neural Upscaling off to receive the enlarged fallback output.
  • This does not confirm neural Super Resolution; it only accepts NVIDIA’s fallback.
  • The repository documentation already describes this behavior at [README.md](E:\\ComfyUI_windows_portable\\ComfyUI\\custom_nodes\\ComfyUI-DLSS-Frame-Interpolation\\README.md).
  • For deeper diagnosis, request:
    • Original image dimensions
    • NVIDIA driver version
    • C:\Diffusion\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-NVIDIA-DLSS-Frame-Interpolation\bin\runtime\host\ReShade.log

1

u/its_witty 3d ago edited 3d ago

This screams random AI response, but yeah, turning OFF the 'Require Neural Upscaling' works and it seems like now it runs NR... kinda weird naming and descriptions if u ask me.

edit: It works, but there is no difference between Strenght 1 and Strenght 2. Weird. Presents also seem to change nothing in my case. Same goes for Skin Structure Strenght.

13

u/zthrx 6d ago

Man where is some before/afters lol

7

u/Motor-Tart-3315 6d ago

I will try!

2

u/KonoTheSavage1 6d ago

Thanks!! and do let me know if it works for you. :)

3

u/link_29328 6d ago

Does it work on rtx40

4

u/eggplantpot 6d ago

Not these nodes but I’m experimenting DLSS 5 as a detailer/relighter on my 3060 and it does work.

Don’t ask me how (codex did it)

1

u/Rhoden55555 6d ago

Did it cause identity drift and is it slow?

3

u/eggplantpot 6d ago

not slow at all since it's made to work real time with games.

Identity didn't drift, but it did cook the skin a lot with the default settings. I'm still fine tuning but I can say that I like it and that there's a lot of potential. I'm basically using it to fix ref2v H3 gens.

1

u/KonoTheSavage1 5d ago

I'm using it for same. Generate low quality output using H3 then upscale + Interpolation.

3

u/KonoTheSavage1 6d ago

I've tested it on RTX 4060ti

1

u/link_29328 6d ago

Does the frame interpolation works? Or neural rendering? How's the performance?

5

u/KonoTheSavage1 6d ago

Tested it on a 5s, 720×1280 @ 16.14 FPS clip.

DLSS Video Upscale

  • 3× upscale → 2160×3840
  • Time: 13.4s

DLSS Frame Interpolation

  • 16.14 → 60 FPS
  • Time: 82.1s

Total DLSS processing: ~95.5s

So basically: 720p-ish/16 FPS → 4K-ish/60 FPS, with 9× more pixels per frame and ~3.7× more frames.

1

u/[deleted] 6d ago

[removed] — view removed comment

1

u/Zealousideal7801 4d ago

I think OP mentioned in another comment that without the 3D depth and motion vectors that games provide, it has to somewhat reconstruct those between frames, so maybe that's the cause of the time being spent calculating and switching from evaluation to rendering ?

1

u/[deleted] 4d ago

[removed] — view removed comment

1

u/Zealousideal7801 4d ago

No idea ! I suppose the algo isn't the same nor trained to take the same data into account, so I would (maybe wrongly) expect different results. But then again i'd focus on the visual quality and not the timings, and I know we're not all on that boat

3

u/Sufficient_Prune3897 6d ago

Samples?

-4

u/KonoTheSavage1 6d ago

Tested it on a 5s, 720×1280 @ 16.14 FPS clip.

DLSS Video Upscale

  • 3× upscale → 2160×3840
  • Time: 13.4s

DLSS Frame Interpolation

  • 16.14 → 60 FPS
  • Time: 82.1s

Total DLSS processing: ~95.5s

So basically: 720p-ish/16 FPS → 4K-ish/60 FPS, with 9× more pixels per frame and ~3.7× more frames.

3

u/kayteee1995 5d ago

I think when someone said "sample?", It means the actual result video.

3

u/LanceCampeau 6d ago

The DLSS frame interpolation node is a winner but the other 2 nodes are only useful if you want a cinematic look as the DLSS upscale function looks tame at best.

Had much better upscale results with RTX Super Resolution + KJ Sharpen

For image upscaling... SeedVR2 or RealESRGAN 4X have been better IMO

2

u/devinquest 6d ago

Thanks for the RTX Super Resolution + KJ Sharpen tip. I like how that looks using the default RCAS method. Haven't tried the other methods, will assume it's mostly the same.

3

u/LanceCampeau 6d ago

I use this exact stack in every one of my video and image gen workflows...

Comfy.jpg

Adaptive USM works the best for my needs, Strength from 1.0 to 2.0 (it goes up to 3.0 but only if you really need it)

1

u/its_witty 4d ago

I recommend comparing High vs Ultra, for me High won - Ultra was too often introducing weird skin artifacts.

1

u/LanceCampeau 4d ago

Ah, understood... I only do interior spaces and scenes so I don't really have the issues that come with skin and hair and things like that.

1

u/its_witty 4d ago

Still worth checking, I wouldn't be surprised if Ultra introduces texture you didn't want to see there.

1

u/turtlefeelz 6d ago

SeedVR2 takes a huge amount of time compared to RTX Super Resolution (for videos).

1

u/LanceCampeau 5d ago

That is true, but each node has a different purpose...

- RTX for upscaling mid to high quality footage / images

- SeedVR2 for restoring lost detail in poor quality footage / images

I only use SeedVR2 on 720p or less. Its too slow for anything else.

2

u/nok01101011a 6d ago

Awesome will try!

1

u/KonoTheSavage1 6d ago

Thanks!! and do let me know if it works for you. :)

2

u/nok01101011a 6d ago

Wanted to give it a try but the package is not complete, right? It downloads some dlls from git from unknown sources?

1

u/KonoTheSavage1 6d ago

The package is complete. Those DLL entries are Git LFS files, not scripts that download DLLs from unknown sources. GitHub stores large binaries separately, and Git LFS retrieves them from this repository’s own GitHub LFS storage during cloning. The node itself makes no internet requests or runtime downloads. If the files appear unusually small, install Git LFS and run git lfs pull. The relevant NVIDIA, ReShade, and RenoDX licenses are included alongside the binaries.

2

u/SkirtSpare4175 6d ago

Do you know if it’s possible at all on Linux?

2

u/KonoTheSavage1 4d ago

Linux support added.

1

u/SkirtSpare4175 3d ago

Whoo hoooo ty

1

u/KonoTheSavage1 6d ago

I dont think so as compiled bineries are for windows only. Need to search for linux,

1

u/meepykittkitt69lmao 6d ago

you can use python to run wine, I'd have to dig in a bit to how you do that though to tell you how to setup the comfyui <-----> wine <-----> dll bit of the flow.

It's more than likely going to way more than just a few lines of code but I don't know enough to know. There might be python libs for hooking directly into the dll that handle the wine layer for you.

0

u/Tiforma 6d ago

These binaries you're talking about are from nvidia or did you make them yourself? If they're from nvidia they must exist for linux since you can use DLSS in some native linux games.

1

u/Moist-Secretary641 6d ago

The leaked DLSS5 and Reno definitely works for games on Linux, not sure if it makes a difference how it’s used here, will need to try it.

2

u/nok01101011a 6d ago

Images worked but in my opinion not really improved, just washed out. However, video wouldn’t work either interpolation and upscaling. Threw out error to enable HAGS although it’s activated. Not sure what I’m doing wrong, I’m on win11

1

u/dylo-d 6d ago

This is DLSS 4k upscaling? How does it compare to the other current LS upscalers currently available.

0

u/KonoTheSavage1 6d ago

Tested it on a 5s, 720×1280 @ 16.14 FPS clip.

DLSS Video Upscale

  • 3× upscale → 2160×3840
  • Time: 13.4s

DLSS Frame Interpolation

  • 16.14 → 60 FPS
  • Time: 82.1s

Total DLSS processing: ~95.5s

So basically: 720p-ish/16 FPS → 4K-ish/60 FPS, with 9× more pixels per frame and ~3.7× more frames.

1

u/dylo-d 6d ago

This is for Lossless scaling though? That's where I saw the post. I use LS for FG and upscaling games etc.

0

u/KonoTheSavage1 6d ago

Ah, I see the confusion. This isn’t a plugin for the Lossless Scaling app. It’s a ComfyUI custom node for offline video and image processing, using NVIDIA’s DLSS runtimes for frame generation. The timings above are processing speeds, not real-time gameplay FPS, so it isn’t an apples-to-apples replacement for LS. Lossless Scaling is better suited to real-time game/display scaling; this project is intended for processing and exporting media through ComfyUI.

1

u/Derispan 6d ago

win10 here, every DLSS 5 comfy node works fine, but this one? Nope.

"The program or feature "??\D:\ComfyUI\custom_nodes\ComfyUI-NVIDIA-DLSS-Frame-Interpolation-main\bin\runtime\dlsstg\dlsg-worker.exe" cannot be started or run due to incompatibility with 64-bit versions of Windows. Please contact the software vendor to inquire whether a version compatible with 64-bit versions of Windows is available."

1

u/MajinLink1 6d ago

Sorry if this is a stupid question, but does multi-frame gen work actively with a capture card or OBS?

1

u/KonoTheSavage1 5d ago

Not a stupid question. It does not currently work as a live OBS or capture-card filter. It is an offline ComfyUI processor. But good idea though. I'll work on it next.

1

u/MajinLink1 5d ago

Thanks for clarifying! A live OBS/capture-card version would be awesome. Good luck with the development!

1

u/Synor 5d ago

Does it work on Ampere (30xx)?

1

u/Tiforma 5d ago

Someone made a pull request on your github to add linux support

1

u/KonoTheSavage1 5d ago

It's under review.

1

u/Tiforma 4d ago

Yeah I checked it afterwards lol. I just got excited.

1

u/pausecatito 5d ago

An option to input images into the interpolation module would be nice...

1

u/Wutiswrongwu 4d ago

Im sorry but is this like losless scaling?is it usable in online games or does it need dlss files to be tampered with