当前位置:   article > 正文

labelme使用教程_labelme打开图片闪退

labelme打开图片闪退

标注之后labelme出现闪退:
Traceback (most recent call last):
File “D:\install\anaconda\lib\site-packages\labelme\app.py”, line 1364, in newShape
self.addLabel(shape)
File “D:\install\anaconda\lib\site-packages\labelme\app.py”, line 1139, in addLabel
self.labelList.addItem(label_list_item)
File “D:\install\anaconda\lib\site-packages\labelme\widgets\label_list_widget.py”, line 167, in addItem
item.setSizeHint(self.itemDelegate().sizeHint(None, None))
TypeError: setSizeHint(self, QSize): argument 1 has unexpected type ‘QSizeF’

解决方法:
先安装python3.8,再安装pyqt5

conda create --name=labelme python=3.8
pip install pyqt5
  • 1
  • 2

相关资料:https://www.bilibili.com/video/BV1xT4y1j7A9/?from=search&seid=2903997967250679674

通过labelme生成的json文件得到mask: https://blog.csdn.net/qq_48355075/article/details/122805677

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/304390
推荐阅读
  

闽ICP备14008679号