Skip to content

fps, Trying to create tensor with negative dimension #125

Open
@etaoxing

Description

@etaoxing

I'm training a PointNet++, based on https://github.com/pyg-team/pytorch_geometric/blob/master/examples/pointnet2_classification.py. I'm getting a similar error as this issue:

File "(..)/train_pointnet2.py", line 33, in forward
  idx = fps(pos, batch, ratio=self.ratio)
File "(..)/python3.7/site-packages/torch_cluster/fps.py", line 70, in fps
  return torch.ops.torch_cluster.fps(src, ptr, r, random_start)
RuntimeError: Trying to create tensor with negative dimension -2334829709134659584: [-2334829709134659584]

As a temporary fix, I've added a try/except repeat around the fps(...) call.

Environment

  • OS: Docker, Ubuntu 18.04
  • Python version: 3.7.12
  • PyTorch version: 1.9.1+cu111
  • pytorch_geometric version: 2.0.4
  • pytorch_cluster version: 1.5.9

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions