r/StableDiffusion • u/Jerg • 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:
Original extension that this fork builds upon:
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.
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.
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/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/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! 👍