labelme
labelme copied to clipboard
When changing the label value with label edit, the program crashes.
app.py (1171 row) item = self.uniqLabelList.findItemsByLabel(label)[0] there is out of range error.
add code.. good working.
def _get_rgb_by_label(self, label): if self._config["shape_color"] == "auto": if not self.uniqLabelList.findItemsByLabel(label): item = QtWidgets.QListWidgetItem() item.setData(Qt.UserRole, label) self.uniqLabelList.addItem(item)
item = self.uniqLabelList.findItemsByLabel(label)[0]