Preface: using yolov5-6.0 version, you want to detect several pictures, but there is a problem in the title. It can be seen that the upsampling function is not quite right. Now record the solution.
Version: yolov5-6.0, python3.8, pytorch1.11.0
1. Problem recurrence
2. Official website solution
This problem first appeared in yolov5 and is related to pytoch 1.11.0.
In other words, this problem may be encountered in both train and detect. The following is the solution to reduce the pytoch version to less than 10.
Then the blogger made a fix for PyTorch version 1.11.0
But it doesn’t seem to be solved. The my torch version is 1.11.0, but this problem still occurs.
The solution of modifying the upper sampling function given by netizens.
Just Comment out this part below.
It’s really solved.
Read More:
- [Solved] Pytorch-transformers Error: AttributeError: ‘str‘ object has no attribute ‘shape‘
- [Solved] AttributeError: ‘_IncompatibleKeys‘ object has no attribute ‘parameters‘
- [Solved] django AttributeError: ‘UserComment‘ object has no attribute ‘save‘
- [Solved] AttributeError: ‘str‘ object has no attribute ‘decode‘
- [Solved] AttributeError: ‘DataParallel‘ object has no attribute ‘save‘
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘astype‘
- [Solved] AttributeError: ‘NoneType‘ object has no attribute ‘append‘
- [Solved] Django Error: Attributeerror: ‘wsgirequest’ object has no attribute ‘is_ajax ‘
- [Solved] Python Keras Error: AttributeError: ‘Sequential‘ object has no attribute ‘predict_classes‘
- [Solved] LeNet Script Train Error: AttributeError: ‘DictIterator’ object has no attribute ‘get_next’
- [Solved] AttributeError: DataFrame object has no attribute’xxx’
- [Modified] AttributeError: ‘socket‘ object has no attribute ‘ioctl‘ python linux
- [Solved] Pycharm error: attributeerror: ‘Htmlparser’ object has no attribute ‘unescape’
- AttributeError: DatetimeProperties object has no attribute
- [Solved] AttributeError: ‘_IncompatibleKeys’ object has no attribute
- [Solved] AttributeError: ‘DataFrame‘ object has no attribute ‘map‘
- [Solved] vpython: AttributeError: ‘box‘ object has no attribute ‘idx‘
- Python 3.7 Error: AttributeError: ‘str‘ object has no attribute ‘decode‘ [How to Solve]
- [Solved] AttributeError: ‘DataFrame‘ object has no attribute ‘tolist‘
- [Solved] Paramiko error: AttributeError: ‘NoneType’ object has no attribute ‘time’