andyzeng / 3dmatch-toolbox

3DMatch - a 3D ConvNet-based local geometric descriptor for aligning 3D meshes and point clouds.
http://3dmatch.cs.princeton.edu/
BSD 2-Clause "Simplified" License
836 stars 189 forks source link

Segmentation fault (core dumped) #23

Open densechen opened 5 years ago

densechen commented 5 years ago

when I run the ./demo command, this happened.. mo/single-depth-1.ply fragment-1 Loaded point cloud with 252179 points! Size of TDF voxel grid: 370 x 253 x 324 Computing TDF voxel grid... Finding random surface keypoints... PlaceHolderDataLayer dataTest

Layers: Responses:

dataTest data[5]={50,1,30,30,30} RF[1,1,1] GP[1,1,1] OF[0,0,0] conv1 weight[5]={64,1,3,3,3} bias[5]={1,64,1,1,1} conv1[5]={50,64,28,28,28} RF[3,3,3] GP[1,1,1] OF[0,0,0] relu1 conv2 weight[5]={64,64,3,3,3} bias[5]={1,64,1,1,1} conv2[5]={50,64,26,26,26} RF[5,5,5] GP[1,1,1] OF[0,0,0] relu2 pool1 pool1[5]={50,64,13,13,13} RF[6,6,6] GP[2,2,2] OF[0,0,0] conv3 weight[5]={128,64,3,3,3} bias[5]={1,128,1,1,1} conv3[5]={50,128,11,11,11} RF[10,10,10] GP[2,2,2] OF[0,0,0] relu3 conv4 weight[5]={128,128,3,3,3} bias[5]={1,128,1,1,1} conv4[5]={50,128,9,9,9} RF[14,14,14] GP[2,2,2] OF[0,0,0] relu4 conv5 weight[5]={256,128,3,3,3} bias[5]={1,256,1,1,1} conv5[5]={50,256,7,7,7} RF[18,18,18] GP[2,2,2] OF[0,0,0] relu5 conv6 weight[5]={256,256,3,3,3} bias[5]={1,256,1,1,1} conv6[5]={50,256,5,5,5} RF[22,22,22] GP[2,2,2] OF[0,0,0] relu6 conv7 weight[5]={512,256,3,3,3} bias[5]={1,512,1,1,1} conv7[5]={50,512,3,3,3} RF[26,26,26] GP[2,2,2] OF[0,0,0] relu7 conv8 weight[5]={512,512,3,3,3} bias[5]={1,512,1,1,1} conv8[5]={50,512,1,1,1} RF[30,30,30] GP[2,2,2] OF[0,0,0] relu8 feat weight[5]={512,512,1,1,1} bias[5]={1,512,1,1,1} feat[5]={50,512,1,1,1} RF[30,30,30] GP[2,2,2] OF[0,0,0]

GPU 0: Total GPU memory: 322.529 MB

6.75 KB 3.375 KB 256 Bytes 128 Bytes 432 KB 216 KB 256 Bytes 128 Bytes 0.84375 MB 432 KB 0.5 KB 256 Bytes 1.6875 MB 0.84375 MB Segmentation fault (core dumped)

syqzdy commented 5 years ago

I have the same error,did you fix it? thank you!

densechen commented 5 years ago

I don't know why, but after few times tries, it is OK.

syqzdy commented 5 years ago

I tried many times,it still does't work. when I run ./compile.sh, this happened : marvin.hpp:12:17: note: #pragma message: Compiling using StorageT=half ComputeT=float

pragma message "Compiling using StorageT=half ComputeT=float"

             ^

did you have this message! I'm thinking if the compiling process has problem!

syqzdy commented 5 years ago

I check the marvin.hpp, I find the "segmentation fault" occurred,when the function "loadweights" called. when the code loads the model weights "3dmatch-weights-snapshot-137000.marvin"!

densechen commented 5 years ago

pragma message: Compiling using StorageT=half ComputeT=float

This message indicates that you are using half type to compute in GPU. And this can be specified by yourself.

syqzdy commented 5 years ago

I got it, thank you!