Open kihoon71 opened 8 months ago
Hello, @kihoon71, which line causes the error ?
Instead of my team mate, i did upload this issue. He must know better about this issue than me, so i will mention him here.
@fb059
Hi, I'm the one who asked for it.
The error occures in line 181 of pointpillars.py.
I'll put total error message below.
Traceback (most recent call last):
File "train.py", line 222, in
Hi, @fb059 , could you help to provide your config for voxel_size
and point_cloud_range
?
And then print(xi.size())
in https://github.com/zhulf0804/PointPillars/blob/57af3f50fd3442e6e5c22467e16d28033c4cc51a/model/pointpillars.py#L179
voxel_size is [0.25, 0.25, 8]
and point_cloud_range is [-50, -50, -5, 50, 50, 3].
And when I print(xi.size()) in pointpillars.py, the output is torch.Size([6, 128, 200, 200])
voxel_size is [0.25, 0.25, 8]
and point_cloud_range is [-50, -50, -5, 50, 50, 3].
And when I print(xi.size()) in pointpillars.py, the output is torch.Size([6, 128, 200, 200])
Hi, so how 316 and 313 are generated, when your x_i.size() is [6, 128, 200, 200]
?
Sorry, my mistake. I changed configs in pointpillars.py to
nclasses=2,
voxel_size=[0.25, 0.25, 8],
point_cloud_range=[-50, -50, -5, 50, 50, 3],
max_num_points=64,
max_voxels=(30000, 40000)):
and after that change
RuntimeError: Sizes of tensors must match except in dimension 2. Got 316 and 313 (The offending index is 0)
no longer occurs. But now I get different error described below.
Traceback (most recent call last):
File "train.py", line 215, in
Hi @fb059, it seems there are no elements in tensor features
.
Please help check features.size() in
https://github.com/zhulf0804/PointPillars/blob/57af3f50fd3442e6e5c22467e16d28033c4cc51a/model/pointpillars.py#L76
and
Hi, @zhulf0804 First, I misunderstood my point_cloud_range(min x,y,z values and max x,y,z values), so I fixed it right.
point_cloud_range=[-39.9442, -39.7883, -2.3986, 39.8011, 39.8065, 6.9456],
And as you recommanded, I checked features.size() The first features.size() looks like
And the second features.size() looks like
Hi @fb059, as the final feature'size is [0, 64, 9], it seems that the data is abnormal. Please help check it. Thanks.
Hi. I'm trying to use custom dataset with your model. I've changed few codes where I think I have to, like point_cloud_range, classes, etc.
When I run the command
python train.py --data_root own_data
I get error message below.
RuntimeError: Sizes of tensors must match except in dimension 2. Got 316 and 313 (The offending index is 0)
can I get any help?