This commit is contained in:
Glenn Jocher 2019-06-21 13:19:23 +02:00
parent 1a9aa30efc
commit 5f6c2b3d12
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ def train(
# y.append(optimizer.param_groups[0]['lr'])
# plt.plot(y, label='LambdaLR')
# plt.xlabel('epoch')
# plt.xlabel('LR')
# plt.ylabel('LR')
# plt.tight_layout()
# plt.savefig('LR.png', dpi=300)
@ -315,7 +315,7 @@ if __name__ == '__main__':
parser.add_argument('--batch-size', type=int, default=8, help='batch size')
parser.add_argument('--accumulate', type=int, default=8, help='number of batches to accumulate before optimizing')
parser.add_argument('--cfg', type=str, default='cfg/yolov3-spp.cfg', help='cfg file path')
parser.add_argument('--data-cfg', type=str, default='data/coco_1000img.data', help='coco.data file path')
parser.add_argument('--data-cfg', type=str, default='data/coco.data', help='coco.data file path')
parser.add_argument('--single-scale', action='store_true', help='train at fixed size (no multi-scale)')
parser.add_argument('--img-size', type=int, default=416, help='inference size (pixels)')
parser.add_argument('--resume', action='store_true', help='resume training flag')

View File

@ -12,7 +12,7 @@ from tqdm import tqdm
from . import torch_utils
matplotlib.rc('font', **{'size': 12})
matplotlib.rc('font', **{'size': 11})
# Set printoptions
torch.set_printoptions(linewidth=1320, precision=5, profile='long')