Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

main.py 1.1 KB

You have to be logged in to leave a comment. Sign In
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
30
31
32
33
34
35
36
37
38
  1. from cnnClassifier import logger
  2. from cnnClassifier.pipeline.stage_01_data_ingestion import DataIngestionTrainingPipeline
  3. from cnnClassifier.pipeline.stage_02_prepare_base_model import PrepareBaseModelTrainingPipeline
  4. from cnnClassifier.pipeline.stage_03_model_trainer import ModelTrainingPipeline
  5. STAGE_NAME = "Data Ingestion Stage"
  6. try:
  7. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  8. obj = DataIngestionTrainingPipeline()
  9. obj.main()
  10. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  11. except Exception as e:
  12. logger.exception(e)
  13. raise e
  14. STAGE_NAME = "Prepare Base Model"
  15. try:
  16. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  17. obj = PrepareBaseModelTrainingPipeline()
  18. obj.main()
  19. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  20. except Exception as e:
  21. logger.exception(e)
  22. raise e
  23. STAGE_NAME = "Training"
  24. try:
  25. logger.info(f">>>>>> stage {STAGE_NAME} started <<<<<<")
  26. obj = ModelTrainingPipeline()
  27. obj.main()
  28. logger.info(f">>>>>> stage {STAGE_NAME} completed <<<<<<\n\nx==========x")
  29. except Exception as e:
  30. logger.exception(e)
  31. raise e
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...