JiayuYANG / CVP-MVSNet

Cost Volume Pyramid Based Depth Inference for Multi-View Stereo (CVPR 2020 Oral)
238 stars 33 forks source link

No points in .ply output #8

Closed sunshinnnn closed 4 years ago

sunshinnnn commented 4 years ago

Sorry to bother again.

I run fusion.sh and the setting is not changed. But I could not get any points in .ply. My depth_est and confidence is OK, i'v checked by visualization.

(fusion) ➜ fusion bash fusion.sh filter depth map with probability map Convert mvsnet output to gipuma input Run depth map fusion & filter ./fusibile/fusibile -input_folder ../outputs_pretrained/fusibile_fused/scan1/ -p_folder ../outputs_pretrained/fusibile_fused/scan1/cams/ -images_folder ../outputs_pretrained/fusibile_fused/scan1/images/ --depth_min=0.001 --depth_max=100000 --normal_thresh=360 --disp_thresh=0.13 --num_consistent=3.0 ./fusibile/fusibile Command-line parameter error: unknown option -input_folder input folder is ../outputs_pretrained/fusibile_fused/scan1/ image folder is ../outputs_pretrained/fusibile_fused/scan1/images/ p folder is ../outputs_pretrained/fusibile_fused/scan1/cams/ pmvs folder is numImages is 49 img_filenames is 49 Device memory used: 172.818436MB Device memory used: 172.818436MB P folder is ../outputs_pretrained/fusibile_fused/scan1/cams/ numCameras is 49 Camera size is 49 Accepted intersection angle of central rays is 10.000000 to 30.000000 degrees Selected views: 49 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, Reading normals and depth from disk Size consideredIds is 49 Reading normal 0 Reading disp 0 Reading normal 1 Reading disp 1 Reading normal 2 Reading disp 2 Reading normal 3 Reading disp 3 Reading normal 4 Reading disp 4 Reading normal 5 Reading disp 5 Reading normal 6 Reading disp 6 Reading normal 7 Reading disp 7 Reading normal 8 Reading disp 8 Reading normal 9 Reading disp 9 Reading normal 10 Reading disp 10 Reading normal 11 Reading disp 11 Reading normal 12 Reading disp 12 Reading normal 13 Reading disp 13 Reading normal 14 Reading disp 14 Reading normal 15 Reading disp 15 Reading normal 16 Reading disp 16 Reading normal 17 Reading disp 17 Reading normal 18 Reading disp 18 Reading normal 19 Reading disp 19 Reading normal 20 Reading disp 20 Reading normal 21 Reading disp 21 Reading normal 22 Reading disp 22 Reading normal 23 Reading disp 23 Reading normal 24 Reading disp 24 Reading normal 25 Reading disp 25 Reading normal 26 Reading disp 26 Reading normal 27 Reading disp 27 Reading normal 28 Reading disp 28 Reading normal 29 Reading disp 29 Reading normal 30 Reading disp 30 Reading normal 31 Reading disp 31 Reading normal 32 Reading disp 32 Reading normal 33 Reading disp 33 Reading normal 34 Reading disp 34 Reading normal 35 Reading disp 35 Reading normal 36 Reading disp 36 Reading normal 37 Reading disp 37 Reading normal 38 Reading disp 38 Reading normal 39 Reading disp 39 Reading normal 40 Reading disp 40 Reading normal 41 Reading disp 41 Reading normal 42 Reading disp 42 Reading normal 43 Reading disp 43 Reading normal 44 Reading disp 44 Reading normal 45 Reading disp 45 Reading normal 46 Reading disp 46 Reading normal 47 Reading disp 47 Reading normal 48 Reading disp 48 Resizing globalstate to 49 Run cuda Run gipuma Grid size initrand is grid: 50-38 block: 32-32 Device memory used: 3461.152832MB Number of iterations is 8 Blocksize is 15x15 Disparity threshold is 0.130000 Normal threshold is 6.283185 Number of consistent points is 3 Cam scale is 1.000000 Fusing points Processing camera 0 Found 0.00 million points Processing camera 1 Found 0.00 million points Processing camera 2 Found 0.00 million points Processing camera 3 Found 0.00 million points Processing camera 4 Found 0.00 million points Processing camera 5 Found 0.00 million points Processing camera 6 Found 0.00 million points Processing camera 7 Found 0.00 million points Processing camera 8 Found 0.00 million points Processing camera 9 Found 0.00 million points Processing camera 10 Found 0.00 million points Processing camera 11 Found 0.00 million points Processing camera 12 Found 0.00 million points Processing camera 13 Found 0.00 million points Processing camera 14 Found 0.00 million points Processing camera 15 Found 0.00 million points Processing camera 16 Found 0.00 million points Processing camera 17 Found 0.00 million points Processing camera 18 Found 0.00 million points Processing camera 19 Found 0.00 million points Processing camera 20 Found 0.00 million points Processing camera 21 Found 0.00 million points Processing camera 22 Found 0.00 million points Processing camera 23 Found 0.00 million points Processing camera 24 Found 0.00 million points Processing camera 25 Found 0.00 million points Processing camera 26 Found 0.00 million points Processing camera 27 Found 0.00 million points Processing camera 28 Found 0.00 million points Processing camera 29 Found 0.00 million points Processing camera 30 Found 0.00 million points Processing camera 31 Found 0.00 million points Processing camera 32 Found 0.00 million points Processing camera 33 Found 0.00 million points Processing camera 34 Found 0.00 million points Processing camera 35 Found 0.00 million points Processing camera 36 Found 0.00 million points Processing camera 37 Found 0.00 million points Processing camera 38 Found 0.00 million points Processing camera 39 Found 0.00 million points Processing camera 40 Found 0.00 million points Processing camera 41 Found 0.00 million points Processing camera 42 Found 0.00 million points Processing camera 43 Found 0.00 million points Processing camera 44 Found 0.00 million points Processing camera 45 Found 0.00 million points Processing camera 46 Found 0.00 million points Processing camera 47 Found 0.00 million points Processing camera 48 Found 0.00 million points ELAPSED 0.914342 seconds Error: no kernel image is available for execution on the device Writing ply file ../outputs_pretrained/fusibile_fused/scan1//consistencyCheck-20200723-125040//final3d_model.ply store 3D points to ply file

