Commit 14691251 authored by Shreyan Chowdhury's avatar Shreyan Chowdhury
Browse files

undo my extremely shoddy merge conflict resolution

parent 6343379c
......@@ -47,9 +47,25 @@ def pretrain_midlevel(hparams):
logger.info(f"tensorboard --logdir={CURR_RUN_PATH}")
exp = Experiment(name='midlevel', save_dir=CURR_RUN_PATH)
midlevel_configs()
logger.info(print_config())
def setup_config():
def print_config():
global config
st = '---------CONFIG--------\n'
for k in config.keys():
st += k+':'+str(config.get(k))+'\n'
return st
conf = hparams.config
if conf is not None:
conf_func = globals()[conf]
try:
conf_func()
except:
logger.error(f"Config {conf} not defined")
logger.info(print_config())
setup_config()
early_stop = EarlyStopping(
monitor=config['earlystopping_metric'],
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment