Эх сурвалжийг харах

Initialize self._thread by None

Kentaro Wada 2 жил өмнө
parent
commit
c5e0030529

+ 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