From 1c86d642574dbad36ef31fc968d05d0a9cbe1aa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CHitbee-dev=E2=80=9D?= <“ckim.esw@gmail.com”> Date: Thu, 28 Mar 2024 20:18:00 +0900 Subject: [PATCH] :bug: Bugfix: save_dir TypeError --- label_convert/coco_to_labelImg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/label_convert/coco_to_labelImg.py b/label_convert/coco_to_labelImg.py index d9a2a69..760b0b5 100644 --- a/label_convert/coco_to_labelImg.py +++ b/label_convert/coco_to_labelImg.py @@ -29,7 +29,7 @@ def __init__(self, data_dir: Optional[str] = None, save_dir: Optional[str] = Non self.verify_exists(self.train2017_dir) self.verify_exists(self.val2017_dir) - self.save_dir = save_dir + self.save_dir = Path(save_dir) if save_dir is None: self.save_dir = ( self.data_dir.parent / f"{self.data_dir.name}_labelImg_format"