YOLOV5 | AttributeError: ‘Upsample‘ object has no attribute ‘recompute_scale_factor‘ 问题解决 亲测有效
报错:AttributeError:‘Upsample’objecthasnoattribute‘recompute_scale_factor’如图:解决方法1.点击报错行该路径,进入编辑页2.将原代码(153-154行)修改为如下所示(155行):即:returnF.interpolate(input,self.size,self.scale_factor,self.mode,self.alig