YACCLAB icon indicating copy to clipboard operation
YACCLAB copied to clipboard

how can i save the result of cuda algorithm

Open feixuedudiao opened this issue 2 years ago • 2 comments

when i save the result with the above code,the result is black ,i think this is wrong ,how can i do that? 图片 the input is 图片

the output is: Set_1_ID_01_Camera_1_Seq_1_video0000 png_ACCL

i used config : 图片

also, i imwrite the label image with above code, but the result is nothing as well. 图片

feixuedudiao avatar Jun 23 '23 12:06 feixuedudiao

Dear @feixuedudiao, thank you for your interest in our project.

Which version of YACCLAB are you using? I've just downloaded the latest commit in the master branch and the code you are referring to is working fine on my machine:

set_1_id_01_camera_1_seq_1_video0000 png_buf_480

My config.yaml is configured to run only BUF on the 3DPeS dataset as it seems you are doing.

Did you set color_labels.average to true in the config file (color_labels: {average: true, density: false})?

prittt avatar Jun 27 '23 09:06 prittt

Have you checked the correctness of the algorithms, setting correctness: true in the config file? If they are not correct, maybe nvcc is generating PTX and binary files for a wrong architecture. To be safe, you can manually set CMAKE_CUDA_ARCHITECTURES

stal12 avatar Jun 27 '23 09:06 stal12