Commit 60aeae99 authored by dcuai's avatar dcuai
Browse files

Update main.py ——add epochs and local-rank

parent f761d05b
......@@ -42,6 +42,8 @@ def parse_option():
# easy config modification
parser.add_argument('--batch-size', type=int, help="batch size for single GPU")
parser.add_argument('--train-epochs', type=int, help='epochs', default=300 )
parser.add_argument('--warmup-epochs', type=int, help='warmup-epochs', default=20)
parser.add_argument('--data-path', type=str, help='path to dataset')
parser.add_argument('--zip', action='store_true', help='use zipped dataset instead of folder dataset')
parser.add_argument('--cache-mode', type=str, default='part', choices=['no', 'full', 'part'],
......@@ -64,7 +66,7 @@ def parse_option():
parser.add_argument('--throughput', action='store_true', help='Test throughput only')
# distributed training
parser.add_argument("--local_rank", type=int, required=True, help='local rank for DistributedDataParallel')
parser.add_argument("--local-rank", type=int, required=True, help='local rank for DistributedDataParallel')
# for acceleration
parser.add_argument('--fused_window_process', action='store_true',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment