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

ERROR #30

Open
liushifu12138 opened this issue Aug 22, 2021 · 3 comments
Open

ERROR #30

liushifu12138 opened this issue Aug 22, 2021 · 3 comments

Comments

@liushifu12138
Copy link

Traceback (most recent call last):
File "train.py", line 196, in
train()
File "train.py", line 137, in train
loss = train_sample(sample, detailed_summary=do_summary)
File "train.py", line 183, in train_sample
loss.append(model_loss(depth_est_list[i], depth_gt.float(), mask))
File "/mnt/CVP-MVSNet-master/CVP_MVSNet/models/net.py", line 195, in sL1_loss
return F.smooth_l1_loss(depth_est[mask], depth_gt[mask], reduction='mean')
IndexError: The shape of the mask [1, 128, 160] at index 1 does not match the shape of the indexed tensor [1, 512, 640] at index 1

@JiayuYANG
Copy link
Owner

Hi liushifu12138,

Are you using the training dataset provided by MVSNet?
The training set provided by MVSNet is different from the one I provide, since MVSNet and CVP-MVSNet have different structure.
MVSNet take 512x640 image in and estimate depth map of 128x160 size.
CVP-MVSNet take 128x160 image in and estimate depth map of the same resolution.

Cheers,
Jiayu.

@liushifu12138
Copy link
Author

How to test on tank data set?
Can you share your code?please

@wln19
Copy link

wln19 commented May 17, 2022

hello , can you test on tank data

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

3 participants