r/StableDiffusion • • 3d ago

Workflow Included SHARP VR Video v0.3.0 - More speedups! (Faster 4K conversion, dual-thread rendering, TensorRT support)

Another update to my ComfyUI fork for converting regular 2D videos into stereoscopic 3D videos using Apple's SHARP Gaussian splatting model.

I've been working on removing some pretty significant performance bottlenecks, particularly at higher resolutions.

The main improvements:

  • Speed boost 1: Dual rendering workers running concurrently, now automatic.
  • Speed boost 2: Optional TensorRT for RTX (ONNX FP16) acceleration, with PyTorch fallback. I manually examined outputs and quality difference is inperceptable.
  • Speed boost 3: Direct raw pixel transfers instead of intermediate PNG encoding/decoding at 4K.
  • QoL: Native output resolution selection, independent of source resolution. (this enables upscale or downscale the output relative to input footage, since the middlestep is a full 2D->3D splat transform anyway).

Some benchmark results on my RTX 5080, using 720p source footage and comparing against the v0.2.x builds:

  • 1080p output per eye: 2.50 → 3.82 fps
  • 1440p output per eye: 1.99 → 3.62 fps
  • 4K output per eye: 0.66 → 3.19 fps

I'm also getting around 1.5–1.8 fps with native 4K footage converted to 7680×2160 SBS.

TensorRT backend is optional, as additional speed boost for RTX card users, and the separate setup kit is available on GitHub.

GitHub (or search Sharp VR video in comfyui custom nodes):

https://github.com/jerg-git/ComfyUI-SHARP-VR-Video

Workflow:

https://github.com/jerg-git/ComfyUI-SHARP-VR-Video/blob/main/workflow/sharp-vr-video-batch-audio-sample.json

Original extension that this fork builds upon:

https://github.com/Well-Made/ComfyUI-SHARP-Gaussian-Stereo

21 Upvotes

13 comments sorted by

4

u/thanatica 3d ago

This is steorescopic video, not VR.

VR typically requires two panoramic videos, since as we all know, VR allows one to move around the scene.

1

u/STOPBLOCKINGVPNS1234 3d ago

do you know or does anyone know of a way to make VR videos in minimax h3 yet? I'm thinking the best way without a specific lora is to start with a single eyes VR180 image then use OPs method.

1

u/Jerg 3d ago

That would be super interesting!

2

u/Jerg 3d ago

PS: The ~30sec thread video ^ was a 720p 30fps video input with 1080p output, took about 5~6 minutes with v0.3.0 and all the optional speedups on my 5080.

1

u/MeysterAust 3d ago

did you notice how much vram it was pulling during that run?

1

u/Jerg 3d ago

4-5 GBs maybe?

2

u/Aromatic-Somewhere29 3d ago

I still can’t believe how cool this turned out. Just a few days ago, when I was getting ready to publish my stereo viewer node, I thought it would just be a neat little gimmick to bring some novelty to viewing images. But you took that idea and pushed it to the next level - to the point where looking at static 3D scenes now feels boring and lifeless to me compared to watching stereo video.

What blows my mind the most is that the model weights for generating a 3D scene from a single image have been open-source for quite a while now, yet I’d never come across any implementation adapting them for stereo viewing - and honestly, it hadn't even occurred to me either, even though the idea was sitting right there in plain sight. It only hit me about 10 days ago as a random "hmm, what if..." thought.

Your project genuinely opens up a whole new way to experience video. Luckily, Civitai is packed with tons of diverse, short-form videos for every taste that look absolutely insane in 3D!

1

u/Jerg 3d ago

For sure! I'm trying to fix this one last niggling issue of some perspective jitter right now (since the sharp model is generating frame by frame and then this captures snapshots in slight offset from center perspective so jitter is introduced between frames) and then this should be a great general purpose 2d to stereo tool for just about any video - generated clips, shows, YouTube, maybe even whole movies.

1

u/dilinjabass 3d ago

Tried this out on a video that was 1536x1536, 17 seconds long. The resulting file was 247mb for a 17s clip. Pretty beefy file, but it looked pretty decent in the VR headset.

2

u/Jerg 3d ago

You can and should use a reencoding app like Handbrake to reduce the file size while retaining the resolution and as much quality as possible! I intentionally set output settings in the sample workflow to be near lossless just to allow this step. It's a quick additional manual step but def worth learning as part of video processing

2

u/dilinjabass 3d ago

Ok thanks for the tip. And great work on this, it worked smoothly for me.

2

u/skyrimer3d 3d ago edited 3d ago

thank you so much for this, that some big performance boost already.

EDIT: Just watched the video, the 3d is spectacular, amazing depth with 0 halos, very impressive.

2

u/MrLegz 3d ago

Nice! 👍