Skip to content

Commit

Permalink
Fix export to export same output as detect
Browse files Browse the repository at this point in the history
  • Loading branch information
robinmaillot committed Nov 2, 2020
1 parent 10a1df7 commit c4200bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
m.act = Hardswish() # assign activation
# if isinstance(m, models.yolo.Detect):
# m.forward = m.forward_export # assign forward (optional)
model.model[-1].export = True # set Detect() layer export=True
# model.model[-1].export = True # set Detect() layer export=True
y = model(img) # dry run

# TorchScript export
Expand Down

0 comments on commit c4200bc

Please sign in to comment.