JiayuYANG commented 4 years ago

Hi @sunshinnnn

I think it may related to your fusibile executable. Is there any error reported when you compile fusibile? You can check the output of cmake . and make command when you compile your fusibile executable. Or attach it here and let me check for you.

Jiayu.

sunshinnnn commented 4 years ago

I recompile fusible, however it stil does not work. Here are my compile outputs. Really thankful to your help.

-- The C compiler identification is GNU 7.5.0 -- The CXX compiler identification is GNU 7.5.0 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found OpenCV: /usr/local (found version "4.4.0") -- Looking for pthread.h -- Looking for pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE
-- Found CUDA: /usr/local/cuda-10.1 (found suitable version "10.1", minimum required is "6.0") -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5")
-- Configuring done -- Generating done -- Build files have been written to: /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile

(fusion) ➜ fusibile git:(master) ✗ make [ 33%] Building NVCC (Device) object CMakeFiles/fusibile.dir/fusibile_generated_fusibile.cu.o /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu(178): warning: variable "used_list" was set but never used

/home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu(372): warning: variable "grid_size" was set but never used

/home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu(375): warning: variable "block_size" was set but never used

ptxas info : 64576 bytes gmem, 72 bytes cmem[3] ptxas info : Compiling entry function '_Z8fusibileR11GlobalStatei' for 'sm_60' ptxas info : Function properties for _Z8fusibileR11GlobalStatei 0 bytes stack frame, 0 bytes spill stores, 0 bytes spill loads ptxas info : Used 48 registers, 332 bytes cmem[0], 20 bytes cmem[2] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu: In function ‘void copy_point_cloud_to_host(GlobalState&, int, PointCloudList&)’: /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu:289:7: warning: ‘texture4[3]’ may be used uninitialized in this function [-Wmaybe-uninitialized] float texture4[4]; ^ ~~ /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu:289:7: warning: ‘texture4[1]’ may be used uninitialized in this function [-Wmaybe-uninitialized] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu:289:7: warning: ‘texture4[0]’ may be used uninitialized in this function [-Wmaybe-uninitialized] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/fusibile.cu:289:7: warning: ‘texture4[2]’ may be used uninitialized in this function [-Wmaybe-uninitialized] Scanning dependencies of target fusibile [ 66%] Building CXX object CMakeFiles/fusibile.dir/main.cpp.o In file included from /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/main.cpp:32:0: /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h: In function ‘const char _cudaGetErrorEnum(cudaError_t)’: /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorDeviceUninitilialized’ not handled in switch [-Wswitch] switch (error) ^ /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorArrayIsMapped’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorAlreadyMapped’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorAlreadyAcquired’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorNotMapped’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorNotMappedAsArray’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorNotMappedAsPointer’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorNvlinkUncorrectable’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorJitCompilerNotFound’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorInvalidSource’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorFileNotFound’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorIllegalState’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorSymbolNotFound’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorLaunchIncompatibleTexturing’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorContextIsDestroyed’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorCooperativeLaunchTooLarge’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorSystemNotReady’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorSystemDriverMismatch’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorCompatNotSupportedOnDevice’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureUnsupported’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureInvalidated’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureMerge’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureUnmatched’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureUnjoined’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureIsolation’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureImplicit’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorCapturedEvent’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:38:12: warning: enumeration value ‘cudaErrorStreamCaptureWrongThread’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h: In function ‘const char _cudaGetErrorEnum(CUresult)’: /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_PEER_ACCESS_UNSUPPORTED’ not handled in switch [-Wswitch] switch (error) ^ /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_INVALID_PTX’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_INVALID_GRAPHICS_CONTEXT’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_NVLINK_UNCORRECTABLE’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_JIT_COMPILER_NOT_FOUND’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_ILLEGAL_STATE’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_ILLEGAL_ADDRESS’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_HARDWARE_STACK_ERROR’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_ILLEGAL_INSTRUCTION’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_MISALIGNED_ADDRESS’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_INVALID_ADDRESS_SPACE’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_INVALID_PC’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_COOPERATIVE_LAUNCH_TOO_LARGE’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_NOT_PERMITTED’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_NOT_SUPPORTED’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_SYSTEM_NOT_READY’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_SYSTEM_DRIVER_MISMATCH’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_COMPAT_NOT_SUPPORTED_ON_DEVICE’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_UNSUPPORTED’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_INVALIDATED’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_MERGE’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_UNMATCHED’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_UNJOINED’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_ISOLATION’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_IMPLICIT’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_CAPTURED_EVENT’ not handled in switch [-Wswitch] /home/vrlab/sungx/PycharmProjects/CVP_MVSNet/fusion/fusibile/helper_cuda.h:293:12: warning: enumeration value ‘CUDA_ERROR_STREAM_CAPTURE_WRONG_THREAD’ not handled in switch [-Wswitch] [100%] Linking CXX executable fusibile [100%] Built target fusibile

