Record YoloV5 UnicodeDecodeError GBK decodeError resolution 39/100 published article QQ_16763983 did not select any file finally put the data set standard, began training, and then found repeated occurrences of the following error:UnicodeDecodeError: 'gbk' codec can't decode byte 0x8b in position 233: illegal multibyte sequence
However, the strange thing is that the position of each error is not the same! After all, there was a problem reading the training set and test set images.The path of the configuration file was changed AGAIN and AGAIN, the default parameters were changed AGAIN and AGAIN, the whole yoloV5 model was installed on GitHub AGAIN and consulted by many seniors, the final result was — AGAIN!!Since the problem is the import of the dataset, take a look at my.yaml fileIn the final modification, when I removed the blank lines of line 4, line 7, and line 10, I was surprised to find that it was running! So, as a final note, this may not be a one-size-fits-all solution: If you get the same error, check to see if your yamL file is correct. If possible, delete the space between lines, especially the last line.
UnicodeDecodeError: ‘GBK’ codec can’t decode byte 0x8b in position 233 UnicodeDecodeError: ‘GBK’ codec can’t decode byte 0x8b in position 233 The illegal multibyte sequence is correct. After all, there was a problem reading the training set and test set images. Insert the image description here is really like changing the path of configuration file AGAIN and AGAIN, changing the default parameter AGAIN and AGAIN, the whole model of YoloV5 is installed on GitHub AGAIN and asked many students, finally the result is — AGAIN!! Insert image description here Since the problem was in the data set import, go to my.yaml file insert image description here In the last modification, when I removed the blank lines of line 4, line 7 and line 10, I was surprised to find that it was running! Insert picture description here Insert picture description here Insert picture description here So, to summarise this may not be the method of universal: if you encounter the same error, first to see if you make your own yaml files is correct, as far as possible put a blank line between line and line out, especially in the last line don’t be left blank.
Markdown 1475 word count 20 lines current line 1, current column 0HTML 386 word count 7 paragraphs