To solve them, line 1035 should be replaced by result_path = os.path.join(self.defaultSaveDir,os.path.splitext(imgFileName)[0]) result_path += '_mask.png' and line 1047 should be replaced by savefilename = os.path.join(self.defaultSaveDir,os.path.splitext(imgFileName)[0]) # the mask image will be save as file_mask.jpg etc. savefilename += '.xml'.
hello, I'm afraid that line 1035(https://github.com/lzx1413/labelImgPlus/blob/master/labelImg.py#L1035) and line 1047(https://github.com/lzx1413/labelImgPlus/blob/master/labelImg.py#L1047) cause the issue of IOError mentioned on the title.
To solve them, line 1035 should be replaced by
result_path = os.path.join(self.defaultSaveDir,os.path.splitext(imgFileName)[0]) result_path += '_mask.png'
and line 1047 should be replaced bysavefilename = os.path.join(self.defaultSaveDir,os.path.splitext(imgFileName)[0]) # the mask image will be save as file_mask.jpg etc. savefilename += '.xml'
.