Tag Archives: YOLOv5 Model training error

[Solved] YOLOv5 Model training error: TypeError: new(): invalid data type β€˜str’

After modifying the anchors in yolov5s.yaml, I made an error report when I retrained. After carefully looking at the numbers in “[]”, I found that the reason was as follows:
the number in “[]” πŸ‘‡ Here is the original configuration file

πŸ‘‡ This is my revised version of

because of the lack of “,” leading to continuous error reporting, we must be more careful and encourage each other