vietanhdev / anylabeling

Effortless AI-assisted data labeling with AI support from YOLO, Segment Anything (SAM+SAM2), MobileSAM!!
https://anylabeling.nrl.ai
GNU General Public License v3.0
2.27k stars 239 forks source link

Crash when removing a point #162

Closed scottix closed 9 months ago

scottix commented 9 months ago

Seems there is a crash when removing a point

Traceback (most recent call last): File "~/anylabel/venv/lib/python3.10/site-packages/anylabeling/views/labeling/label_widget.py", line 2400, in remove_selected_point if not self.canvas.h_hape.points: AttributeError: 'NoneType' object has no attribute 'points' Aborted

Fix

        if self.canvas.h_hape is not None and not self.canvas.h_hape.points: