prittt / YACCLAB

YACCLAB: Yet Another Connected Components Labeling Benchmark
BSD 3-Clause "New" or "Revised" License
203 stars 37 forks source link

how can i save the result of cuda algorithm #37

Closed feixuedudiao closed 3 months ago

feixuedudiao commented 1 year ago

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. 图片

prittt commented 1 year ago

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})?

stal12 commented 1 year ago

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