stereo image generation #45
Replies: 10 comments 8 replies
-
That's a great find ! I will test it as soon as I find some time. If that's all that's required, and the results are good, I would certainly want to include it in the script. |
Beta Was this translation helpful? Give feedback.
-
Great! In my experience, switching the eye order in the app used to view the side-by-side image tends to make it 'pop' a lot more but also has some quite obvious layering going on. I'll keep looking around for mono to stereo workflows in case there's something better |
Beta Was this translation helpful? Give feedback.
-
Thanks for contributing, I have to say this community is awesome. Keep it coming =) I've only had a little time to play with it so far, with mixed results. It all feels a bit massaged.
isn't inspiring confidence either .. I need to play with it further and investigate deeper .. edit: I'm converting this to a discussion, we can share our findings and results there. |
Beta Was this translation helpful? Give feedback.
-
I was testing with the anagllyph images only so far (cause i'm lazy), and I could not get it to pop out. The overlap function was assuming BGR, and now after swapping the red and blue channel in that function the anaglyph seems to be correct and is popping out. Now the results are actually pretty impressive, I'm going to do a bit more testing .. |
Beta Was this translation helpful? Give feedback.
-
Also swapping left and right images in the combine function now makes it really pop out. |
Beta Was this translation helpful? Give feedback.
-
I've included it in v0.2.9, I credited you in the readme. thanks again for the tip, the results are quite amazing ! You can now use boost to get high resolution depth maps and generate stereo images. |
Beta Was this translation helpful? Give feedback.
-
Original image from this discussion : #34 using boost and res101. Very impressive results. |
Beta Was this translation helpful? Give feedback.
-
This is very cool! Looking forward to testing this out. One thing I thought I'd mention, the first images above in the OP of the man side-by-side seem to be reversed. They should be swapped. Our left eye would see less of his left ear (on the right side of his head in the image). As it is, we see more of it in the left image. Etc. So this makes the image reversed in its 3D depth. The other images in the thread look correct. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm recently also working on the same project. Could you give me some ideas about how long an inference of the depth-generation and reprojecting to new eyes take, on which desktop GPU? |
Beta Was this translation helpful? Give feedback.
-
@yingtian991221 The stereo image generation code runs on CPU, the depthmap generation can run on both. Currently it will compute the depthmap first and then compute the stereo image on CPU. It could be more streamlines to be faster. I've processed a 720p video, frame-by-frame (batch mode) with the zoedepth model to generate stereo image pairs (eg. 3D video), and it takes around a second per frame on a 3rd gen RTX, and an older intel i5. |
Beta Was this translation helpful? Give feedback.
-
Hi there, thanks for your work on this. I was looking to create stereo images from the image + depth map and found this:
https://github.com/m5823779/stereo-image-generation
It's a bit out of date but I managed to get it working. I found the res101 depthmap output produces better results than the existing midas integration in that repo. I extracted the neccessary bits from
stereo_generation_image.py
and modified it to read the depth map output produced from your extension.I've tested out the stereo image in an Oculus CV1 headset using Whirligig, images attached. If I use this frequently I'm happy to write a PR if you think it's a good addition to your plugin, otherwise in case you wanted to integrate it sooner, heres the necessary code to run it on the command line.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions