Browse Source

Initialize self._thread by None

Kentaro Wada 2 năm trước cách đây
mục cha
commit
c5e0030529
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      labelme/ai/models/segment_anything.py

+ 2 - 0
labelme/ai/models/segment_anything.py

@@ -23,6 +23,8 @@ class SegmentAnythingModel:
         self._lock = threading.Lock()
         self._image_embedding_cache = collections.OrderedDict()
 
+        self._thread = None
+
     def set_image(self, image: np.ndarray):
         with self._lock:
             self._image = image