We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8aa4dbe commit 24d8f37Copy full SHA for 24d8f37
1 file changed
widgets/mainwindow.py
@@ -172,13 +172,19 @@ def init_segment_anything(self):
172
173
if not self.use_segment_anything:
174
websites = 'https://github.com/facebookresearch/segment-anything#model-checkpoints'
175
- self.heart_beat_timer.stop()
+ try:
176
+ self.heart_beat_timer.stop()
177
+ except:
178
+ pass
179
QtWidgets.QMessageBox.warning(
180
self, 'Warning',
181
f'The checkpoint of [Segment anything] not existed. If you want use quick annotate, '
182
f'please download from {websites}'
183
)
- self.heart_beat_timer.start(2000)
184
185
+ self.heart_beat_timer.start(2000)
186
187
188
189
if self.use_segment_anything:
190
if self.segany.device != 'cpu':
0 commit comments