labelImg改设置点击save闪退 TypeError: expected str, bytes or os.PathLike object, not NoneType

报错信息:

Traceback (most recent call last):
  File "C:\Users\willin\.conda\envs\pytorch\lib\site-packages\labelImg\labelImg.py", line 1374, in saveFile
    imgFileDir = os.path.dirname(self.filePath)
  File "C:\Users\willin\.conda\envs\pytorch\lib\ntpath.py", line 223, in dirname
    return split(p)[0]
  File "C:\Users\willin\.conda\envs\pytorch\lib\ntpath.py", line 185, in split
    p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType

解决方法:
启动labelImg后先点击change save dir,选择一个文件夹
labelImg改设置点击save闪退 TypeError: expected str, bytes or os.PathLike object, not NoneType_第1张图片
之后可以正常更改设置,保存。

你可能感兴趣的:(python,pytorch,深度学习)