From 7073205a95d995ba88f6bff45568771881f30250 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Tue, 22 Aug 2023 23:06:30 +0900 Subject: [PATCH] Export file without extention in its name --- labelme/cli/export_json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/labelme/cli/export_json.py b/labelme/cli/export_json.py index 6272d85cf..d8a740e60 100644 --- a/labelme/cli/export_json.py +++ b/labelme/cli/export_json.py @@ -20,7 +20,7 @@ def main(): json_file = args.json_file if args.out is None: - out_dir = osp.basename(json_file).replace(".", "_") + out_dir = osp.splitext(osp.basename(json_file))[0] out_dir = osp.join(osp.dirname(json_file), out_dir) else: out_dir = args.out