labelImge crashes - crashes after selecting a folder using Change Save Dir

1. Problem recurrence

To download the labeled yolo format dataset, you need to use labelImg to view it. When you click Change Save Dir to select the folder where the label is located, the software crashes

Two, the solution

Because there is no "classes.txt" file in the downloaded data set label, this file stores the label, you need to create a new "classes.txt" file and write the label into the folder where the label is located, and you can read it successfully.

Before changing Save Dir, you need to open Dir to import pictures, otherwise it will still crash

3. Possible solutions for flashbacks caused by other reasons

  1. The Chinese path cannot appear in the labelImg software installation path. If it appears, change the English path
  2. Go to C:\Users\your username, delete the .labelImgSettings.pkl file, and run it again

Guess you like

Origin blog.csdn.net/qq_54827663/article/details/131304970