CynicalHeart

Results 2 issues of CynicalHeart

Namespace(cfg='cfg/yolov3_1088x608.cfg', conf_thres=0.5, input_video='G:\\datasets\\webm\\MOT16-03.mp4', iou_thres=0.5, min_box_area=200, nms_thres=0.4, output_format='video', output_root='results', track_buffer=30, weights='G:/datasets/jde.uncertainty.pt') ---------------------------------------------------------------------------------------------------------------------------------------------- 2020-11-17 09:22:07 [INFO]: Starting tracking... Lenth of the video: 1500 frames 2020-11-17 09:23:07 [INFO]: Torch not compiled with CUDA...

在前向传播部分(forward),已经对每个anchor选取了一个hard-neg和一个hard-pos。 在loss部分,这时候使用nn.MarginRankingLoss将anchor与正负例的距离和y(batch个1)传入进去损失函数即可。但是代码中不是这么处理的。 一个不理解的地方: ```python pscore = torch.sum(f * pf_hard, dim=1) # 对应位相乘并行求和 nscore = torch.sum(f * nf_hard, dim=1) # not PCB reg = torch.sum((1 + nscore) ** 2) + torch.sum((-1...