Pārlūkot izejas kodu

Fix _get_rgb_by_label

Kentaro Wada 3 gadi atpakaļ
vecāks
revīzija
57bde081d7
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      labelme/app.py

+ 1 - 0
labelme/app.py

@@ -1147,6 +1147,7 @@ class MainWindow(QtWidgets.QMainWindow):
             return self._config["label_colors"][label]
         elif self._config["default_shape_color"]:
             return self._config["default_shape_color"]
+        return (0, 255, 0)
 
     def remLabels(self, shapes):
         for shape in shapes: