Skip to content

Commit

Permalink
fix(train.py): typeError: build_model() got an unexpected keyword arg…
Browse files Browse the repository at this point in the history
…ument 'backbone'
  • Loading branch information
zjykzj committed Sep 22, 2022
1 parent 4a05509 commit 663fa1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multigrain/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def main(args):

print("Creating model")
# model = torchvision.models.get_model(args.model, weights=args.weights, num_classes=num_classes)
model = build_model(backbone=args.model)
model = build_model(args)
model.to(device)

if args.distributed and args.sync_bn:
Expand Down

0 comments on commit 663fa1f

Please sign in to comment.