Explorar o código

Fix _get_rgb_by_label

Kentaro Wada %!s(int64=3) %!d(string=hai) anos
pai
achega
57bde081d7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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: