PRNet icon indicating copy to clipboard operation
PRNet copied to clipboard

Any ideas on how to generate depth map faster?

Open nvinhphuc opened this issue 6 years ago • 7 comments

I have to generate depth-map for a large dataset, so I need to do it faster. According to my observation, the depth map generation is slow because of the z-buffer algorithm run on CPU (costs 3s per image), while the PRNet process the vertices from the image so fast. So I wonder if there are any ways to faster the process (multi-thread, multi-core, etc.)?

nvinhphuc avatar May 08 '19 04:05 nvinhphuc

@intheroom hi,I also want get the depth map,can you tell me how to get it, thanks!

nwdxbx avatar May 09 '19 09:05 nwdxbx

@intheroom hi,I also want get the depth map,can you tell me how to get it, thanks!

you can use this command: python demo.py -i <inputDir> -o <outputDir> --isDlib True --isDepth True

nvinhphuc avatar May 09 '19 11:05 nvinhphuc

@intheroom Thank you ver much. I will try it soon.

nwdxbx avatar May 16 '19 11:05 nwdxbx

I tried the cython version for generating depth maps, and it only cost 0.0035s per frame.

zhuomanliu avatar May 29 '19 03:05 zhuomanliu

@zhuomanliu I have the same problem of generating depth map, but I am new to pyhton, does the cython version have the source code of getting depth map or should write a new function, can you give me some hint?

Guyume avatar Jul 06 '19 07:07 Guyume

@zhuomanliu hello, I have try the code you referred to generate depth image, but I get different results with the original z-buffer code here. Have you ever encountered this situation ?

baoyu-yuan avatar Aug 16 '19 08:08 baoyu-yuan

@zhuomanliu @baorave, I also encounter this situation.

gjd2017 avatar Oct 26 '19 03:10 gjd2017