From a0c93138be3d369bd90520b33599a46bb8a88c13 Mon Sep 17 00:00:00 2001 From: Utpal Paul Date: Mon, 27 Nov 2023 09:26:33 +0600 Subject: [PATCH] Data Ingestion Modified --- notebooks/data_ingestion.ipynb | 2 +- src/wasteDetection/components/data_ingestion.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/notebooks/data_ingestion.ipynb b/notebooks/data_ingestion.ipynb index e93550e..d9f639c 100644 --- a/notebooks/data_ingestion.ipynb +++ b/notebooks/data_ingestion.ipynb @@ -152,8 +152,8 @@ " Preprocess the raw dataset\n", " '''\n", " if os.path.exists(self.config.raw_dataset_dir):\n", - " create_directories([self.config.dataset_dir])\n", " try:\n", + " create_directories([self.config.dataset_dir])\n", " for root, dirs, files in os.walk(self.config.raw_dataset_dir):\n", " for file in files:\n", " \n", diff --git a/src/wasteDetection/components/data_ingestion.py b/src/wasteDetection/components/data_ingestion.py index 8a3a925..d8ed63d 100644 --- a/src/wasteDetection/components/data_ingestion.py +++ b/src/wasteDetection/components/data_ingestion.py @@ -39,8 +39,8 @@ def _preprocess_dataset(self): Preprocess the raw dataset ''' if os.path.exists(self.config.raw_dataset_dir): - create_directories([self.config.dataset_dir]) try: + create_directories([self.config.dataset_dir]) for root, dirs, files in os.walk(self.config.raw_dataset_dir): for file in files: