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

How to test with KITTI object detection dataset #16

Open
JenningsL opened this issue Mar 13, 2019 · 1 comment
Open

How to test with KITTI object detection dataset #16

JenningsL opened this issue Mar 13, 2019 · 1 comment

Comments

@JenningsL
Copy link

JenningsL commented Mar 13, 2019

I am trying to use your code with KITTI object detection dataset.

  1. Generate depth map by projecting the Lidar points to image plane
  2. Put image_2 and generated depth map to test_depth_completion_anonymous folder
  3. Run with test_completion mode

However, I got the following error

Traceback (most recent call last):
  File "main.py", line 248, in <module>
    main()
  File "main.py", line 231, in main
    result, is_best = iterate("test_completion", args, val_loader, model, None, logger, checkpoint['epoch'])
  File "main.py", line 105, in iterate
    pred = model(batch_data)
  File "/data/ssd/public/jlliu/pythonlib/lib/python2.7/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/data/ssd/public/jlliu/pythonlib/lib/python2.7/site-packages/torch/nn/parallel/data_parallel.py", line 141, in forward
    return self.module(*inputs[0], **kwargs[0])
  File "/data/ssd/public/jlliu/pythonlib/lib/python2.7/site-packages/torch/nn/modules/module.py", line 489, in __call__
    result = self.forward(*input, **kwargs)
  File "/data/ssd/public/jlliu/depth_completion/self-supervised-depth-completion/model.py", line 126, in forward
    y = torch.cat((convt5, conv5), 1)
RuntimeError: invalid argument 0: Sizes of tensors must match except in dimension 1. Got 47 and 48 in dimension 2 at /pytorch/aten/src/THC/generic/THCTensorMath.cu:83

Did I miss something?

@Rajat-Mehta
Copy link

@JenningsL @fangchangma did you find the solution?

I also want to do inference on test data using the model I trained. But I couldn't find any documentation on how to do that.

And what is this test_completion mode and how to use it?

Thanks in advance.

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