sinxsoft

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

loss.py:result type Float can't be cast to the desired output type long int

Epoch gpu_mem box obj cls labels img_size 0%| | 0/1 [00:01 main(opt) File "/home/data/yolov5-6.1/train.py", line 539, in main train(opt.hyp, opt, device, callbacks) File "/home/data/yolov5-6.1/train.py", line 331, in train loss, loss_items = compute_loss(pred, targets.to(device)) # loss scaled by batch_size File "/home/data/yolov5-6.1/utils/loss.py", line 120, in __call__ tcls, tbox, indices, anchors = self.build_targets(p, targets) # targets File "/home/data/yolov5-6.1/utils/loss.py", line 217, 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 处理方式:https://blog.csdn.net/Thebest_jack/article/details/125649451

posted on   sinxsoft  阅读(1038)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述
点击右上角即可分享
微信分享提示