gyrojeff commited on
Commit
0693434
1 Parent(s): cfa084c

feat: add cli for lr

Browse files
Files changed (1) hide show
  1. train.py +8 -1
train.py CHANGED
@@ -62,6 +62,13 @@ parser.add_argument(
62
  choices=["v1", "v2"],
63
  help="Augmentation strategy to use (default: None)",
64
  )
 
 
 
 
 
 
 
65
 
66
  args = parser.parse_args()
67
 
@@ -72,7 +79,7 @@ total_num_workers = os.cpu_count()
72
  single_device_num_workers = total_num_workers // len(devices)
73
 
74
 
75
- lr = 0.0001
76
  b1 = 0.9
77
  b2 = 0.999
78
 
 
62
  choices=["v1", "v2"],
63
  help="Augmentation strategy to use (default: None)",
64
  )
65
+ parser.add_argument(
66
+ "-l",
67
+ "--lr",
68
+ type=float,
69
+ default=0.0001,
70
+ help="Learning rate (default: 0.0001)",
71
+ )
72
 
73
  args = parser.parse_args()
74
 
 
79
  single_device_num_workers = total_num_workers // len(devices)
80
 
81
 
82
+ lr = args.lr
83
  b1 = 0.9
84
  b2 = 0.999
85