Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Yala committed Nov 25, 2020
2 parents 5466e81 + aab661f commit 2ffc9af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onconet/models/mirai_full.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def __init__(self, args):
else:
self.image_encoder = get_model_by_name('custom_resnet', False, args)

if self.args.freeze_image_encoder:
if hasattr(self.args, "freeze_image_encoder") and self.args.freeze_image_encoder:
for param in self.image_encoder.parameters():
param.requires_grad = False

Expand Down

0 comments on commit 2ffc9af

Please sign in to comment.