This commit is contained in:
s444501 2023-02-12 14:54:19 +01:00
parent 99b93a2579
commit e6f8958b6a

View File

@ -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: