ma-xu/pointMLP-pytorch

pip install pointnet2_ops_lib/.

Closed this issue · 8 comments

run [pip install pointnet2_ops_lib/.] error. What is this command to install? Can PointMLP run without it? Thanks!

I also can't run [pip install pointnet2_ops_lib/.] . the error is "ERROR: Command errored out with exit status 1:". Is it the same as yours?
have you solved your problem?

ma-xu commented

@ldk-97 @UnderTheMangoTree Could you please post the detail error logs? It should be not so hard to install this lib.

Also, there are three ways to run without this lib.

  1. use the pytorch3d lib, see #2 (comment)
  2. use the pytorch_geometric, see #2 (comment)
  3. use non-cuda operations to implement the furthest_point_sample,
def furthest_point_sample(xyz, npoint):
    """
    Input:
        xyz: pointcloud data, [B, N, 3]
        npoint: number of samples
    Return:
        centroids: sampled pointcloud index, [B, npoint]
    """
    device = xyz.device
    B, N, C = xyz.shape
    centroids = torch.zeros(B, npoint, dtype=torch.long).to(device)
    distance = torch.ones(B, N).to(device) * 1e10
    farthest = torch.randint(0, N, (B,), dtype=torch.long).to(device)
    batch_indices = torch.arange(B, dtype=torch.long).to(device)
    for i in range(npoint):
        centroids[:, i] = farthest
        centroid = xyz[batch_indices, farthest, :].view(B, 1, 3)
        dist = torch.sum((xyz - centroid) ** 2, -1)
        distance = torch.min(distance, dist)
        farthest = torch.max(distance, -1)[1]
    return centroids

The error is:
Building wheel for pointnet2-ops (setup.py) ... error
ERROR: Command errored out with exit status 1:
.... ...
Installing collected packages: pointnet2-ops
Running setup.py install for pointnet2-ops ... error
... ...
There were so many misinformation that I took some of it.
I use pytorch1.7 and cuda10.1, Whether there is a version problem? Thanks for your attention!

ma-xu commented

@ldk-97 I cannot see any useful information from this. Maybe you can send me a copy of your entire error log.

Beside, there are three ways to avoid install these lib, as I mentioned above.

@ldk-97 I cannot see any useful information from this. Maybe you can send me a copy of your entire error log.

Beside, there are three ways to avoid install these lib, as I mentioned above.

I sent you an email because there were so many error logs. Also I try to use the other 2 ways to solve my problem.

ma-xu commented

@ldk-97 I cannot see any useful information from this. Maybe you can send me a copy of your entire error log.
Beside, there are three ways to avoid install these lib, as I mentioned above.

I sent you an email because there were so many error logs. Also I try to use the other 2 ways to solve my problem.

Received. the error probably is caused by the Windows OS. You may consider the above methods to avoid installing this lib. Let me know if you have any further questions.

@ldk-97 I cannot see any useful information from this. Maybe you can send me a copy of your entire error log.
Beside, there are three ways to avoid install these lib, as I mentioned above.

I sent you an email because there were so many error logs. Also I try to use the other 2 ways to solve my problem.

Received. the error probably is caused by the Windows OS. You may consider the above methods to avoid installing this lib. Let me know if you have any further questions.

Do you use the Ubuntu system? I tried to use the other ways you mentioned to solve the problem. Thanks a lot!!

ma-xu commented

@ldk-97 I cannot see any useful information from this. Maybe you can send me a copy of your entire error log.
Beside, there are three ways to avoid install these lib, as I mentioned above.

I sent you an email because there were so many error logs. Also I try to use the other 2 ways to solve my problem.

Received. the error probably is caused by the Windows OS. You may consider the above methods to avoid installing this lib. Let me know if you have any further questions.

Do you use the Ubuntu system? I tried to use the other ways you mentioned to solve the problem. Thanks a lot!!

Yes, Ubuntu is recommended. I will close this issue. Feel free to re-open it if necessary.