JiayuYANG commented 4 years ago

Seems your fusibile is compiled correctly. I noticed there is a line Error: no kernel image is available for execution on the device in your fusibile output. Google this line shows that it's something related to your GPU and CUDA compatibility. What GPU are you using? Is your CUDA working correctly?

Btw, the other error Command-line parameter error: unknown option -input_folder can be ignored.

Jiayu.

sunshinnnn commented 4 years ago

|===============================+======================+======================| | 0 GeForce GTX 108... Off | 00000000:01:00.0 On | N/A | | 0% 40C P8 12W / 250W | 209MiB / 11175MiB | 1% Default | +-------------------------------+----------------------+----------------------+ | 1 GeForce RTX 208... Off | 00000000:03:00.0 Off | N/A | | 0% 45C P8 1W / 250W | 1MiB / 11019MiB | 0% Default | +-------------------------------+----------------------+----------------------+

GPU is not be used. Error: no kernel image is available for execution on the device is the error of executable file.

I wonder that is there any apparent error in my complie process? Just show in my last chat box.

JiayuYANG commented 4 years ago

I remembered something related to this. In the CMakeList.txt of fusibile, this line is related to the cuda capability. On my machine I have to change it this way based on my GPU (RTX TITAN):

# set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3 --use_fast_math --ptxas-options=-v -std=c++11 --compiler-options -Wall -gencode arch=compute_60,code=sm_60 -gencode arch=compute_60,code=sm_60)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3 --use_fast_math --ptxas-options=-v -std=c++11 --compiler-options -Wall -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=sm_75)

You may also need to change this line according to your GPU. CUDA compute capability for all GPUs can be found here. e.g. Capability 7.5 => arch=compute_75,code=sm_75 -gencode arch=compute_75,code=sm_75

Jiayu.

sunshinnnn commented 4 years ago

I'm sorry that I can't find the exact relationship between 75 and GPU memory such as 24G. My GPU is 11G, there should be a map of memory an number(maybe not be linear). Is there a more clear link or relation table? (I find a 72 in your link, but it is not 75)

