在yolov5训练完成后,运行detect.py进行推理测试时,出现这样的错误:

具体错误是下图:

解决方法:

1.点击下面这个报错的方法,进入:

2.修改成如下代码:

即可!!!!!!

OK完成!!!!

如果帮助到你,打赏一点吧,感谢

AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘相关推荐

  1. Python错误:AttributeError: 'generator' object has no attribute 'next'解决办法

    今天在学习生成器对象(generation object)运行以下代码时,遇到了一个错误: #定义生成器函数 def liebiao(): for x in range(10): yield x #函 ...

  2. AttributeError: 'dict' object has no attribute 'status_code'

    前端AJAX请求数据,提示错误:"AttributeError: 'dict' object has no attribute 'status_code'". 原因:是提示返回对象 ...

  3. Traceback (most recent call last): File AttributeError: 'NoneType' object has no attribute 'group'

    Traceback (most recent call last):File "<stdin>", line 1, in <module> Attribut ...

  4. 解决:AttributeError: ‘Graph‘ object has no attribute ‘number_of_selfloops‘

    解决:AttributeError: 'Graph' object has no attribute 'number_of_selfloops' 目录 解决:AttributeError: 'Grap ...

  5. AttributeError: ‘FPDF‘ object has no attribute ‘unifontsubset‘

    AttributeError: 'FPDF' object has no attribute 'unifontsubset' 目录 AttributeError: 'FPDF' object has ...

  6. AttributeError: ‘Series‘ object has no attribute ‘as_matrix‘

    AttributeError: 'Series' object has no attribute 'as_matrix' 问题: y_test = test_shifted["y_t+1&q ...

  7. AttributeError: ‘SVC‘ object has no attribute ‘_probA‘

    AttributeError: 'SVC' object has no attribute '_probA' 问题: # Save the Modle to file in the current w ...

  8. sklearn使用FeatureHasher处理字符串特征: AttributeError: ‘str‘ object has no attribute ‘items‘

    sklearn使用FeatureHasher处理字符串特征: AttributeError: 'str' object has no attribute 'items' 目录 sklearn使用Fea ...

  9. Keras问题“AttributeError: 'NoneType' object has no attribute 'update”解决

    BUG 在使用Keras训练模型时,在每个epoch完成后save_model时会报错 "AttributeError: 'NoneType' object has no attribute ...

最新文章

  1. 比特币现金是否失去了去中心化
  2. 【HDU2037】今年暑假不AC
  3. Jquery DataTable基本使用
  4. 解决虚拟机打开不了?提示VMware Workstation cannot connect to the virtual machine的问题
  5. 【BZOJ4517】排列计数,组合数+错排
  6. CCNP路由重分发(四)EIGRP-to-ISIS
  7. mysql 修改max_allowed_packet
  8. docker安装nginx并且部署前端项目
  9. 台式计算机能不能安装蓝牙驱动,win7电脑蓝牙驱动怎么安装,详细教您怎么安装...
  10. 桌面图标无故变成白色
  11. 基于BP神经网络控制+Simulink双闭环直流调速系统仿真
  12. 首席新媒体运营商学院创始人黎想:给新媒体运营的7点建议
  13. 鼠标没有唤醒计算机功能,怎么设置碰到鼠标电脑不会唤醒亮起来
  14. kafka安装及使用
  15. AOP注解和切入点表达式
  16. android,键盘遮挡了输入框,完美解决android键盘遮挡问题
  17. idea2023闪退原因
  18. NR SSB Beam Sweeping
  19. LXC、LXD、Docker的区别与联系
  20. 蓝桥杯 BASIC-3:字母图形

热门文章

  1. 【玩转嵌入式屏幕显示】(四)TFT-LCD屏幕显示英文字符(ASCII)和字符串
  2. flutter在IOS上显示英文
  3. 毕设新思路附源码 | 微医平台项目详细步骤
  4. 【云周刊】第171期:重磅推荐,神龙架构首次开箱直播评测
  5. linux人必须知道之人
  6. excel熵值法计算权重_熵值法的Excel基本步骤
  7. 计算机组成原理中op,计算机组成原理课程习题答案秦磊华
  8. 千呼万唤,小灰的新书出版了!
  9. 2020年最新一二三线互联网公司出炉,附校招和社招薪资行情
  10. 赠书福利丨被马斯克送上天的《银河帝国》和互联网江湖