You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last): File "train.py", line 531, in <module> train(hyp, opt, device, tb_writer, wandb) File "train.py", line 297, in train loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size File "/content/yolov5/utils/loss.py", line 117, in __call__ tcls, tbox, indices, anchors = self.build_targets(p, targets) # targets File "/content/yolov5/utils/loss.py", line 211, in build_targets indices.append((b, a, gj.clamp_(0, gain[3] - 1), gi.clamp_(0, gain[2] - 1))) # image, anchor, grid indices RuntimeError: result type Float can't be cast to the desired output type long int CPU times: user 204 ms, sys: 34.8 ms, total: 239 ms Wall time: 26.9 s Training is not happening!
#1
It seems that the colab file needs to be fixed a little bit. Training is not getting started and results are not generating. I cannot evaluate it and cannot fine-tune it for my own application.
The text was updated successfully, but these errors were encountered:
HassanBinHaroon
changed the title
Traceback (most recent call last): File "train.py", line 531, in <module> train(hyp, opt, device, tb_writer, wandb) File "train.py", line 297, in train loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size File "/content/yolov5/utils/loss.py", line 117, in __call__ tcls, tbox, indices, anchors = self.build_targets(p, targets) # targets File "/content/yolov5/utils/loss.py", line 211, in build_targets indices.append((b, a, gj.clamp_(0, gain[3] - 1), gi.clamp_(0, gain[2] - 1))) # image, anchor, grid indices RuntimeError: result type Float can't be cast to the desired output type long int CPU times: user 204 ms, sys: 34.8 ms, total: 239 ms Wall time: 26.9 s
Traceback (most recent call last): File "train.py", line 531, in <module> train(hyp, opt, device, tb_writer, wandb) File "train.py", line 297, in train loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size File "/content/yolov5/utils/loss.py", line 117, in __call__ tcls, tbox, indices, anchors = self.build_targets(p, targets) # targets File "/content/yolov5/utils/loss.py", line 211, in build_targets indices.append((b, a, gj.clamp_(0, gain[3] - 1), gi.clamp_(0, gain[2] - 1))) # image, anchor, grid indices RuntimeError: result type Float can't be cast to the desired output type long int CPU times: user 204 ms, sys: 34.8 ms, total: 239 ms Wall time: 26.9 s Training is not happening!
Jul 26, 2022
It seems that the colab file needs to be fixed a little bit. Training is not getting started and results are not generating. I cannot evaluate it and cannot fine-tune it for my own application.
Kindly guide so I can run it smoothly.
Thanks!
The text was updated successfully, but these errors were encountered: