Update run_gen.py

This commit is contained in:
WANG Yue 2021-09-15 21:27:16 +08:00 committed by GitHub
parent 6eaa90c256
commit 100c7e55c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -188,7 +188,7 @@ def main():
if args.do_train:
if args.local_rank in [-1, 0] and args.data_num == -1:
summary_fn = './tensorboard/{}'.format('/'.join(args.output_dir.split('/')[1:]))
summary_fn = '{}/{}'.format(args.summary_dir, '/'.join(args.output_dir.split('/')[1:]))
tb_writer = SummaryWriter(summary_fn)
# Prepare training data loader