Traceback (most recent call last):
File "train.py", line 674, in
train(hyp, opt, device, tb_writer)
File "train.py", line 371, in train
loss, loss_items = compute_loss(
File "/home/dell2/FMK/yolov5-distillation-5.0/utils/loss.py", line 184, in call
tcls, tbox, indices, anchors = self.build_targets(
File "/home/dell2/FMK/yolov5-distillation-5.0/utils/loss.py", line 255, in build_targets
gain[2:6] = torch.tensor(p[i].shape)[[3, 2, 3, 2]] # xyxy gain
TypeError: 'builtin_function_or_method' object does not support item assignment
Traceback (most recent call last): File "train.py", line 674, in
train(hyp, opt, device, tb_writer)
File "train.py", line 371, in train
loss, loss_items = compute_loss(
File "/home/dell2/FMK/yolov5-distillation-5.0/utils/loss.py", line 184, in call
tcls, tbox, indices, anchors = self.build_targets(
File "/home/dell2/FMK/yolov5-distillation-5.0/utils/loss.py", line 255, in build_targets
gain[2:6] = torch.tensor(p[i].shape)[[3, 2, 3, 2]] # xyxy gain
TypeError: 'builtin_function_or_method' object does not support item assignment