DPyTorchminiconda anzhuangpythonexe DPythonPython and pycharmprojectyolov5-hatdetectpyNamespaceweights=weightsbestpt source=000295jpg img_size=640 conf_thres=025 iou_thres=045 device= view_img=True sa
The error message suggests that there is an AttributeError in the code, specifically with the 'Upsample' object not having the attribute 'recompute_scale_factor'. This could be due to a version mismatch between the PyTorch library and the codebase.
One possible solution could be to update the PyTorch library to the latest version and try running the code again. Alternatively, if the codebase is dependent on a specific version of PyTorch, the code may need to be modified to work with the current version of PyTorch
原文地址: https://www.cveoy.top/t/topic/crpk 著作权归作者所有。请勿转载和采集!