File "D:\yolov5-5.0\yolov5-5.0\train.py", line 543, in <module> train(hyp, opt, device, tb_writer) File "D:\yolov5-5.0\yolov5-5.0\train.py", line 304, in train loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\yolov5-5.0\yolov5-5.0\utils\loss.py", line 126, in __call__ ps = pi[b, a, gj, gi] # prediction subset corresponding to targets
~~^^^^^^^^^^^^^^
IndexError: tensors used as indices must be long, int, byte or bool tensors