Procházet zdrojové kódy

Support flag only annotation for image classification

Kentaro Wada před 7 roky
rodič
revize
f96f5f2d41
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      labelme/app.py

+ 1 - 1
labelme/app.py

@@ -1042,7 +1042,7 @@ class MainWindow(QtWidgets.QMainWindow, WindowMixin):
 
     def saveFile(self, _value=False):
         assert not self.image.isNull(), "cannot save empty image"
-        if self.hasLabels():
+        if self._config['flags'] or self.hasLabels():
             if self.labelFile:
                 # DL20180323 - overwrite when in directory
                 self._saveFile(self.labelFile.filename)