We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c668b4f commit b294795Copy full SHA for b294795
train.py
@@ -239,7 +239,7 @@
239
#-------------------------------------------------------------------#
240
# 判断当前batch_size与64的差别,自适应调整学习率
241
242
- nbs = 64
+ nbs = 64 if not Freeze_Train else 32 # nominal batch size
243
Init_lr = max(batch_size / nbs * Init_lr, 1e-4)
244
Min_lr = max(batch_size / nbs * Min_lr, 1e-6)
245
0 commit comments