labelme icon indicating copy to clipboard operation
labelme copied to clipboard

When changing the label value with label edit, the program crashes.

Open sangwoo89 opened this issue 2 years ago • 0 comments

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]

sangwoo89 avatar May 20 '22 09:05 sangwoo89