[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

Read More: