Skip to content

Commit 52f768e

Browse files
committed
removing test images, fixing typos
1 parent fc2d86d commit 52f768e

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

DLTA-AI-app/labelme/app.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,7 @@ def toggleDrawMode(self, edit=True, createMode="polygon"):
14201420
self.actions.editMode.setEnabled(not edit)
14211421

14221422
def turnOFF_SAM(self):
1423-
if self.sam_model_comboBox.currentText() != "Select Model (SAM disabled)":
1423+
if self.sam_model_comboBox.currentText() != "Select Model (SAM disabledd)":
14241424
self.sam_clear_annotation_button_clicked()
14251425
self.sam_buttons_colors('x')
14261426
self.set_sam_toolbar_enable(False)
@@ -1873,7 +1873,7 @@ def interpolate_with_sam(self, idsLISTX):
18731873
self.waitWindow(
18741874
visible=True, text=f'Wait a second.\nIDs are being interpolated with SAM...')
18751875

1876-
if self.sam_model_comboBox.currentText() == "Select Model (SAM disable)":
1876+
if self.sam_model_comboBox.currentText() == "Select Model (SAM disabled)":
18771877
helpers.OKmsgBox("SAM is disabled",
18781878
f"SAM is disabled.\nPlease enable SAM.")
18791879
return
@@ -4789,8 +4789,8 @@ def addSamControls(self):
47894789
# add a dropdown menu to select the sam model
47904790
self.sam_model_comboBox = QtWidgets.QComboBox()
47914791
self.sam_model_comboBox.setAccessibleName("sam_model_comboBox")
4792-
# add a label inside the combobox that says "Select Model (SAM disable)" and make it unselectable
4793-
self.sam_model_comboBox.addItem("Select Model (SAM disabled)")
4792+
# add a label inside the combobox that says "Select Model (SAM disabled)" and make it unselectable
4793+
self.sam_model_comboBox.addItem("Select Model (SAM disabledd)")
47944794
self.sam_model_comboBox.addItems(self.sam_models())
47954795
self.sam_model_comboBox.currentIndexChanged.connect(
47964796
self.sam_model_comboBox_changed)
@@ -4938,7 +4938,7 @@ def updateSamControls(self):
49384938
# remove all items from the combobox
49394939
self.sam_model_comboBox.clear()
49404940
# call the sam_models function to get all the models
4941-
self.sam_model_comboBox.addItem("Select Model (SAM disable)")
4941+
self.sam_model_comboBox.addItem("Select Model (SAM disabled)")
49424942
self.sam_model_comboBox.addItems(self.sam_models())
49434943
# print("updated sam models")
49444944

@@ -4947,7 +4947,7 @@ def sam_reset_button_clicked(self):
49474947
self.createMode_options()
49484948

49494949
def sam_enhance_annotation_button_clicked(self):
4950-
if self.sam_model_comboBox.currentText() == "Select Model (SAM disable)" or len(self.canvas.selectedShapes) == 0:
4950+
if self.sam_model_comboBox.currentText() == "Select Model (SAM disabled)" or len(self.canvas.selectedShapes) == 0:
49514951
helpers.OKmsgBox("No shape selected or SAM is disabled",
49524952
"No shape selected or SAM is disabled.\nPlease select a shape and enable SAM.")
49534953
return
@@ -4997,7 +4997,7 @@ def sam_model_comboBox_changed(self):
49974997
self.canvas.cancelManualDrawing()
49984998
self.sam_clear_annotation_button_clicked()
49994999
self.sam_buttons_colors("X")
5000-
if self.sam_model_comboBox.currentText() == "Select Model (SAM disable)":
5000+
if self.sam_model_comboBox.currentText() == "Select Model (SAM disabled)":
50015001
self.createMode_options()
50025002
self.set_sam_toolbar_enable(False)
50035003
return
@@ -5067,7 +5067,7 @@ def sam_buttons_colors(self, mode):
50675067
style_sheet_const + replace_style + ";}" + hover_const + replace_hover + ";}" + disabled_const)
50685068

50695069
setEnabled = False if self.sam_model_comboBox.currentText(
5070-
) == "Select Model (SAM disable)" else True
5070+
) == "Select Model (SAM disabled)" else True
50715071
if setEnabled:
50725072
return
50735073
self.sam_add_point_button.setEnabled(setEnabled)
@@ -5227,7 +5227,7 @@ def SAM_points_and_labels_from_coordinates(self, coordinates):
52275227
def run_sam_model(self):
52285228

52295229
# print("run sam model")
5230-
if self.sam_predictor is None or self.sam_model_comboBox.currentText() == "Select Model (SAM disable)":
5230+
if self.sam_predictor is None or self.sam_model_comboBox.currentText() == "Select Model (SAM disabled)":
52315231
print("please select a model")
52325232
return
52335233

DLTA-AI-app/test_imgs/05.jpg

-692 KB
Binary file not shown.

DLTA-AI-app/test_imgs/brain.png

-361 KB
Binary file not shown.

DLTA-AI-app/test_imgs/chess.png

-1.01 MB
Binary file not shown.

DLTA-AI-app/test_imgs/image.webp

-50.5 KB
Binary file not shown.

image.png

-885 KB
Binary file not shown.

0 commit comments

Comments
 (0)