ChamferDistancePytorch icon indicating copy to clipboard operation
ChamferDistancePytorch copied to clipboard

[Errno 2] No such file or directory: 'chamfer_cuda.cpp'

Open SysOverdrive opened this issue 5 years ago • 7 comments
trafficstars

After cloning the repo at the same level as a Jupiter notebook I can't seem to use this repo because of the error in the title.

My Code is :``` sys.path.append("ChamferDistancePytorch")

import torch, chamfer3D.dist_chamfer_3D, fscore chamLoss = chamfer3D.dist_chamfer_3D.chamfer_3DDist() points1 = torch.rand(32, 1000, 3).cuda() points2 = torch.rand(32, 2000, 3, requires_grad=True).cuda() dist1, dist2, idx1, idx2 = chamLoss(points1, points2) f_score, precision, recall = fscore.fscore(dist1, dist2)

SysOverdrive avatar May 07 '20 21:05 SysOverdrive

Hi @SysOverdrive I am not sure what you mean by because of the error in the title. Can you be more specific? Did the tests run on your end? Sincerely, Thibault

ThibaultGROUEIX avatar May 11 '20 09:05 ThibaultGROUEIX

Hi ThibaultGROUEIX so first I was referring to :

image

SysOverdrive avatar May 11 '20 18:05 SysOverdrive

So basically I am using a conda enviroment to install and use the chamfer distance. I have tried running from a VS Build tools consolse/ from conda and other ways.

I am running on a windows machine :)

SysOverdrive avatar May 11 '20 18:05 SysOverdrive

@SysOverdrive Any luck running on windows ? I have a similar problem

ahariri13 avatar Jul 27 '20 11:07 ahariri13

have you run python setup.py install?

jih189 avatar Aug 05 '20 23:08 jih189

On windows, maybe try to replace '/' with double '\' in line 20, 21 in dist_chamfer_3D.py to make sure "/".join(os.path.abspath(file).split('\')[:-1] + ["chamfer_cuda.cpp"]) is the right path.

Leong1230 avatar Apr 26 '21 01:04 Leong1230

"/".join(os.path.abspath(file).split('')[:-1] + ["chamfer_cuda.cpp"]) is the right path.

This works, but then it'll run into OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.

tiancaipipi110 avatar Sep 06 '23 07:09 tiancaipipi110