AttributeError: module 'labelme.utils' has no attribute 'draw_label'

实现labelme批量json_to_dataset方法中

https://blog.csdn.net/yql_617540298/article/details/81110685#comments

看到有人问:AttributeError: module 'labelme.utils' has no attribute 'draw_label'出现了这个问题,由于我这里没有出现这个问题,所以我只能给出一个思路,然后希望能够有所帮助。

这个问题:由于labelme.utils中没有draw_label这个模块,看一下之前给出的代码:

第65行调用的draw_label(),而这个在10行引用

如果出现AttributeError: module 'labelme.utils' has no attribute 'draw_label'这个错误,原因应该在于import中没有导入进来这个模块,所以,需要找到labelme.utils

之前,我已经给出我的安装路径:G:\Anaconda\Lib\site-packages\labelme

猜你喜欢

转载自blog.csdn.net/yql_617540298/article/details/104182777