PointMVSNet icon indicating copy to clipboard operation
PointMVSNet copied to clipboard

dgcnn cuda extension in training and evaluation

Open bnojavan opened this issue 4 years ago • 7 comments

I am trying this framework on Ubuntu 18.04 and following the instructions provided. When I was compiling the cuda extension I was getting "TH_INDEX_BASE" is undefined. I manually defined it in the c source code to be 1 following https://github.com/torch/torch7/blob/master/lib/TH/THGeneral.h.in and was able to "seemingly" build the cuda extension and it generated the build folder. However, I still see " Please compile source files before using dgcnn cuda extension." When I am trying to train/test, although there are no errors, it gets to an infinite loop scanning all images in one folder of the test and does not end running.

bnojavan avatar Nov 14 '19 22:11 bnojavan

I think it's related to the version of PyTorch. Try downgrade to pytorch1.0.1 and compile again.

callmeray avatar Nov 17 '19 01:11 callmeray

Same problem I have met. One can easily fix the bug by replacing TH_Index_Base with 0. The official solution: https://github.com/pytorch/pytorch/pull/17591.

FishHe avatar Dec 02 '19 08:12 FishHe

Hello, I'm sorry to bother you. Can you tell me where I can find th_ Index_ Base? @FishHe

Innocence4822 avatar Dec 10 '21 07:12 Innocence4822

When i run the test.py ,An error occurred “NameError: name 'dgcnn_ext' is not defined” . But ,I have run "bash compile.sh“ and succeeded. I don't know how to solve the problem.Can you help me?@callmeray

Innocence4822 avatar Dec 10 '21 07:12 Innocence4822

Hello, I'm sorry to bother you. Can you tell me where I can find th_ Index_ Base? @FishHe

gather_knn_kernel.cu

freyang avatar Dec 20 '21 11:12 freyang

Sorry, I still can't understand. Can you explain it in detail?😊 @HelenYang1999

Innocence4822 avatar Dec 20 '21 11:12 Innocence4822

你好,我最近运行这个代码也出现和你一样的问题,请问您解决了吗?可否将解决之法告知

geviolet avatar Sep 07 '23 12:09 geviolet