From 97fe4752c13a349732dc895ee1cb0b4fa4cd13bf Mon Sep 17 00:00:00 2001 From: Simon Han Date: Wed, 24 Nov 2021 21:00:57 +0800 Subject: [PATCH] Update app.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修改了转换标签取消选中闪退问题 --- labelme/app.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/labelme/app.py b/labelme/app.py index c429d55..a1e45f0 100644 --- a/labelme/app.py +++ b/labelme/app.py @@ -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):