Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Training with dense maps #50

Open
poornimajd opened this issue Jun 14, 2020 · 1 comment
Open

Training with dense maps #50

poornimajd opened this issue Jun 14, 2020 · 1 comment

Comments

@poornimajd
Copy link

Hello great work @AlessioTonioni and team!
I am trying to use the work for training on custom data which has dense depth maps as shown below:
depth_0
These are not similar to that of kitti wherein the ground truth depth is obtained from lidar point cloud and is sparse.
So can I use the depth map as it is for supervised training or do I need to make some changes?
Also if I want to use unsupervised training, I need to change the following line :

full_reconstruction_loss = loss_factory.get_supervised_loss(args.lossType,multiScale=True,logs=False,weights=args.lossWeights,max_disp=MAX_DISP)(predictions,inputs)

with this line:
full_reconstruction_loss = loss_factory.get_reprojection_loss('mean_SSIM_l1',reduced=True)(predictions,inputs)

And to avoid other changes if I just give blank images as depth map will that work for unsupervised training?

@AlessioTonioni
Copy link
Member

So can I use the depth map as it is for supervised training or do I need to make some changes?

You need to convert it to disparity map, but yes you can provide dense data. Invalid points (for example the black area in the uploaded image) should be flagged with a 0 disparity and the code should ignore them.

Also if I want to use unsupervised trainin

Yes if you want to do unsupervised training from scratch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants