未验证 提交 e93fce2c 编写于 作者: B Bubbliiiing 提交者: GitHub

Update train.py

上级 d3f04528
......@@ -212,7 +212,7 @@ if __name__ == "__main__":
#------------------------------------#
if Freeze_Train:
for param in model.backbone.parameters():
param.requires_grad = False
param.requires_grad = True
for epoch in range(start_epoch, end_epoch):
fit_one_epoch(model_train, model, yolo_loss, loss_history, optimizer, epoch,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册