一个简单且设计良好的架构对于任何深度学习项目来讲非常有必要,这里的 Tensorflow 项目模板经过了大量的实践,拥有简单性、良好的文件结构以及 OOP 设计等特点。该库的模板能够帮助开发者快速开启项目,使其更加专注于核心目标(模型、训练等).
https://github.com/Mrgemy95/Tensorflow-Project-Template
├── base
│ ├── base_model.py - this file contains the abstract class of the model.
│ └── base_train.py - this file contains the abstract class of the trainer.
│
│
├── model - this folder contains any model of your project.
│ └── example_model.py
│
│
├── trainer - this folder contains trainers of your project.
│ └── example_trainer.py
│
├── mains - here's the main(s) of your project (you may need more than one main).
│ └── example_main.py - here's an example of main that is responsible for the whole pipeline.
│
├── data _loader
│ └── data_generator.py - here's the data_generator that is responsible for all data handling.
│
└── utils
├── logger.py
└── any_other_utils_you_need