CNNTrainer_emptyConfig.py 702 Bytes
Newer Older
1 2
import logging
import mxnet as mx
3
import CNNCreator_emptyConfig
Nicola Gatto's avatar
Nicola Gatto committed
4
import CNNDataLoader_emptyConfig
5
import CNNSupervisedTrainer_emptyConfig
6 7 8 9

if __name__ == "__main__":
    logging.basicConfig(level=logging.DEBUG)
    logger = logging.getLogger()
10
    handler = logging.FileHandler("train.log", "w", encoding=None, delay="true")
11 12
    logger.addHandler(handler)

Nicola Gatto's avatar
Nicola Gatto committed
13
    emptyConfig_creator = CNNCreator_emptyConfig.CNNCreator_emptyConfig()
14 15 16 17 18
    emptyConfig_loader = CNNDataLoader_emptyConfig.CNNDataLoader_emptyConfig()
    emptyConfig_trainer = CNNSupervisedTrainer_emptyConfig.CNNSupervisedTrainer_emptyConfig(
        emptyConfig_loader,
        emptyConfig_creator
    )
Nicola Gatto's avatar
Nicola Gatto committed
19 20

    emptyConfig_trainer.train(
21
    )