...I find there should be a table about GPU Compute Capability. But the webside does not show it in my PC. ...

JiayuYANG commented 4 years ago

Firstly you can find the CUDA compute capability here. You have to click the sections to expand and see the table, say, "CUDA-Enabled GeForce and TITAN Products" According to it, 1080ti has a capability 6.1, 2080ti has capability 7.5

Than, you can update this line as follow. If you want to use 1080ti: set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3 --use_fast_math --ptxas-options=-v -std=c++11 --compiler-options -Wall -gencode arch=compute_61,code=sm_61 -gencode arch=compute_61,code=sm_61) or for 2080ti: set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS};-O3 --use_fast_math --ptxas-options=-v -std=c++11 --compiler-options -Wall -gencode arch=compute_75,code=sm_75 -gencode arch=compute_75,code=sm_75)

After that, you can recompile fusibile and see if it works.

Jiayu.

sunshinnnn commented 4 years ago

Thanks for finding that value. I change it to 61 in CMakeList.txt. The result is not changed in .ply. Maybe the error occurs here,

switch (error)
^

Maybe we could test on it to slove the bug. You may use Ctrl + F to find it in this page.

JiayuYANG commented 4 years ago

Did you recompile fusibile after changing the architecture? You need to run cmake . and make again.

The line warning: enumeration value not handled in switch [-Wswitch] is a warning. Not an error.

Jiayu.

sunshinnnn commented 4 years ago

Yes. I delete the original one and download new dir and change number to 6.1 and then compile. I find another question, my opencv is 3.4.10, but find package says it is 4.4. I'd better recheck opencv.

leno0903 commented 4 years ago

fusion-py2.7) peanut@a312:~/a312/xhs/CVP-MVSNet/CVP_MVSNet/fusion$ sudo chmod 777 fusibile (fusion-py2.7) peanut@a312:~/a312/xhs/CVP-MVSNet/CVP_MVSNet/fusion$ ls -ld fusibile drwxrwxrwx 4 peanut peanut 4096 7月 27 15:07 fusibile (fusion-py2.7) peanut@a312:~/a312/xhs/CVP-MVSNet/CVP_MVSNet/fusion$ sh fusion.sh filter depth map with probability map Convert mvsnet output to gipuma input Run depth map fusion & filter ./fusibile -input_folder ../outputs_pretrained/fusibile_fused/scan1/ -p_folder ../outputs_pretrained/fusibile_fused/scan1/cams/ -images_folder ../outputs_pretrained/fusibile_fused/scan1/images/ --depth_min=0.001 --depth_max=100000 --normal_thresh=360 --disp_thresh=0.13 --num_consistent=3.0 sh: 1: ./fusibile: Permission denied

I don't know why sh: 1: ./fusibile: Permission denied

JiayuYANG commented 4 years ago

Hi @leno0903

I think maybe you made a soft link of the folder of fusibile? You might want to check that your soft link points to the fusibile executable itself, not the folder of fusibile.

e.g. If the fusibile directory is /home/jiayu/fusibile and you build fusibile directly in that directory, the fusibile executable should be generated on /home/jiayu/fusibile/fusibile. And you can link it by: cd fusion/ ln -s /home/jiayu/fusibile/fusibile ./

Or if you don't want to use soft link, you can just change this line in fusion.sh to the path to your fusibile executable.

Jiayu

zhao-you-fei commented 2 years ago

Can you help me? I don't know how to solve these problem. [100%] Linking CXX executable fusibile /usr/bin/ld: warning: //home/camellia/anaconda3/envs/JDACS-MVS/lib/libgomp.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010001 /usr/bin/ld: warning: //home/camellia/anaconda3/envs/JDACS-MVS/lib/libgomp.so.1: unsupported GNU_PROPERTY_TYPE (5) type: 0xc0010002 /usr/bin/ld: /usr/local/cuda-10.0/lib64/libcudart_static.a(libcudart_static.a.o): undefined reference to symbol 'shm_unlink@@GLIBC_2.2.5' //lib/x86_64-linux-gnu/librt.so.1: 无法添加符号: DSO missing from command line collect2: 错误: ld 返回 1 make[2]: [CMakeFiles/fusibile.dir/build.make:153:fusibile] 错误 1 make[1]: [CMakeFiles/Makefile2:83:CMakeFiles/fusibile.dir/all] 错误 2 make: *** [Makefile:91:all] 错误 2

zzy0731 commented 2 years ago

I have the same problem as you, do you remember how you solved the question finally?