Skip to content

Error about the size of tensor #11

@ywyue

Description

@ywyue

Hi, Thanks for your great work.
When I ran the train.py, it gave me an error:
{'Airplane': 0, 'Bag': 1, 'Cap': 2, 'Car': 3, 'Chair': 4, 'Earphone': 5, 'Guitar': 6, 'Knife': 7, 'Lamp': 8, 'Laptop': 9, 'Motorbike': 10, 'Mug': 11, 'Pistol': 12, 'Rocket': 13, 'Skateboard': 14, 'Table': 15}
16 15990
Traceback (most recent call last):
File "train.py", line 89, in
pred = net(points_v, cutdim_v)
File "/home/ywyue/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 493, in call
result = self.forward(*input, **kwargs)
File "train.py", line 45, in forward
x1 = kdconv(x, 2048, 8, c[-1], self.conv1)
File "train.py", line 37, in kdconv
sel = Variable(sel + (torch.arange(0, dim) * 3).long())
RuntimeError: The size of tensor a (2) must match the size of tensor b (2048) at non-singleton dimension 0

I am using pytorch 1.1.0, but I don't think this error was caused by the pytorch version. Could you help me with that? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions