Merge pull request #9 from XunChangqing/master
bugfix: can not load xml with multiple dots file name such as xxx.xxx.ext
This commit is contained in:
commit
a3557f2f98
@ -706,7 +706,7 @@ class MainWindow(QMainWindow, WindowMixin):
|
||||
## Label xml file and show bound box according to its filename
|
||||
if self.usingPascalVocFormat is True and \
|
||||
self.defaultSaveDir is not None:
|
||||
basename = os.path.basename(self.filename).split('.')[:-1][0]
|
||||
basename = os.path.basename(os.path.splitext(self.filename)[0])
|
||||
xmlPath = os.path.join(self.defaultSaveDir, basename + '.xml')
|
||||
self.loadPascalXMLByFilename(xmlPath)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user