fix
This commit is contained in:
parent
99b93a2579
commit
e6f8958b6a
@ -261,7 +261,7 @@ def freeze_model_weights(model: torch.nn.Module) -> None:
|
||||
count = 0
|
||||
for param in model.parameters():
|
||||
count += 1
|
||||
if count < 20:
|
||||
if count <= 20:
|
||||
logger.info(f'Freezing layer {count}')
|
||||
param.requires_grad = False
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user