Changed .lif to .xml, allowing annotation I/O

LabelImg cannot read .lif files, but saving the annotations as .xml allows the annotations to be read when switching between images or reopening previously annotated images.
This commit is contained in:
Conlon Novak 2017-05-30 15:36:43 -04:00 committed by GitHub
parent 26a50c36bc
commit f5106a2a6a

View File

@ -18,7 +18,7 @@ class LabelFileError(Exception):
class LabelFile(object): class LabelFile(object):
# It might be changed as window creates # It might be changed as window creates
suffix = '.lif' suffix = '.xml'
def __init__(self, filename=None): def __init__(self, filename=None):
self.shapes = () self.shapes = ()