monodepth icon indicating copy to clipboard operation
monodepth copied to clipboard

Using custom images, how to deal with new camera calib?

Open ghost opened this issue 6 years ago • 4 comments

Hey, thanks for sharing your amazing work! I'd rather have a question: When I would like to apply your framework on custom images with camera intrinsics different to KITTI, do I have to retrain the models? Or is there some kind of config-file? :)

Thanks alot!

ghost avatar Oct 03 '18 15:10 ghost

Any update on this? I'm also considering the same issue. Is there a recommended way to transform the depth image to a point cloud? How should I deal with the camera calibration?

Great work! This is a great repo!

jake3991 avatar Dec 19 '18 20:12 jake3991

@mojovski apologies for the massive delay.

Essentially the behaviour is undefined with images which have different aspect ratios and focals as the network really only saw one type of images. Now with that in mind the best thing you can do is to convert the disparity into scaled depth by inverting it.

scaled_depth = 1 / pred_disp

mrharicot avatar Dec 20 '18 18:12 mrharicot

Ah I see. That being said you could set a camera to run a the required input resolution and re calibrate using for that resolution. Now you'd have a camera that can feed images to the network and convert disparity maps to point clouds. Do you think that is correct?

jake3991 avatar Dec 20 '18 19:12 jake3991

I am not sure I follow what you meant by re calibrating. I think the most general case would require to train on a variety of aspect ratios and focals while keeping the total input resolution fairly constant.

mrharicot avatar Dec 21 '18 14:12 mrharicot