PhamQuocHuy1101 / transfer-learning-template

The simple pytorch template for transfer learning
5 stars 0 forks source link

Missing logging.basicConfig() in train.py #14

Closed blueclowd closed 1 year ago

blueclowd commented 1 year ago

Hi sir, is there a way to enable the logging system cause the logging.basicConfig() in the main doesn't seem to work. I add the logging.basicConfig(level=logging.INFO) at the beginning of the script to enable the logging in train.py.

PhamQuocHuy1101 commented 1 year ago

logging.basicConfig(filename=config.store.log, level=logging.INFO, filemode='w', format='%(levelname)s - %(message)s')

The log store as the config.store.log, I put these codes in train.py

blueclowd commented 1 year ago

I see. I didn't aware that it export the result to external files rather than standard system output. Thanks