From f2f8a564e0fd57aee3455d9ef0e1549da0a81033 Mon Sep 17 00:00:00 2001 From: James Gallagher Date: Tue, 13 Jun 2023 11:38:19 +0100 Subject: [PATCH] run linter --- supervision/classification/core.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/supervision/classification/core.py b/supervision/classification/core.py index fba0a245..97bb9efe 100644 --- a/supervision/classification/core.py +++ b/supervision/classification/core.py @@ -164,9 +164,7 @@ class ClassificationDataset(BaseDataset): os.makedirs(output_directory_path) for class_name in self.classes: - if not os.path.exists( - os.path.join(output_directory_path, class_name) - ): + if not os.path.exists(os.path.join(output_directory_path, class_name)): os.makedirs(os.path.join(output_directory_path, class_name)) for image in self.annotations: @@ -176,9 +174,7 @@ class ClassificationDataset(BaseDataset): full_dir = os.path.join(root_directory_path, image) cv2.imwrite( - os.path.join( - output_directory_path, class_name, image - ), + os.path.join(output_directory_path, class_name, image), cv2.imread(full_dir), )