LiuShuaiyr / UAVMOT

multi-object tracking meets moving UAV
38 stars 4 forks source link

Error at TripletLoss forward() #19

Open zosel260 opened 1 year ago

zosel260 commented 1 year ago

Hello. Thank you for sharing good works. I tried training on VisDrone2019-MOT-train dataset.

First, I built libs : DCNv2, correlation_package

Second, I generated dataset & path file using gen_dataset_visdrone.py

Third, Once I run train.py I faced an error at TripletLoss forward() of the loss.py

dist_an.append(dist[i][mask[i] == 0].min().unsqueeze(0))

and It is because sometimes targets = [all ZEROs] ( e.g, targets=[0 0 0]) Then, mask[i] == [ all TRUEs] and dist[i].[mask[i] ==0] is empty.

Could you give me any advice?

michealangel commented 1 year ago

may I ask you which repo and which configuration of DCNv2 did you use? I mean the torch version, cuda, Ubuntu. Thanks in advance