AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘报错处理

YOLOV5-6.1AttributeError: ‘Upsample’ object has no attribute 'recompute_scale_factor’报错处理

  • 本报错为Acaonda环境配置报错
  • 点击报错里的
    在这里插入图片描述
  • 进入到upsampling.py
  • 更改forward函数,复制一遍,去掉下面一行的代码即可

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_42578742/article/details/123582773