Connected_components_PyTorch icon indicating copy to clipboard operation
Connected_components_PyTorch copied to clipboard

Label Name?

Open LepusMaximus opened this issue 3 years ago • 2 comments

I am not firm with the cuda language. so sorry for that question: How are the label-idx created?

I would expect label to be [0, 1, 2 ....n] but got [0, 1, 34534, 340394]

LepusMaximus avatar Jun 01 '22 13:06 LepusMaximus

I am not firm with the cuda language. so sorry for that question: How are the label-idx created?

I would expect label to be [0, 1, 2 ....n] but got [0, 1, 34534, 340394]

I think you can use torch.unique() to get the label set

kuaitoukid avatar Aug 16 '22 07:08 kuaitoukid

Hello, have you solved this problem

lrjj avatar Nov 28 '22 07:11 lrjj