Skip to content

Commit

Permalink
Update app.py
Browse files Browse the repository at this point in the history
修改了转换标签取消选中闪退问题
  • Loading branch information
airsimonhan committed Nov 24, 2021
1 parent cd1842b commit 97fe475
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions labelme/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2070,11 +2070,13 @@ def openjson(self, _value=False,):
self.tr("%s - Choose Json File") % __appname__,
self.singe_path,
filters,

)
self.singe_path = osp.dirname(filename[0][0])
for file in filename[0]:
json_to_dataset.main(file)
try:
self.singe_path = osp.dirname(filename[0][0])
for file in filename[0]:
json_to_dataset.main(file)
except:
pass

@property
def imageList(self):
Expand Down

0 comments on commit 97fe475

Please sign in to comment.