yolo问题:RuntimeError: result type Float can‘t be cast to the desired output type __int64

解决办法:
loss.py在utils文件夹下,ctrl+f搜索gain,找到gain = torch.ones(7, device=targets.device),将其修改为gain = torch.ones(7, device=targets.device).long(),问题解决

RuntimeError: result type Float can‘t be cast to the desired output type __int64相关推荐

  1. YOLOV5报错:RuntimeError: result type Float can‘t be cast to the desired output type long int

    YOLOV5训练时报错: Traceback (most recent call last):   File "train.py", line 626, in <module ...

  2. 训练yolo时报错RuntimeError: result type Float can‘t be cast to the desired output type __int64个人解决方案

    运行YOLOv5 6.1和yolor的时候,训练都没能正常运行,均出现了如下错误: AutoAnchor: 5.00 anchors/target, 1.000 Best Possible Recal ...

  3. 解决Yolov5的RuntimeError: result type Float can‘t be cast to the desired output type long int 问题

    在yolov5中,直接下载github上的代码可能出现无法运行的情况,会报错 RuntimeError: result type Float can't be cast to the desired ...

  4. YOLOv5训练报错:result type Float can‘t be cast to the desired output type __int64

    记录一个报错: 因为把Pytorch版本从1.8.0更新到1.13.1,YOLOv5-6.1版本的训练代码报错: RuntimeError: result type Float can't be ca ...

  5. 解决错误:RuntimeError: result type Float can‘t be cast to the desired output type __int64

    在运行yolov5 train.py时出现了这个错误 解决方式: 将loss.py中gain = torch.ones(7, device=targets.device)改为gain = torch. ...

  6. 【Error Logs】YoloV5出现RuntimeError: result type Float can‘t be cast to the desired output

    问题描述 在训练 yolov5做简单的识别的时候出现,错误:RuntimeError: result type Float can't be cast to the desired output ty ...

  7. python报错:TypeError: cant multiply sequence by non-int of type float(bug)(csdn标题没法用英文引号,以后注意别搜引号)

    python报错:TypeError: can't multiply sequence by non-int of type 'float' 注意:csdn标题没法用英文引号,以后注意别搜引号!!!! ...

  8. Xubuntu22.04装有道词典:报错has unexpected type “float“(一百四十一)

    注意:python版本必须是python3.10以上才能运行. 1.前言: 在高版本Xubuntu22.04安装有道词典后,启动时,界面无法启动,通过手动启动后,发现以下报错log. # youdao ...

  9. 使用PyTorch前向运算时出现“RuntimeError: Expected object of scalar type Long but got scalar type Float for ……”

    1 问题描述 今天在使用PyTorch搭建模型时,出现了一个问题: RuntimeError: Expected object of scalar type Long but got scalar t ...

最新文章

  1. VC++ 6.0 C8051F340 MFC programming note
  2. 【Java报错】记录一次调用递归方法导致的 StackOverFlowError 及如何重构递归代码避免栈溢出
  3. boost::leaf::capture用法的测试程序
  4. 什么时候使用路由再分配?
  5. c语言的c语句ab2,当初我在重庆交通大学读书的时候C语言成绩也相当不错的
  6. Python分离GIF动画成为多帧图像
  7. 区块链教育平台Metisedu将于4月推出beta版本
  8. jquery 分页插件
  9. Echarts 折线图最后一个点发光闪烁效果
  10. pywin32库 : Python 操作 windows 系统 API
  11. 浮点数计算机组成原理问题,计算机组成原理习题及答案
  12. 互联网日报 | 美团外卖日订单量突破4000万个;《王者荣耀》动画番剧启动;360金融更名为360数科...
  13. html中电脑自动输入,电脑一直自动打字怎么办
  14. 3322动态域名,nat123动态域名解析,dnspod域名解析,等相关免费动态域名解析软件对比
  15. 四、异常(高琪java300集+java从入门到精通笔记)
  16. java微信分享朋友圈_Java实现微信公众平台朋友圈分享功能详细代码
  17. reset清除所有浏览器默认样式
  18. DirSync: List of attributes that are synced by the Azure Active Directory Sync Tool
  19. ChatGPT真的会取代程序员吗?
  20. springboot 项目起步讲解及自动装配原理

热门文章

  1. GIS原理篇 Coverage
  2. java jmap_Java常用分析工具之jmap
  3. 分享一个visual assist x 2476 和2488(压缩包里有你想要的)喜欢的话,就点个赞(06.05重新分享)
  4. 珍爱生命,拒绝session。
  5. apache虚拟主机配置无效
  6. 如何手动触发onchange事件?
  7. (附源码)ssm华立学院门户网站 毕业设计 290011
  8. siege 用户登录_Siege详解
  9. 使用siege执行压力测试
  10. CSS常用尺寸单位含义总结