labelimg

in labelimg, reopening the app resets classes.txt


I have a folder containing 1000 photos. And I tagged 100 photos with labelimg. In three classes: "car", "motorcycle" and "truck". But every time I open the labelimg, the previous tags are deleted from "classes.txt" and there is only the new tag that I created. And when I open the previous tagged photos in the labelimg, it gives list index out of range error and then labelimg will closed.

the error:

label = self.classes[int(class_index)]
IndexError: list index out of range

How can I have previous classes each time?

Thank you for your help🌺


Solution

  • You can use Label Studio, it is much better than labelImg

    Install the packege:

    pip install -U label-studio
    

    Lunch it!

    label-studio