-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
29 lines (26 loc) · 875 Bytes
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from src.cnnClassifier import logger
from src.cnnClassifier.pipeline.stage_01_data_ingestion import (
DataIngestionTrainingPipeline,
)
from src.cnnClassifier.pipeline.stage_02_prep_base_model import (
PrepareBaseModelTrainingPipeline,
)
STAGE_NAME = "Data Ingestion Stage"
try:
logger.info(f">>>>>> Started: {STAGE_NAME} <<<<<<")
data_ings = DataIngestionTrainingPipeline()
data_ings.main()
logger.info(f">>>>>> Finished: {STAGE_NAME} <<<<<<\nx=========================x")
except Exception as e:
logger.exception(e)
raise e
STAGE_NAME = "Prepare Base Model"
try:
logger.info("*************************")
logger.info(f">>>>>> Started: {STAGE_NAME} <<<<<<")
obj = PrepareBaseModelTrainingPipeline()
obj.main()
logger.info(f">>>>>> Finished: {STAGE_NAME} <<<<<<")
except Exception as e:
logger.exception(e)
raise e