Gan simple template
Structure
- Logic
- Logic Modules are only used together in root python file like train.py. They will not import each other.
Logger
only used intrainer.py
to record the training process. In other files, we useprint
- Package
-
loader
: dataset and dataloader -
models
: networks, loss and metrics -
trainer
: training process, save records(checkpoint, results...)train
- receive each epoch records and log it together.
- save checkpoint and visualized results.
train_epoch
- save records to
log
and return.
- save records to
-
utils
: frequently used functions, arguments
- Execution
train.py
: main train logicdebug.py
: test each package independently