autocreate save_ckpt_dir folder if not exists
This commit is contained in:
parent
0222a984a2
commit
ff86644e8c
3
train.py
3
train.py
|
@ -267,6 +267,9 @@ def setup_args(args):
|
||||||
args.lr = args.lr * (total_batch_size**0.55)
|
args.lr = args.lr * (total_batch_size**0.55)
|
||||||
logging.info(f"{Fore.CYAN} * Scaling learning rate {tmp_lr} by {total_batch_size**0.5}, new value: {args.lr}{Style.RESET_ALL}")
|
logging.info(f"{Fore.CYAN} * Scaling learning rate {tmp_lr} by {total_batch_size**0.5}, new value: {args.lr}{Style.RESET_ALL}")
|
||||||
|
|
||||||
|
if not os.path.exists(args.save_ckpt_dir):
|
||||||
|
os.makedirs(args.save_ckpt_dir)
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|
||||||
def main(args):
|
def main(args):
|
||||||
|
|
Loading…
Reference in New Issue