Github 项目推荐 | TensorFlow 项目模板架构最佳实践

时间:2022-05-04
本文章向大家介绍Github 项目推荐 | TensorFlow 项目模板架构最佳实践,主要内容包括Github 地址:、内容列表:、项目结构、文件结构、基本概念、基础应用、原理机制和需要注意的事项等,并结合实例形式分析了其使用技巧,希望通过本文能帮助到大家理解应用这部分内容。

一个简单且设计良好的架构对于任何深度学习项目来讲非常有必要,这里的 Tensorflow 项目模板经过了大量的实践,拥有简单性、良好的文件结构以及 OOP 设计等特点。该库的模板能够帮助开发者快速开启项目,使其更加专注于核心目标(模型、训练等).

Github 地址:

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