updates
This commit is contained in:
parent
b5a2747a6a
commit
3c95b5c104
2
train.py
2
train.py
|
@ -125,7 +125,7 @@ def train(
|
||||||
g['lr'] = lr
|
g['lr'] = lr
|
||||||
|
|
||||||
# Freeze darknet53.conv.74 layers for first epoch
|
# Freeze darknet53.conv.74 layers for first epoch
|
||||||
if freeze_backbone is not False:
|
if freeze_backbone:
|
||||||
if epoch == 0:
|
if epoch == 0:
|
||||||
for i, (name, p) in enumerate(model.named_parameters()):
|
for i, (name, p) in enumerate(model.named_parameters()):
|
||||||
if int(name.split('.')[1]) < 75: # if layer < 75
|
if int(name.split('.')[1]) < 75: # if layer < 75
|
||||||
|
|
Loading…
Reference in New Issue