Skip to content

Commit

Permalink
Update train_semi.py
Browse files Browse the repository at this point in the history
Added "net" to cfg for making this train_semi.py detect
  • Loading branch information
ksh3490 authored Jun 16, 2022
1 parent 5784b29 commit d62d1ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train_semi.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def main():
else:
modules_head = [model.decoder]

if cfg.get("sync_bn", True):
if cfg["net"].get("sync_bn", True):
model = torch.nn.SyncBatchNorm.convert_sync_batchnorm(model)

model.cuda()
Expand Down

0 comments on commit d62d1ae

Please sign in to comment.