PVT icon indicating copy to clipboard operation
PVT copied to clipboard

forward() missing 1 required positional argument: 'rel_pos'

Open tomanick opened this issue 2 years ago • 1 comments

When I wanted to train dataset, I met following problems. image

What is "rel_pos"?

Perhaps shared_transformer.py file should add "rel_pos" parameter in Class SharedTransformer ?

image

tomanick avatar Apr 19 '22 13:04 tomanick

Getting the same error. My dataloader is extracting a single data input as size [batch_size, num_channels, num_points] num_channels = 3 # for xyz channels Not sure what rel_pos is or what its supposed to be. It isn't documented well in the example training scripts. The trainloaders in main_part_seg.py also seem to extract their batches similarly [batch_size, xyz_channel, num_points] and pass that directly into the model without any extra argument.

Did you have any luck fixing this? @tomanick

GunnerStone avatar Oct 01 '22 09:10 GunnerStone