Pointcept / Pointcept

Pointcept: a codebase for point cloud perception research. Latest works: PTv3 (CVPR'24 Oral), PPT (CVPR'24), OA-CNNs (CVPR'24), MSC (CVPR'23)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: 'Point' object is not callable

adamvln opened this issue · comments

Traceback (most recent call last):
File "tools/train.py", line 42, in
main()
File "tools/train.py", line 31, in main
launch(
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/engines/launch.py", line 89, in launch
main_func(*cfg)
File "tools/train.py", line 24, in main_worker
trainer.train()
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/engines/train.py", line 168, in train
self.run_step()
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/engines/train.py", line 182, in run_step
output_dict = self.model(input_dict)
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/models/default.py", line 56, in forward
point = self.backbone(point)
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/models/point_transformer_v3/point_transformer_v3m1_base.py", line 705, in forward
point = self.enc(point)
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/models/modules.py", line 62, in forward
input = module(input)
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/models/modules.py", line 62, in forward
input = module(input)
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
return forward_call(*input, **kwargs)
File "/gpfs/home4/avalin/CityThesis/Pointcept/pointcept/models/point_transformer_v3/point_transformer_v3m1_base.py", line 419, in forward
coord=torch_scatter.segment_csr(
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch_scatter/segment_csr.py", line 103, in segment_csr
return segment_mean_csr(src, indptr, out)
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch_scatter/segment_csr.py", line 18, in segment_mean_csr
return torch.ops.torch_scatter.segment_mean_csr(src, indptr, out)
File "/home/avalin/.conda/envs/pointcept/lib/python3.8/site-packages/torch/_ops.py", line 442, in call
return self._op(*args, **kwargs or {})
TypeError: 'Point' object is not callable

Hi, thank you for your work. I have this error. I noticed it was raised before but do not know which line in which file should i modify ? can you help ? thank you

Hi, make sure coord is an element of Point

It works ! sorry for the trouble thank you