lzx1413 / labelImgPlus

:metal: LabelImgPlus is a graphical image annotation tool which supports CLS,DET and SEG
210 stars 51 forks source link

IOError: [Errno 2] No such file or directory: #11

Open zhiweichen0012 opened 5 years ago

zhiweichen0012 commented 5 years ago

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 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'.

lzx1413 commented 5 years ago

thanks, I will correct this