updated args

This commit is contained in:
William Falcon 2019-06-25 18:29:16 -04:00
parent 242cccc234
commit 775ca3736b
2 changed files with 2 additions and 3 deletions

View File

@ -158,8 +158,8 @@ if __name__ == '__main__':
model_name = 'model_template'
# use default args
pdb.set_trace()
root_dir = os.path.split(os.path.dirname(sys.modules['__main__'].__file__))[0]
root_dir = os.path.dirname(os.path.realpath(__file__))
root_dir = os.path.join(root_dir, sys.modules['__main__'].__file__)
parent_parser = get_default_parser(strategy='random_search', root_dir=root_dir)
# allow model to overwrite or extend args

View File

@ -28,7 +28,6 @@ def add_default_args(parser, root_dir, rand_seed=None, possible_model_names=None
parser.add_argument('--track_grad_norm', default=-1, type=int, help='if > 0, will track this grad norm')
# model saving
pdb.set_trace()
parser.add_argument('--model_save_path', default=root_dir + '/model_weights')
parser.add_argument('--model_save_monitor_value', default='val_acc')
parser.add_argument('--model_save_monitor_mode', default='max')