AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' error handling

YOLOV5-6.1AttributeError: 'Upsample' object has no attribute 'recompute_scale_factor' error handling

  • This error is reported for the Acaonda environment configuration error
  • Click on the error
    insert image description here
  • Go to upsampling.py
  • Change the forward function, copy it again, and delete the following line of code

insert image description here

Guess you like

Origin blog.csdn.net/qq_42578742/article/details/123582773