Skip to content

Commit b294795

Browse files
authored
Update train.py
1 parent c668b4f commit b294795

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
#-------------------------------------------------------------------#
240240
# 判断当前batch_size与64的差别,自适应调整学习率
241241
#-------------------------------------------------------------------#
242-
nbs = 64
242+
nbs = 64 if not Freeze_Train else 32 # nominal batch size
243243
Init_lr = max(batch_size / nbs * Init_lr, 1e-4)
244244
Min_lr = max(batch_size / nbs * Min_lr, 1e-6)
245245

0 commit comments

Comments
 (0)