Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e93fce2

Browse files
authored
Update train.py
1 parent d3f0452 commit e93fce2

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
@@ -212,7 +212,7 @@
212212
#------------------------------------#
213213
if Freeze_Train:
214214
for param in model.backbone.parameters():
215-
param.requires_grad = False
215+
param.requires_grad = True
216216

217217
for epoch in range(start_epoch, end_epoch):
218218
fit_one_epoch(model_train, model, yolo_loss, loss_history, optimizer, epoch,

0 commit comments

Comments
 (0)