记录yolov5训练报错问题

  1. AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘
    解决方法
  2. Pytorch中报错RuntimeError: The size of tensor a (60) must match the size of tensor b (56)
    解决办法:
  3. 解决警告UserWarning: torch.meshgrid: in an upcoming release, it will be required to
    。。。。
    解决方法:
    将return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
    修改为return _VF.meshgrid(tensors, **kwargs, indexing = ‘ij’) # type: ignore[attr-defined],警告解除

你可能感兴趣的:(目标检测,yolov5)