NJUVISION / PCGCv2

Multiscale Point Cloud Geometry Compression
Other
101 stars 17 forks source link

run test.py #9

Open vamderboom opened 10 months ago

vamderboom commented 10 months ago

File "/coder.py", line 101, in encode self.coordinate_coder.encode((y.C//y.tensor_stride[0]).detach().cpu()[:,1:], postfix=postfix) TypeError: unsupported operand type(s) for //: 'Tensor' and 'int'

my pytorch==1.9,why tensor cant // int

yydlmzyz commented 9 months ago

Hi, this may be related to the version of pytorch, you can try to convert 'int' to 'tensor' by 'torch.Tensor()'.