Skip to content

Commit

Permalink
custom input image size fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
ghimiredhikura committed Dec 6, 2019
1 parent 994b264 commit bcad024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion train.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
class_names = load_classes("data/classes.names")

# Initiate model
model = Darknet(opt.model_def).to(device)
model = Darknet(opt.model_def, img_size=opt.img_size).to(device)
model.apply(weights_init_normal)

# If specified we start from checkpoint
Expand Down

0 comments on commit bcad024

Please sign in to comment.