Update default number of epochs

Former-commit-id: 450752536d8c72ad978e0ac319c624f537444d96
This commit is contained in:
milesial 2021-08-16 06:46:52 +02:00
parent 423e94868a
commit cb0c274489

View file

@ -143,7 +143,7 @@ def train_net(net,
def get_args():
parser = argparse.ArgumentParser(description='Train the UNet on images and target masks')
parser.add_argument('--epochs', '-e', metavar='E', type=int, default=50, help='Number of epochs')
parser.add_argument('--epochs', '-e', metavar='E', type=int, default=5, help='Number of epochs')
parser.add_argument('--batch-size', '-b', dest='batch_size', metavar='B', type=int, default=1, help='Batch size')
parser.add_argument('--learning-rate', '-l', metavar='LR', type=float, default=0.00001,
help='Learning rate', dest='lr')